Allow disabling SOCD only for keyboard mode

Have you checked the GP2040-CE documentation HERE to confirm this feature doesn't already exist?
Yes
Which problem is this feature request solving?
I need* to have SOCD cleaning disabled for keyboard mode to properly play rhythm games like vivid/stasis, osu!mania, quaver, etc. However, the SOCD mode is currently global and also affects xinput. There's no shortcut bound by default to turn SOCD off, just back on with one of the modes, so I tend to leave it off all the time for convenience. This could pose a problem when playing certain PC fighting games, I imagine (though not sure how common that is, I hear many games implement their own SOCD cleaning).
*Basically I'm binding the buttons that are normally the directions to keyboard letters, e.g. S, D, and F for left, down, and right. These games will have jumps/chords/double-notes and so on where you need to hit multiple of the note buttons together, sometimes all of them. With SOCD cleaning enabled you'll drop hold notes if you hit left and then right even if your left and right buttons are really just pressing some letters. This can also be tested with SOCD on/off using QMK's keyboard layout tester since it highlights keys you're currently pressing.
Describe the solution you would like to see
Either never apply SOCD cleaning to keyboard mode (is there actually a use-case for having it?) or allow us to separately set SOCD for xinput and keyboard mode (and any other modes it may affect, though I think those are the only ones currently).
Describe alternatives you've considered
Kinda already mentioned two above but if not letting us set SOCD per-mode, just disabling it in keyboard mode by default somehow would be fine as well.
Can you submit a pull request?
No.
Are you planning on working on this feature yourself?
No.
Sidenote: The docs for SOCD Cleaning Off currently say:

This cleaning mode is only available in XInput mode as PS3/DirectInput, PS4 and Nintendo Switch modes do not support setting SOCD Cleaning to Off and will default to Neutral SOCD Cleaning mode.

Emphasis mine. In other words it doesn't even mention that SOCD cleaning (or at least the setting to disable it) affects keyboard mode. Perhaps it was unintended that it was left on. I'm guessing keyboard mode is the most niche mode among users of this firmware.

SOCD mode will be applied to keyboard mode as people play fighting games, shmups, etc. in keyboard mode sometimes too. I don't think there's a high likelihood of tying SOCD mode to input mode, as it seems more confusing than not; have you tried setting SOCD modes to different hotkeys or a slider and using those to switch when you need to?

have you tried setting SOCD modes to different hotkeys or a slider and using those to switch when you need to?

Haven't got a slider, that'd be nice I guess. Seems like GP2040-CE controllers keep wanting to get bigger to make use of all these new features. I've got a bunch of different ones already. Getting to be an expensive journey.
I haven't messed with certain features like profiles or messed with the default shortcuts too much as I'm not sure what all key combos are still open/unbound or if I want to overwrite one of the default binds. I probably won't ever want to use the shortcut to swap up/down, but being used to the default bindings has advantages when switching controllers or helping other people with their controllers. I'll consider adding a bind to my config to disable SOCD cleaning to make going back and forth on the fly possible if I really have no other option, but having to hit that all the time (and more importantly remembering to hit that) is not ideal at all. In a tournament setting of course I would double-check these things to stay out of trouble, but playing solo/online or with friends I don't even think about SOCD typically.
I could see separate SOCD per-mode being confusing without a screen on your controller (and only some of mine have screens), but on ones with a screen it shows your current setting, so you can get a quick sanity check from that. Maybe we could have an optional toggle somewhere in the web configurator to separate them / override the setting for keyboard mode then and leave the defaults as they are. I didn't realize some people played fighting games in keyboard mode. I guess maybe that's easier in some emulators or fightcade.
I'm starting to wonder which games SOCD cleaning even actually matters in (excluding the console games since we're talking xinput and keyboard modes) and if I should stop worrying about having it off. In a SHMUP what would happen with it off? I'm imagining pressing left and right either has the last movement button win out or maybe you'd be stuck in place not moving. Real keyboards wouldn't have SOCD cleaning, so can we really even say it's an accurate keyboard reproduction? Correct me if I'm wrong but in any game with keyboard controls they would implement SOCD stuff on the game side and so it would react the same to a real keyboard or a GP2040-CE controller in keyboard mode with SOCD cleaning disabled.

Hi @Soundtoxin ,
This is a difficult one to answer since on a computer different games will react differently to SOCD with no SOCD filtering.
To summarize where we are at with this:
1 - SOCD will not be removed for keyboard mode as a whole since it is heavily used in games that need it (SF6 etc.)
2 - Setting the device to keyboard mode and SOCD off should address your concerns, if you are still seeing SOCD rules being implemented then it will be the game / emulator / other settings doing so

To summarize where we are at with this: 1 - SOCD will not be removed for keyboard mode as a whole since it is heavily used in games that need it (SF6 etc.)

I'm still not convinced that there are modern games that have weird behavior/problems with SOCD off in keyboard mode, but fine. If some people want/need it then it makes sense to leave it in

2 - Setting the device to keyboard mode and SOCD off should address your concerns, if you are still seeing SOCD rules being implemented then it will be the game / emulator / other settings doing so

Yes, I can entirely disable SOCD globally and then use keyboard mode for rhythm games, as I have been doing. The problem is that SOCD is also off for XInput mode then. I would like it left at a normal/legal setting in XInput (since I use that when playing fighting games on PC) and off for keyboard mode somehow, ideally.
I am not still seeing SOCD applied when it's disabled, I just don't want to get into trouble later for having SOCD off in XInput mode because I needed it off for Keyboard mode. I use them for entirely different things and I don't think I'll ever need SOCD cleaning in Keyboard mode, so being able to separate the setting for them would be fantastic.

Have you considered simply adding a hotkey combo for SOCD cleaning off?
I've tested this out with the combo of start + home + right= SOCD Cleaning Off which will allow you to change to and from it as needed in the various modes.

Yes, I have considered it, but I don't actually ever want SOCD Cleaning on in keyboard mode, so ideally I could just set it and forget it instead of having to remember to check/change this setting every time.

Hi @Soundtoxin ,
We have talked internally and have no plans to make SOCD off my default in HID-Keyboard mode.
This can be easily navigated by setting up a hotkey function to change to SOCD cleaning off as outlined above.
As always, you are welcome to fork the project and make changes as you see fit to your own uses.

We have talked internally and have no plans to make SOCD off my default in HID-Keyboard mode.

Right, off by default would conflict with what others want. Some sort of setting in the web configurator (as mentioned upthread a bit) would work fine as well.


update helium tests

The helium tests are broken because of the new year

replace year=2026 with year=2027 in the json test files
the C# code may need to be updated

As I understood it, the helium spec, based on the updates to parameter validation, is that 2025 should be hard coded as the max valid year. I created this bug yesterday in the helium repo to track updates: https://github.com/retaildevcrews/helium/issues/632 .  If I misunderstood, we can close or update that bug as well.  Wherever makes the most sense to track it.

As I understood it, the helium spec, based on the updates to parameter validation, is that 2025 should be hard coded as the max valid year. I created this bug yesterday in the helium repo to track updates: https://github.com/retaildevcrews/helium/issues/632 .  If I misunderstood, we can close or update that bug as well.  Wherever makes the most sense to track it.


Update to include preamble handling

This update includes a feature to formulate a preamble.
A file called myhosts is added. It is empty and ignored by git to stay so.
The user could put his custom hosts file contents inside this file for them to appear again and again in the generated hosts file without overwriting them.

Perfect!


The flyway default placeholders really ought to be available for script-based callbacks.

Which version and edition of Flyway are you using?
7.15.0
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using? (Type & version)
SQL Server, MariaDB, PostgreSQL and sqlite
Which operating system are you using?
Windows
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
Creating PowerShell and DOS Batch callback scripts to run with TEAMS
What did you expect to see?
the default placeholders as environment variables, just like the SQL and Java scripts.
What did you see instead?
just the user-defined placeholders, FLYWAY_USER and FLYWAY_URL, but no default placeholders.
The problem is in determining the name of the file that caused the callback, and in working out where the flyway schema table is. To find out the current version number, you either need it passed to you by Flyway, or you need to be able to read the flyway_schema_history table which may be renamed or in a different schema.

Closing as we have fixed this and it will be available in the next release
Do note that the colon in the default placeholders must be replaced with an underscore when accessed through scripts


System.InvalidOperationException: Found incompatible property types ,  for property 'upstreamDataflows' in schema

Migrating a C# SDK application from Microsoft.Rest.ClientRuntime to Azure.Core. While regenerating the client files using v3 of the AutoRest tooling getting this error.

These are the versions of autorest we're using.
info    | AutoRest core version selected from configuration: 3.10.1.
info    |    Loading AutoRest core      'C:\Users\.autorest\@autorestcore@3.10.1\nodemodules\@autorest\core\dist' (3.10.1)
info    |    Loading AutoRest extension<EMAIL_ADDRESS>(2.2.57->2.2.57)
info    |    Loading AutoRest extension<EMAIL_ADDRESS>(2.3.43->2.3.43)

Here is my swagger file.  Could you please let me know how to resolve this error ?

Transferred to the csharp extension repo as this now seems to be just the problem crashing in it

Hi @KotanaSai21 use the swagger I found here, I have a produce issue, such as:
error   |   Error: Operation response '/paths/~1v1.0~1myorg~1datasets~1{datasetId}~1tables~1{tableName}/put/responses/200' produces type couldn't be resolved. Operation is probably is missing a produces field and there isn't any global value. Please add "produces": [<contentType>]"

which is a minor issue, I replaced every "produce": [] with "produce": ["application/json"] and I am able to reproduce your issue to this:

which looks like an issue Timothee has answered.
Am I using the out-dated swagger?
If possible, since I saw your project is on github as well, please create a draft PR in your repo and let me know the command you are running with the exception, so that I could trouble shoot.

Hi @ArcturusZhang , Thanks for looking into this.  I forked the repository here and made necessary changes.
Resolved the issues with the swagger and find the updated swagger file here.
I was able to generate the files but when adding generation1-convenience-client: true to generate the model files facing the above mentioned error.

Here is the issue: https://github.com/KotanaSai21/PowerBI-CSharp/blob/master/sdk/swaggers/swagger.json#L9878
An enum is defined, with a format of uuid, but its values are not uuid at all, therefore the generator throws the exception trying to parse those values (default)
Well removing the uuid gives me a new exception - I need to investigate that as well

OK the second issue happens in your swagger as well:
This model WorkspaceInfoDataset has quite a few allOf, which is fine, but two of its allOf (UpstreamDatasetsProperties and WorkspaceInfoDataflowProperties), have the same property: upstreamDatamarts
We currently do not support this (we should)
As a workaround, I suggest you to modify your models so that we do not have this kind of cases.

In the meantime, I suggest we could try to write your spec using typespec and use our latest generator to generate which produces better code, and as well as making your spec more intuitive using typespec.

Since it is not currently supported to have the same property, created a duplicate property and updated my swagger file as a workaround for now. Now I am able to generate the Models files.
Thanks so much @ArcturusZhang , @timotheeguerin for helping me in generating the files.

It is great that the workaround works for you.
I will change the title of your issue to track the real issue: deduplicate the property when we have multiple with the same name.

When we generated the files using auto rest, I was facing issue with the models property. Opened a GitHub issue https://github.com/Azure/autorest/issues/4883. But no one replied.
@ArcturusZhang , @timotheeguerin Could you guys help me out with the issue or guide me to correct place where I can get response.


join channel working for peer

Signed-off-by: pavelkrolevets<EMAIL_ADDRESS>

@opentaps content of #73


Testable

Changes in this PR:
Typescript

Moved from internal modules to external modules (more info: http://www.typescriptlang.org/Handbook#modules-pitfalls-of-modules)
Added kurve.ts entry point to wrap the public exports in a single object (this ensures we are keeping the same interface as the previous version but making the inner objects testable)
Remove tsd in favor of typings
Updated to the latest version (1.8.9)

Unit testing

Added the following dependencies to setup the infrastructure: mocha, chai, sinon, ts-node
Implemented the very first unit test just as starting point

Build process

Typescript build, minification, sourcemaps and bundle gulp tasks were replaced with Webpack
Single Typescript definition file for Kuve created with dts-generator instead of gulp/merge2 task (according the this thread typescript will support this OOB in a future release)
Added npm task for running tests

Pending Enhancements

Remove all dist-* folders and keep a single dist folder with latest binaries. old distributions could be tracked as Github releases
Make sample easy to run with another npm task
Refactor Typescript classes in separate files
Add Tslint for source code static analysis

FYI I asked the SW folks to post this as a work in progress.


Create tfsec.yml

Create tfsec-pr-commenter-action to test  terraform scripts.

closing this pr, redirect to #275


renderSelectedChoices doesn't working with groups

Hey,
I am trying to use the group option with renderSelectedChoices set to always, and it's not working.
 choicesGroup = [ {
    label: 'Group one',
    id: 1,
    choices: [
      {value: 'Child One', label: 'Child One'},
      {value: 'Child Two', label: 'Child Two'},
    ]
  },
    {
      label: 'Group two',
      id: 2,
      choices: [
        {value: 'Child Four', label: 'Child Four'}
      ]
    } ];

this.choices.setChoices(choicesGroup, this.valueKey, this.labelKey, true);

When I select an item, it disappears from the list. I can confirm it is working with the following example:
const choices = [
  {value: 'One', label: 'Label One'},
  {value: 'Two', label: 'Label Two'},
  {value: 'Three', label: 'Label Three'},
];
this.choices.setChoices(choices, this.valueKey, this.labelKey, true);

It seems there is a bug when using groups or I am missing something?
Thanks.

I confirm this bug. I'll create a PR to fix it as soon as my current PR gets accepted or rejected. Thanks!

Did someone pick this up ?

I could give it a go

I believe this has now been resolved 👍


upload_package: fix incompatibilities with Nebraska 2.6

With Nebraska 2.6.0 or newer, GET request returns a json output, which starts all relevant fields under the .package field.
We should check if that field exists, to support both 2.6 and pre-2.6.
Split the GET request part into get_package_id.

See also https://github.com/kinvolk/nebraska/blob/dfc08d64bc1a453a4dc411db66139650222b7985/backend/pkg/handler/packages.go#L192 .

As Nebraska 2.6.0 or newer requires a channels_blacklist (array of strings) to be passed in every POST request, we need to pass an empty array.

See also https://github.com/kinvolk/nebraska/blob/dfc08d64bc1a453a4dc411db66139650222b7985/backend/api/spec.yaml#L1249

Testing done
TBD (not possible at the moment as Nebraska 2.6 is already gone)

[ ] Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)

TBD (not possible at the moment as Nebraska 2.6 is already gone)

Maybe it works to point this script to a local Nebraska instance? Seems -auth-mode noop should work.

Maybe it works to point this script to a local Nebraska instance? Seems -auth-mode noop should work.

Tested with a local Nebraska 2.6 instance.
Fixed a bug. It works.


Remove duplicate extensions from browse filter

Original :

Fixed :

Also I noticed that the placeholder value is hardcoded to just say sqlproj

Not sure if you want to fix that - maybe just something generic like Select project file?

Also I noticed that the placeholder value is hardcoded to just say sqlproj
https://github.com/microsoft/azuredatastudio/blob/main/extensions/data-workspace/src/common/constants.ts#L67

Not sure if you want to fix that - maybe just something generic like Select project file?

ah yes that was copied from the mockups and would be good to fix, especially since there's a pg projects extension being worked on that will use these dialogs too

Pull Request Test Coverage Report for Build 969755610

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.002%) to 42.95%

Files with Coverage Reduction
New Missed Lines
%

extensions/machine-learning/src/common/processService.ts
2
81.48%

Totals

Change from base Build 969535732:
-0.002%

Covered Lines:
26340

Relevant Lines:
55695

💛  - Coveralls

it's a little weird showing SQL Database and SQL Edge as separate since they have the same file extension, but it's been like that since the edge template was added

Agreed, but I'm not really sure that there's a clean way to handle that since the names are so much longer. I think it's fine for now unless you start getting a ton of duplicate entries.


Scourge Quest for Unlocking Throne Spells

Added new quest for Scourge
Added new objective for enemy unit entering rects
Added register enter and leave methods for multiple rects

For #2412

Thanks. Are the standards for quest text stuff written down anywhere?

Thanks. Are the standards for quest text stuff written down anywhere?

Yup, they're documented as XML docs on the QuestData classes' properties.

Made a follow-up ticket: https://github.com/AzerothWarsLR/WarcraftLegacies/issues/2616


Add weights textfile into props file.

Currently the weights text file is in the shared directory, but the properties for the study are in the properties file.
refactor to have all properties in the same file.
Consider adding a class to the project for properties so that the complexity of properties can be separated from the computation of confidence intervals and line simplification.

@HenryGeorgist can you add a weights file to the repo I can use to test against?

This is the one i was using for Ala-Wai. It has each lifecycle equally weighted. there should be one in the shared directory of the trinity model as well, it will have different weight values.  The text file name is binweights_by_lifecycle.txt
below,0.000000000000000
LC1,0.1
LC2,0.1
LC3,0.1
LC4,0.1
LC5,0.1
LC6,0.1
LC7,0.1
LC8,0.1
LC9,0.1
LC10,0.1
above,0.000000000000000


Getting "ERROR: hint:SDL_GAMECONTROLLER_USE_BUTTON_LABELS:=1" on every project

Godot version:
v3.2.3.stable.official
OS/device including version:
Windows 10 19041.630
OpenGL ES 3.0 Renderer: GeForce GTX 1080 Ti/PCIe/SSE2
Issue description:
Im getting this error when opening godot aswell as when i open a project and when i run a game.
Error from the engine console/terminal:
ERROR: hint:SDL_GAMECONTROLLER_USE_BUTTON_LABELS:=1
Unrecognised output string: hint
   At: main/input_default.cpp:1141
Here is a picture showing the errors, first opening godot engine, then opening a project and finally a project

Here is what shows up in the debugger when running a game

I am not sure when it started, wether it was when i updated to this build, or when i updated my nvidia graphics drivers etc...
I've had different controllers connected to my pc before but the error comes up even with no controllers connected.
I've tried uninstalling all my controllers to no avail, the error still shows up.
Steps to reproduce:
I am not sure how to reproduce this error, i am getting it even when reinstalling godot through steam.
I do not get this error when running the same non-steam version from the official website which could mean that something in my steam install has left something over that produces this error?
Minimal reproduction project:
I am not sure wether this is project related, just opening the godot engine will produce this error.
Any project will do, even a blank one.

An update on this, the error does not show up when opening godot through the exe in the steam directory (godot.windows.opt.tools.64.exe), instead of launching godot through steam (steam desktop shortcut or through the steam app)!

I suspect Steam initializes special mappings (maybe for the new PS5 controller) which Godot picks up but fails to parse.

I suspect Steam initializes special mappings (maybe for the new PS5 controller) which Godot picks up but fails to parse.

Sounds likely, although i have no clue how steam work when launching an application

The simply solution is to just ignore the hint entries, but I'll have a look to see whether or not there may be any useful hints.


005 ipfs docker registry

Fixes #1 #2

Ok I finally tested this. (did have to remove all sudo in osx)
running make breaks for me (have mounted, and tried rebooting ipfs node) see:
Pushing tag for rev [bf25c3f7f322] on {http://localhost:5000/v1/repositories/wiki-node/tags/latest}

Look, we have a registry

ls /ipns/local/docker-registry/images
ls: /ipns/local/docker-registry/images: No such file or directory
make: *** [demo] Error 1

something broken on ipns cc @whyrusleeping
> cd /ipns/local
> ls
docker-registry/
> ls docker-registry
gls: reading directory docker-registry: No such file or directory
> cd docker-registry
> ls
gls: reading directory .: No such file or directory
> ls images
gls: cannot access images: No such file or directory
> cd images
cd: no such file or directory: images
> :(

Superceded by #24


Crash when compiling flutter engine

H,

Compile the engine according to Compiling the  engine (./flutter/tools/gn --iOS --simulator --unoptimized)
Debug the engine Debug engine
flutter run --local-engine=ios_debug_sim_unopt
The error in the logs
Flutter Doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.3.0-17.0.pre.279, on Mac OS X 10.15.7 19H1217 darwin-x64, locale en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.56.2)
[✓] Connected device (2 available)
• No issues found!

Please help
Thanks a lot
Logs

Logs
Unhandled exception:
Crash when compiling null,
at character offset null:
type 'InvalidType' is not a subtype of type 'InterfaceType' in type cast
#0      _FfiDefinitionTransformer._checkFieldAnnotations (package:vm/transformations/ffi_definitions.dart:288:31)
#1      _FfiDefinitionTransformer.visitClass (package:vm/transformations/ffi_definitions.dart:188:25)
#2      Class.accept (package:kernel/ast.dart:1347:38)
#3      transformList (package:kernel/ast.dart:11035:32)
#4      Library.transformChildren (package:kernel/ast.dart:628:5)
#5      Transformer.defaultTreeNode (package:kernel/visitor.dart:680:10)
#6      TreeVisitor.visitLibrary (package:kernel/visitor.dart:277:35)
#7      _FfiDefinitionTransformer.visitLibrary (package:vm/transformations/ffi_definitions.dart:164:18)
#8      List.forEach (dart:core-patch/growable_array.dart:403:8)
#9      transformLibraries (package:vm/transformations/ffi_definitions.dart:85:13)
#10     VmTarget.performModularTransformationsOnLibraries (package:vm/target/vm.dart:158:32)
#11     KernelTarget.runBuildTransformations (package:front_end/src/fasta/kernel/kernel_target.dart:1270:19)
#12     KernelTarget.buildComponent.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:406:7)
<asynchronous suspension>
#13     withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
<asynchronous suspension>
#14     IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:300:13)
<asynchronous suspension>
#15     IncrementalCompiler.compile (package:vm/incremental_compiler.dart:69:29)
<asynchronous suspension>
#16     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:505:11)
<asynchronous suspension>
#17     listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1101:11)
<asynchronous suspension>

#0      _FfiDefinitionTransformer._checkFieldAnnotations (package:vm/transformations/ffi_definitions.dart:288:31)
#1      _FfiDefinitionTransformer.visitClass (package:vm/transformations/ffi_definitions.dart:188:25)
#2      Class.accept (package:kernel/ast.dart:1347:38)
#3      transformList (package:kernel/ast.dart:11035:32)
#4      Library.transformChildren (package:kernel/ast.dart:628:5)
#5      Transformer.defaultTreeNode (package:kernel/visitor.dart:680:10)
#6      TreeVisitor.visitLibrary (package:kernel/visitor.dart:277:35)
#7      _FfiDefinitionTransformer.visitLibrary (package:vm/transformations/ffi_definitions.dart:164:18)
#8      List.forEach (dart:core-patch/growable_array.dart:403:8)
#9      transformLibraries (package:vm/transformations/ffi_definitions.dart:85:13)
#10     VmTarget.performModularTransformationsOnLibraries (package:vm/target/vm.dart:158:32)
#11     KernelTarget.runBuildTransformations (package:front_end/src/fasta/kernel/kernel_target.dart:1270:19)
#12     KernelTarget.buildComponent.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:406:7)
<asynchronous suspension>
#13     withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
<asynchronous suspension>
#14     IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:300:13)
<asynchronous suspension>
#15     IncrementalCompiler.compile (package:vm/incremental_compiler.dart:69:29)
<asynchronous suspension>
#16     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:505:11)
<asynchronous suspension>
#17     listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1101:11)
<asynchronous suspension>

Did you make any modifications to the engine that you have built?
Which engine hash are you building at?

/cc @dcharkes

type 'InvalidType' is not a subtype of type 'InterfaceType' in type cast
#0 _FfiDefinitionTransformer._checkFieldAnnotations (package:vm/transformations/ffi_definitions.dart:288:31)

That looks like a bug indeed.
Could you please run flutter --version to see the Dart version inside this Flutter revision?

Thanks @dcharkes
I tried on master and on stable same issue.
Flutter 2.2.1 • channel stable • git@github.com:MikePendo/flutter.git
Framework • revision 02c026b03c (3 weeks ago) • 2021-05-27 12:24:44 -0700
Engine • revision 0fdb562ac8
Tools • Dart 2.13.1

Please note I switched to the stable the original bug was on master, but I have the same issue on stable
Thanks for help

--local-engine=ios_debug_sim_unopt changes the Dart version to the one checked out rather than the version reported by --version. (Does it occur without --local-engine?)
What are you running flutter run on? Could you make a minimal repro of the app that causes this? (My FFI testing apps don't repro this error.)

flutter run
Works as expected

I am not sure regarding the checking out the dart version. The docs describe Framework and the Engine, I didn't see any requirement about the dart language
Would it help if attach verbose logs when I run with --local-engine

Could you make a minimal repro of the app that causes this?

This would help us to reproduce it. Please upload the app as a Git repo for us to take a look at.

Thanks @dcharkes
So I just created a new flutter project (changed nothing in it)
flutter run works
flutter run --local-engine fails with following error:
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
../../flutter/packages/flutter/lib/src/painting/strut_style.dart:343:5: Error: Type 'TextLeadingDistribution' not found.
TextLeadingDistribution? leadingDistribution,
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/strut_style.dart:464:9: Error: Type 'TextLeadingDistribution' not found.
final TextLeadingDistribution? leadingDistribution;
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:630:9: Error: Type 'ui.TextLeadingDistribution' not found.
final ui.TextLeadingDistribution? leadingDistribution;
^^^^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:783:5: Error: Type 'ui.TextLeadingDistribution' not found.
ui.TextLeadingDistribution? leadingDistribution,
^^^^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:880:5: Error: Type 'ui.TextLeadingDistribution' not found.
ui.TextLeadingDistribution? leadingDistribution,
^^^^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/strut_style.dart:343:5: Error: 'TextLeadingDistribution' isn't a type.
TextLeadingDistribution? leadingDistribution,
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/strut_style.dart:464:9: Error: 'TextLeadingDistribution' isn't a type.
final TextLeadingDistribution? leadingDistribution;
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:630:12: Error: 'TextLeadingDistribution' isn't a type.
final ui.TextLeadingDistribution? leadingDistribution;
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:783:8: Error: 'TextLeadingDistribution' isn't a type.
ui.TextLeadingDistribution? leadingDistribution,
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:880:8: Error: 'TextLeadingDistribution' isn't a type.
ui.TextLeadingDistribution? leadingDistribution,
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:1124:7: Error: No named parameter with the name 'leadingDistribution'.
leadingDistribution: leadingDistribution,
^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///flutter/lib/ui/text.dart:697:3: Context: Found this candidate, but the arguments don't match.
TextStyle({
^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:1167:14: Error: 'TextLeadingDistribution' isn't a type.
final ui.TextLeadingDistribution? leadingDistribution = this.leadingDistribution;
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:1169:70: Error: No named parameter with the name 'leadingDistribution'.
?? (leadingDistribution == null ? null : ui.TextHeightBehavior(leadingDistribution: leadingDistribution));
^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///flutter/lib/ui/text.dart:456:9: Context: Found this candidate, but the arguments don't match.
const TextHeightBehavior({
^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:1325:32: Error: 'TextLeadingDistribution' isn't a type.
styles.add(EnumProperty<ui.TextLeadingDistribution>('${prefix}leadingDistribution', leadingDistribution, defaultValue: null));
^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:3211:32: Error: Getter not found: 'setText'.
_addAction(SemanticsAction.setText, (Object? args) {
^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:3703:52: Error: Getter not found: 'isKeyboardKey'.
bool get isKeyboardKey => _hasFlag(SemanticsFlag.isKeyboardKey);
^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:3705:28: Error: Getter not found: 'isKeyboardKey'.
_setFlag(SemanticsFlag.isKeyboardKey, value);
^^^^^^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

ok so I pulled the last engine changes from the master and rebuild the engine again with ninja.
Still see the same error while running it in the app with local engine.
Thanks for the help.

@dcharkes
Any insight regarding the issue?

@MikePendo the kind of errors you have provided in the last comment indicate that you have mismatch between the version of the engine you have built and the version of the Flutter framework. (not all versions of framework are compatible with all engine versions).
I suggest you to check the version of the engine in the bin/internal/engine.version file. Then in the engine checkout make sure that you checkout matching hash in enigine/src/flutter folder. After that run gclient sync to bring dependencies in sync. After that delete out/ folder completely (just to make sure that you don't have any stale artifacts) and rebuild.

@mraleph
I exactly started to play with this version/ commit SHA's to find the match.
so I noticed that current engine version sha0fdb562ac8068ce3dda6b69aca3f355f4d1d2718
doen't match any sha on my engine repo....
Looking at the engine repo I noticed that I am on https://github.com/flutter/buildroot.git
I am not sure why, I thought I should be on the engine.git
As far a s I remember I followed the instructions
What will be the proper way to do from here?

What will be the proper way to do from here?

Please see my comment above. Notice the following part of the instructions:

Then in the engine checkout make sure that you checkout matching hash in engine/src/flutter folder.

When you checkout engine repo it is actually checked out into engine/src/flutter, while engine/src/ is pointing to buildroot repo. (yeah, I know it is a bit confusing). So you need to go into that folder and you will have 0fdb562ac8068ce3dda6b69aca3f355f4d1d2718 available there. After you do git checkout $hash there remember to run gclient sync to bring other dependencies in sync.

@mraleph Thanks a lot.
After deleting the out folder (as suggested). I'm receiving the following error:
ninja: Entering directory `out/ios_debug_unopt'
ninja: fatal: chdir to 'out/ios_debug_unopt' - No such file or directory

I did:
gclient sync
./flutter/tools/gn  --ios --simulator --unoptimized
./flutter/tools/gn --unoptimized
As described I also see the new folder s were created

When you run ./flutter/tools/gn it tells you which folder it creates, e.g. ./flutter/tools/gn --ios --simulator --unoptimized actually creates out/ios_debug_sim_unopt. If you want out/ios_debug_unopt you need to run ./flutter/tools/gn --ios --unoptimized

Thanks I think I did  all of them and I have them all:

@MikePendo can you run your application now using custom engine?

I think ninja didn't fully rebuild it
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Oops; flutter has exited unexpectedly: "ProcessException: Failed to find "/Users/myname/Desktop/engine/src/out/host_debug_unopt/dart-sdk/bin/dart" in the search path.
Command: /Users/myname/Desktop/engine/src/out/host_debug_unopt/dart-sdk/bin/dart ".
A crash report has been written to /Users/myname/Desktop/flutter_new_app/flutter_app/flutter_01.log.
This crash may already be reported. Check GitHub for similar crashes.
https://github.com/flutter/flutter/issues?q=is%3Aissue+ProcessException%3A+Failed+to+find+"%2FUsers%2Fmichaelrozenblat%2FDesktop%2Fengine%2Fsrc%2Fout%2Fhost_debug_unopt%2Fdart-sdk%2Fbin%2Fdart"+in+the+search+path.
++Command%3A+%2FUsers%2Fmichaelrozenblat%2FDesktop%2Fengine%2Fsrc%2Fout%2Fhost_debug_unopt%2Fdart-sdk%2Fbin%2Fdart+
To report your crash to the Flutter team, first read the guide to filing a bug.
https://flutter.dev/docs/resources/bug-reports
Create a new GitHub issue by pasting this link into your browser and completing the issue template. Thank you!
https://git.io/JnG6n
Running Xcode build...
flutter_01.log

@MikePendo What happens when you run ninja -C out/host_debug_unopt?
Also does path /Users/myname/Desktop/engine/src/out/host_debug_unopt look correct to you? Is your folder actually located there (e.g. what does ls -al /Users/myname/Desktop/engine/src/out/host_debug_unopt print?)

@mraleph
So this command successfully run from the src folder and not from src/flutter as explained in the code.
so after running my app with local engine I received the following:
Unhandled exception:
Crash when compiling file:///Users/myname/Desktop/flutter/packages/flutter/lib/src/widgets/widget_inspector.dart,
at character offset 26515:
Bad state: No element
#0      List.single (dart:core-patch/growable_array.dart:342:22)
#1      ClassBuilderImpl.buildTypesWithBuiltArguments (package:front_end/src/fasta/builder/class_builder.dart:561:43)
#2      ClassBuilderImpl.buildType (package:front_end/src/fasta/builder/class_builder.dart:616:12)
#3      NamedTypeBuilder.build (package:front_end/src/fasta/builder/named_type_builder.dart:261:40)
#4      FunctionTypeBuilder.build (package:front_end/src/fasta/builder/function_type_builder.dart:83:21)
#5      BodyBuilder.buildDartType (package:front_end/src/fasta/kernel/body_builder.dart:6563:11)
#6      BodyBuilder.endFormalParameter (package:front_end/src/fasta/kernel/body_builder.dart:3641:7)
#7      Parser.parseFormalParameter (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1720:14)
#8      Parser.parseOptionalNamedParameters (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1792:11)
#9      Parser.parseFormalParametersRest (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1378:17)
#10     Parser.parseFormalParameters (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1352:12)
#11     Parser.parseFormalParametersOpt (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1312:15)
#12     DietListener.buildFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:973:22)
#13     DietListener._endClassMethod (package:front_end/src/fasta/source/diet_listener.dart:711:5)
#14     DietListener.endMixinMethod (package:front_end/src/fasta/source/diet_listener.dart:676:5)
#15     Parser.parseMethod (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3991:20)
#16     Parser.parseClassOrMixinOrExtensionMemberImpl (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3723:15)
#17     Parser.parseClassOrMixinOrExtensionBody (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3382:15)
#18     Parser.parseMixin (package:_fe_analyzer_shared/src/parser/parser_impl.dart:2188:13)
#19     Parser.parseTopLevelKeywordDeclaration (package:_fe_analyzer_shared/src/parser/parser_impl.dart:620:18)
#20     Parser.parseTopLevelDeclarationImpl (package:_fe_analyzer_shared/src/parser/parser_impl.dart:477:14)
#21     Parser.parseUnit (package:_fe_analyzer_shared/src/parser/parser_impl.dart:357:15)
#22     SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart:480:14)

#23     Loader.buildBodies (package:front_end/src/fasta/loader.dart:277:9)

#24     KernelTarget.buildComponent. (package:front_end/src/fasta/kernel/kernel_target.dart:364:7)

#25     withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)

#26     IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart:305:13)

#27     IncrementalCompiler.compile (package:vm/incremental_compiler.dart:69:29)

#28     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:513:11)

#29     listenAndCompile. (package:frontend_server/frontend_server.dart:1119:11)

#0      DietListener.buildFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:995:7)
#1      DietListener._endClassMethod (package:front_end/src/fasta/source/diet_listener.dart:711:5)
#2      DietListener.endMixinMethod (package:front_end/src/fasta/source/diet_listener.dart:676:5)
#3      Parser.parseMethod (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3991:20)
#4      Parser.parseClassOrMixinOrExtensionMemberImpl (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3723:15)
#5      Parser.parseClassOrMixinOrExtensionBody (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3382:15)
#6      Parser.parseMixin (package:_fe_analyzer_shared/src/parser/parser_impl.dart:2188:13)
#7      Parser.parseTopLevelKeywordDeclaration (package:_fe_analyzer_shared/src/parser/parser_impl.dart:620:18)
#8      Parser.parseTopLevelDeclarationImpl (package:_fe_analyzer_shared/src/parser/parser_impl.dart:477:14)
#9      Parser.parseUnit (package:_fe_analyzer_shared/src/parser/parser_impl.dart:357:15)
#10     SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart:480:14)

#11     Loader.buildBodies (package:front_end/src/fasta/loader.dart:277:9)

#12     KernelTarget.buildComponent. (package:front_end/src/fasta/kernel/kernel_target.dart:364:7)

#13     withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)

#14     IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart:305:13)

#15     IncrementalCompiler.compile (package:vm/incremental_compiler.dart:69:29)

#16     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:513:11)

#17     listenAndCompile. (package:frontend_server/frontend_server.dart:1119:11)

the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
Running Xcode build...

@MikePendo Try flutter clean in your project and try running again with local engine. (I assume that you have not made any modifications to either flutter framework sources or flutter engine sources).

still same error :(

@MikePendo does your application run without local engine? Can you post exactly the command are you using? Can you confirm that neither flutter framework nor flutter engine have any modifications?

Yes, the app runs without the engine.
flutter run --local-engine=ios_debug_sim_unopt the exact command I run
I confirm I didn't do any  modifications to the engine or framework  (as I aware of)

@mraleph
what else can I try?

I am trying to build a local engine at the same revision to see if this reproduces.

Seems to work just fine over here. Could you try running something simple? e.g. does it fail to run with local engine if you create an empty flutter project using flutter create?

So just want to make sure that we have the same versions:
Flutter Framework:
commit 02c026b03cd31dd3f867e5faeb7e104cce174c5f (HEAD -> stable, tag: 2.2.1, origin/stable, origin/flutter-2.2-candidate.10)
Engine:
commit 0fdb562ac8068ce3dda6b69aca3f355f4d1d2718 (HEAD)
The error log that I see was in the app created by Android studio
Creating app via terminal produces the  same error log
Unhandled exception:
Crash when compiling file:///Users/myname/Desktop/flutter/packages/flutter/lib/src/widgets/widget_inspector.dart,
at character offset 26515:
Bad state: No element
#0      List.single (dart:core-patch/growable_array.dart:342:22)
#1      ClassBuilderImpl.buildTypesWithBuiltArguments (package:front_end/src/fasta/builder/class_builder.dart:561:43)
#2      ClassBuilderImpl.buildType (package:front_end/src/fasta/builder/class_builder.dart:616:12)
#3      NamedTypeBuilder.build (package:front_end/src/fasta/builder/named_type_builder.dart:261:40)
#4      FunctionTypeBuilder.build (package:front_end/src/fasta/builder/function_type_builder.dart:83:21)
#5      BodyBuilder.buildDartType (package:front_end/src/fasta/kernel/body_builder.dart:6563:11)
#6      BodyBuilder.endFormalParameter (package:front_end/src/fasta/kernel/body_builder.dart:3641:7)
#7      Parser.parseFormalParameter (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1720:14)
#8      Parser.parseOptionalNamedParameters (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1792:11)
#9      Parser.parseFormalParametersRest (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1378:17)
#10     Parser.parseFormalParameters (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1352:12)
#11     Parser.parseFormalParametersOpt (package:_fe_analyzer_shared/src/parser/parser_impl.dart:1312:15)
#12     DietListener.buildFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:973:22)
#13     DietListener._endClassMethod (package:front_end/src/fasta/source/diet_listener.dart:711:5)
#14     DietListener.endMixinMethod (package:front_end/src/fasta/source/diet_listener.dart:676:5)
#15     Parser.parseMethod (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3991:20)
#16     Parser.parseClassOrMixinOrExtensionMemberImpl (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3723:15)
#17     Parser.parseClassOrMixinOrExtensionBody (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3382:15)
#18     Parser.parseMixin (package:_fe_analyzer_shared/src/parser/parser_impl.dart:2188:13)
#19     Parser.parseTopLevelKeywordDeclaration (package:_fe_analyzer_shared/src/parser/parser_impl.dart:620:18)
#20     Parser.parseTopLevelDeclarationImpl (package:_fe_analyzer_shared/src/parser/parser_impl.dart:477:14)
#21     Parser.parseUnit (package:_fe_analyzer_shared/src/parser/parser_impl.dart:357:15)
#22     SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart:480:14)

#23     Loader.buildBodies (package:front_end/src/fasta/loader.dart:277:9)

#24     KernelTarget.buildComponent. (package:front_end/src/fasta/kernel/kernel_target.dart:364:7)

#25     withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)

#26     IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart:305:13)

#27     IncrementalCompiler.compile (package:vm/incremental_compiler.dart:69:29)

#28     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:513:11)

#29     listenAndCompile. (package:frontend_server/frontend_server.dart:1119:11)

#0      DietListener.buildFunctionBody (package:front_end/src/fasta/source/diet_listener.dart:995:7)
#1      DietListener._endClassMethod (package:front_end/src/fasta/source/diet_listener.dart:711:5)
#2      DietListener.endMixinMethod (package:front_end/src/fasta/source/diet_listener.dart:676:5)
#3      Parser.parseMethod (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3991:20)
#4      Parser.parseClassOrMixinOrExtensionMemberImpl (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3723:15)
#5      Parser.parseClassOrMixinOrExtensionBody (package:_fe_analyzer_shared/src/parser/parser_impl.dart:3382:15)
#6      Parser.parseMixin (package:_fe_analyzer_shared/src/parser/parser_impl.dart:2188:13)
#7      Parser.parseTopLevelKeywordDeclaration (package:_fe_analyzer_shared/src/parser/parser_impl.dart:620:18)
#8      Parser.parseTopLevelDeclarationImpl (package:_fe_analyzer_shared/src/parser/parser_impl.dart:477:14)
#9      Parser.parseUnit (package:_fe_analyzer_shared/src/parser/parser_impl.dart:357:15)
#10     SourceLoader.buildBody (package:front_end/src/fasta/source/source_loader.dart:480:14)

#11     Loader.buildBodies (package:front_end/src/fasta/loader.dart:277:9)

#12     KernelTarget.buildComponent. (package:front_end/src/fasta/kernel/kernel_target.dart:364:7)

#13     withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)

#14     IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart:305:13)

#15     IncrementalCompiler.compile (package:vm/incremental_compiler.dart:69:29)

#16     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:513:11)

#17     listenAndCompile. (package:frontend_server/frontend_server.dart:1119:11)

the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
Running Xcode build...
@mraleph what else could be different?
I am not sure regarding the Dart? is it part of the flutter Framework? (or should I fetch it separately)
flutter --version
Flutter 2.2.1 • channel stable • git@github.com:MikePendo/flutter.git
Framework • revision 02c026b03c (3 weeks ago) • 2021-05-27 12:24:44 -0700
Engine • revision 0fdb562ac8
Tools • Dart 2.13.1

@mraleph what else could be different?
I am not sure regarding the Dart/Tools/Compile version/etc? is it part of the flutter Framework? (or should I fetch it separately)
flutter --version
Flutter 2.2.1 • channel stable • git@github.com:MikePendo/flutter.git
Framework • revision 02c026b03c (3 weeks ago) • 2021-05-27 12:24:44 -0700
Engine • revision 0fdb562ac8
Tools • Dart 2.13.1

@MikePendo this looks like exactly the same versions I have tested with. The most puzzling thing to me is that it works for you without local engine and it does not work for you with local engine.
Could you try the following and post the output you get:
$ flutter doctor -v
$ cd /tmp
$ flutter create test
$ cd test
$ flutter run
...
$ flutter run --local-engine ios_debug_sim_unopt
...

Additionally could you run this in your flutter folder:
$ tail -c +26400 packages/flutter/lib/src/widgets/widget_inspector.dart | head -c 200

Thanks
logf1.txt
flutter git:(stable) tail -c +26400 packages/flutter/lib/src/widgets/widget_inspector.dart | head -c 200
ame (full
  /// name "ext.flutter.inspector.name"), which takes no arguments.
  void _registerSignalServiceExtension({
    required String name,
    required FutureOr<Object?> Function() callback,
  }%

I am wondering maybe the flutter run  uses a different flutter framework(or different path) somehow:
export PATH=$HOME/Library/Android/sdk/platform-tools:\
$HOME/Library/Android/sdk/:\
$HOME/Library/Android/sdk/tools/bin:\
$HOME/bin:\
/usr/local/bin:\
$PATH:\
$HOME/Desktop/flutter/bin:\
$HOME/Desktop/flutter/bin/flutter:\
$HOME/Desktop/depotTools/depot_tools

could it be that the duplicate path causing the issue?

There is just something really wrong with the local engine that was built. I can't really figure out how it is so broken.
What happens when you cd engine/src/third_party/dart and do git status there? Are there any changes?
Okay, here is an idea. Try the following:
$ cp $flutter_dir/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot $engine_dir/src/out/host_debug_unopt/gen/frontend_server.dart.snapshot
$ flutter run --local-engine ios_debug_sim_unopt

Here $flutter_dir is the directory where you have flutter (I think it is $HOME/Desktop/flutter) and $engine_dir is the directory where you have engine (probably $HOME/Desktop/engine).

dart git:(375a2d7c66c) git status
HEAD detached at 375a2d7c66c
nothing to commit, working tree clean

I replaced the frontend_server.dart.snapshot
still same error (I would expect it to pass this time, as we replaced it but it still uses the old one probably)
log2f.txt
@mraleph if u don't have other suggestion I think I will delete flutter/engine repos and will set it again from the beginning (something is not right, I did flutter clean)

Yeah something is really wrong. I was planning to suggest purging both checkouts as well.

I will close the issue for now. Let us know if you still hit strange behaviour even after purging your checkouts.

@mraleph Thanks a lot indeed after setting up all the repos from scratch the local engine seems to work fine.
just couple of question:
I am not sure what the diff between two build directories:
ios_debug_sim_unopt that the engine for the simulator
host_debug_unopt I am not sure what that for ? and when is it used.
Also according to the docs:
If you open your iOS .xcodeproject or .xcworkspace in Xcode, you can set breakpoints e.g. in main.m. From there, you can use lldb to set a breakpoint on the relevant engine source, e.g. (lldb) br set -f FlutterViewController.mm -l 123.
BUT my sample app doesn't has FlutterViewController.mm or any source code of the engine, so should I import the flutter_engine.xcodeproj to the the Runner.xcworspace and debug it from there? (and I guess we should use flutter_engine.xcodepro from the simulator directory)
Thanks.

ios_debug_sim_unopt has flutter engine for iOS simulator, host_debub_unopt has tools which would run on your host (laptop).
Unfortunately I have never needed to debug engine in Xcode, so I can't be of much help in that. I'd imagine that once you use locally built engine you should be able to use symbolic breakpoints on particular Engine methods.


Static files rework

Currently, you configure static files like this:
public JavalinConfig addStaticFiles(String classpathPath)
public JavalinConfig addStaticFiles(String path, Location location)
public JavalinConfig addStaticFiles(String urlPathPrefix, String path, Location location)

In addition you have some global properties:
public boolean precompressStaticFiles = false;
public ContextHandler.AliasCheck aliasCheckForStaticFiles = null;

And in addition to that (!), you have that files served from a dir called /immutable have the max-axe header set to 1 year.
It should be possible to clean this up a bit.

addStaticFiles()
    .dir("/public")
    .location(Location.CLASSPATH)
    .urlPrefix("/my-prefix")
    .preCompress(true)
    .aliasCheck()
    .header(key, value)
    .header(key, value)

There was a suggestion on Discord to add static file handlers as normal get routes:
get(path, staticFilesHandler, roles)

get("/assets", StaticFileHandler{{
    it.directory("/public") // default "/public"
    it.location(Location.CLASSPATH) // default "Location.CLASSPATH"
    it.precompress(true) // default true?
    it.aliasCheck() // default null
    it.header(key, value) // no headers set by default
    it.header(key, value) // can be called multiple times
}), roles(Role.ANY)

Pros

It's obvious when the route is matched (same logic as normal get routes)
More flexible
Fewer WTF's per minute

Cons:

Harder to discover than config.methodName (need an extra import or two)

There is also SseHandler and VueComponent which could (or could not) be part of a Handlers class.

https://github.com/tipsy/javalin/pull/1234 contains the API described in https://github.com/tipsy/javalin/issues/1223#issuecomment-817211088 (minus headers).
Also have to consider https://github.com/tipsy/javalin/issues/1223#issuecomment-817211088.

Current API:
javalin.addStaticFiles { staticFiles ->
    staticFiles.hostedPath = "/url-prefix"
    staticFiles.directory = "/public"
    staticFiles.location = Location.CLASSPATH
    staticFiles.aliasCheck = ContextHandler.ApproveAliases()
    staticFiles.precompress = true
    staticFiles.headers = mapOf(Header.CACHE_CONTROL to "max-age=31622400")
}


Add NumPy v1.17 new random API with Generator

This is still on-going
Due to some issues when generating the distributions in #4163, the added bit generators will use only the curand device API
I have spent a great deal of time trying to figure out how to correctly templatize the code, some ideas will be greatly appreciated. The idea is that we want multiple curand generators (or custom ones) to be supported in the kernels that implement the distributions. The generators are usually specified in the BitGenerator in python so we need to get that type info down to the Cython level.
TODO

HIP
Add minimum set of distributions (normal, uniform, exponential)
Support all device curand generators
Tests

I tried to design some templatized mechanism for the kernels to allow any type of generator obbeying the API,
However there are several limitations that made this approach not feasible at the first try.
The idea was that the BitGenerators in python have a method that returns a wrapped instance of their C generator.
But at the time of calling the templatized module, the wrapped instance is always a PyObj because we can't determine the type at compile time since this is doing several kinds of polimorphism. So in the end the correct template can't be invoked unless the object is explicitly casted to the correct type, which is something I wanted to avoid.

Added an integers naive implementation that takes 25 us to generate 10.000 elements compared to the 500 us of the current randint

Btw, randint with this is super fast, around 26 us to generate 10.000 random integers compared to 500 us of current cupy implementation

87e959a fixed the C++ error, but we still have errors due to using variadic arguments (https://github.com/cupy/cupy/pull/4177#discussion_r515746465).

Would like some feedback on the new design :)

Jenkins, test this please.

Jenkins CI test (for commit dd36e4b1d16df60ab83899c1954df612beb4b001, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins CI test (for commit 7612b0ce4b0ff6f765cd00eef448922774338c62, target branch master) failed with status FAILURE.

Jenkins, test this please

Let me know if you need me to jump on the HIP support @emcastillo!

Jenkins CI test (for commit e110bbfa804eaa5ec20f86e9c89e01b52db7be4d, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins CI test (for commit 3b01e734fee84479f466e18b0148929d79bb12d2, target branch master) succeeded!

So there're a couple of issues in this PR presently that took me one full day to sort out... Three different but related problems:

Jitify could be deceived by NVRTC and locates a wrong header due to bad NVRTC behavior [*]
cuRAND headers are not (and cannot be) distributed
Jitify does not work on HIP due to hipRTC issues

I suggest we instead use NVCC to compile the cuRAND device kernels:

Pros: avoid Jitify issues as it always finds the correct header; works for HIP (by using HIPCC)
Cons: might have slightly increased overhead; does not work if CuPy is installed via Conda-Forge and there is no local, matching CUDA installation that provides either NVCC or the headers at runtime; unclear if this works on Windows or not

I've been thinking to package cuRAND headers for Jitify+NVRTC, like what we've done for CUB and Jitify, but I don't think EULA permits it...
[*] I encountered a very subtle bug that leads to cudaErrorIllegalAddress when testing the MRG32k3a bit generator. It turns out I got mismatching sizes for the struct curandStateMRG32k3a on device (72) and on host (48). I identify it has the same root cause as in NVIDIA/jitify#81.
Here's what happens, bear with me: First it's about my dev env. I have multiple CUDA installed in my env, 10.0 via package manager and other versions via runfile. Ubuntu is very annoying that it scatters CUDA’s stuff all over the place, so for example the 10.0 headers are put in /usr/include instead of the standard /usr/local/cuda-10.0/include. I've been doing development in 10.2 lately (installed in the default path /usr/local/cuda-10.2/), and it usually works just fine.
Second, the struct members of curandStateMRG32k3a have changed between 10.0 and 10.2. Usually this is not a concern as they're implementation details that end users need not to care.
But, when compiling the device kernel using Jitify,  NVRTC will by default search /usr/include (a behavior out of users' control, see https://github.com/NVIDIA/jitify/issues/81#issuecomment-726818514) so it sees the header from 10.0, which has struct size 72 for curandStateMRG32k3a. But when we got sizeof(curandStateMRG32k3a) from the Cython module, it was correctly compiled on host against CUDA 10.2, so I got the size 48 which is in fact correct.
For ordinary users with a single CUDA installation, the above bug would not happen and Jitify+NVRTC seems to be just fine, but for advanced users or developers it would be very hard to debug if it happens.

The main problem that we have with nvcc is that it is not installed in some environments.
I think that hipcc for hip its fine, but for nvidia, we should add a kernel at startup that retrieves the correct struct sizes from the device.

Right, as I said conda environments would not have nvcc available. But it's not just about the struct size, it's about the whole header (including the device kernel implementations) is off. Maybe if we consistently use the "wrong header" it would work out fine?

The alternative is to go back to the dispatch templates 😂

If it's possible then yes, definitely an option. What was the reason we chose Jitify instead of the dispatcher approach?

Much more cleaner code, and no need to have a module for random

the lack of redistributable curand headers motivated us to restore the old module-based approach.
@asi1024 @leofang PTAL!

PTAL!

PTAL!

Jenkins, test this please.

Jenkins, test this please.

Jenkins CI test (for commit f63babf905a7e7cd41a96f5f322988daffd39148, target branch master) failed with status FAILURE.

Jenkins CI test (for commit f63babf905a7e7cd41a96f5f322988daffd39148, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins, test this please

Jenkins CI test (for commit f63babf905a7e7cd41a96f5f322988daffd39148, target branch master) failed with status FAILURE.

Jenkins CI test (for commit f63babf905a7e7cd41a96f5f322988daffd39148, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins, test this please

Jenkins CI test (for commit f63babf905a7e7cd41a96f5f322988daffd39148, target branch master) failed with status FAILURE.

Jenkins CI test (for commit f63babf905a7e7cd41a96f5f322988daffd39148, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins, test this please

Jenkins CI test (for commit b8b5b51c10a25dae4040fc046b7cba436c39851e, target branch master) failed with status FAILURE.

Jenkins CI test (for commit b8b5b51c10a25dae4040fc046b7cba436c39851e, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins, test this please

Jenkins, test this please

Jenkins, test this please

Jenkins CI test (for commit 04ce86dbb0ef0e3183c42bdc92c68d02cbfff53a, target branch master) succeeded!

Jenkins CI test (for commit 04ce86dbb0ef0e3183c42bdc92c68d02cbfff53a, target branch master) succeeded!

LGTM!

LGTM!

Awesome work @emcastillo!!!

Awesome work @emcastillo!!!


Updated README.md

Issue #48 solved.

Added a section " TECHNOLOGY STACK".
Added a section "REPO STATUS".
Added README badges for the section "Supported Platforms".
Added a "CONTRIBUTORS" section.
Added images of the website after the "Features" section.
Added "Back To Top" button.
Modified the contributing guidelines.

Please check it out and let me know if any changes are to be made. @Yash-Parsana

Please mention issue number.

Please mention issue number.

He has mentioned it at the top
issue #48


Feature/wallet creation bug fix

Fixed textfields logic

In general - everything is fine.
Just try to keep general funciton like :
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String)

As simple as possible - now it much easier to read, what does it do. 👍

Done!


A question about the implementors in rusqlite::types::FromSql

Hey there !
I was retrieving some data from a local database and tried to store them in f32 but was given the following error :
error[E0277]: the trait bound `f32: rusqlite::types::FromSql` is not satisfied

So I checked the rusqlite::types::FromSql documentation and I noticed only f64 was implemented.
I then went to check the sqlite3 datatypes only to notice that REAL value are stored as an 8-byte IEEE floating point number.
So my question is, why doesn't the trait implement the type in the sqlite doc as i8 (integer are being stored in 1, 2, 3, 4, 6, or 8 bytes) or f32?
I'm new to Rust and have never really done any C/C++ so that might be a dumb question.

Howdy! I think there are two questions there (one about integers and one about floats).
The float question is easier - a Rust f32 is a 32-bit (or 4-byte) float. Since SQLite floats are 8 bytes (64 bits), we only provide FromSql for f64. You could implement FromSql for f32 if it makes sense for your project, but in general that interface would force us to provide a FromSql that was losing precision from the values we get from SQLite.
Integers are a little more complicated. SQLite may well store them in 1, 2, 3, 4, 6, or 8 bytes, but the only interfaces it exposes for us to get integer values return a C int via sqlite3_value_int or a 64-bit (8 byte) integer via sqlite3_value_int64 (from Obtaining SQL Values). The size of int in C can vary from platform to platform. On most (all?) modern desktop/server systems it's 32 bits (4 bytes), but it can be smaller on some embedded hardware.
You could make a case that we should really only provide FromSql for i64 (8 byte integers), but since i32 is so common, we do go ahead and provide that one too. The i32 FromSql will misbehave if integer values outside its range are being fetched, though. FromSql for other integer sizes (like i8) could be provided as well, but they'd have the same issue of silently truncating values if you tried to fetch values outside their range.

On second thought - our impl of FromSql for i32 should be checking that the value is in range (it's not currently). If we had that check in place, it'd be fine to add support for the other integral types as well. I'll leave this issue open until that can be addressed. f32 is still out in the cold, though. If you're fine with the potential loss of precision, you can always get an f64 then use as f32 to convert it.

Thanks for this excellent answer, it now makes sens to me that you implemented it this way. I was expecting something along those lines.
Also thanks for the library, it's been very easy to use for me!


dts: mdio-controller: add property for MDC frequency

Add a property to the mdio controller binding to describe the MDC frequency of a controller

I checked the rest of the MDIO drivers and none except NXP used that. Maybe it should be located directly in the NXP mdio bindings instead?


"Segfault/invalid stdio handle/double free or corruption (!prev)" errors when using highs

Hi there,
Thanks for creating this useful library.
I have been running into some issues when using the LP solver. The specific problem is the following: I run the highs LP solver in a function, and sometimes (but not always, depending on the exact function call) after successfully solving an LP and exiting the function, one of "Segmentation fault", "Fatal error: glibc detected an invalid stdio handle", or "double free or corruption (!prev)" get's thrown and my program crashes.
I believe the LP was successful because the 1) error seems to get thrown after exiting the function where I call highs, and 2) I can access the solution and the results seem reasonable. Furthermore, the Highs.log file is empty.
I'm also calling highs directly from this crate and not from good-lp.
Let me know if you have any ideas about what the issue is. I've attached the output of dbg!(pb), dbg!(solved.get_solution()) in a log file below.
log.txt
Thank you!

Hello, and thanks for the report ! Do you have a rust project for reproduction ?
@jajhall , does that ring a bell ? Do you think this is a bug in HiGHS itself, or is it the use of HiGHS C API in this library that is unsafe ?

It doesn't, sorry, we've not had any similar issues raised by people using the C API.
I don't recognise any of the output as coming from HiGHS.
As for the Highs.log file being empty, we don't flush the buffer on return from HiGHS methods, so a segfault like this might mean that output is lost. Adding the flush would be wise. I've also got an issue to look at relating to Highs.log being opened, even if HighsOptions::output_flag is immediately set to false, so I'll look at both together.

The log.txt file does not come from HiGHS, it's what @bluenote-1577 logs from his own code. It represents the problem that he is solving with HiGHS.

@jajhall : I think there may be a double-free when a problem is created with Highs_create, then incoherent values are passed  with Highs_passLp, which returns an error status, and then the problem is freed with Highs_destroy.
I added a fuzzer which found that issue almost immediately. It may be pertinent to add fuzzing directly to HiGHS.

Thanks: I'll see if I can reproduce this locally

Looking into it deeper, it looks like the problem (or at least one problem) comes from the fclose(log_file_stream) in Highs' destructor. HiGHS may be trying to close an already closed file.

Hi all,
Thanks for responding so quickly. I've manged to upload what seems to be a reproduce-able version, but unfortunately it comes from a specific problem (a network flow problem) that my algorithm works on with a few hundred variables and constraints. This problem didn't occur with a simple LP and I can only reproduce it using a specific dataset.
git clone https://github.com/bluenote-1577/glopp
cd glopp
git checkout flow (will take a while, the required input file is > 600mb. requires git-lfs installed otherwise inputs will not be downloaded)
cargo build (requires cmake version > 3.12 in path)
./target/debug/glopp -b tests/long-10305070.bam -c tests/10kcutoff-lofreq_500k_unif.vcfc_header -e 0.05

I'm not sure this is the same issue, but just running the tests in this repository with AdressSanitizer on reproduces the issue.

Since the memory corruption happens in HiGHS when changing the default value of the log_file option, I published v0.5.1 where I disabled the suppression of HiGHS default behavior of trying to create a log file even when it is used as a library.
I'll re-enable it when HiGHS fixes the error on their side. In the meantime, the library will create a Highs.log file that you probably don't want, but it should't segfault anymore.


Native mode does not support client map in velocity templates

Describe the bug
When using $clients["xyz"].secret in templates, the native mode does not resolve the $clients variable.
To Reproduce
Use e.g. the native image of version 1.3.1:

Make sure to have a secret template with $clients usage
Export secrets
Check generated secret files
Variable of $clients is not replaced

Expected behavior
E.g. $clients["xyz"].secret is correctly replaced by the corresponding value of the requested client.

Running with graalvm tracer:
mvn quarkus:dev -Ddebug=false -Djvm.args="-agentlib:native-image-agent=config-output-dir=native-image-config-{pid}-{datetime}" -Dquarkus.args="export-secrets -s http://localhost:8081/auth -r default -u admin -p admin -c ./secret-templates -o ./env" -Pgithub


post() got multiple values for keyword argument 'connection error

I'm getting the following error with the following sample case:
from firebase import firebase
firebase = firebase.FirebaseApplication('https://ustun-test.firebaseio.com', None)

new_activity = {
    "user": "Ustun",
    "action_type": "asked",
    "text": "a text questions",
    "url": "a url"
}

result = firebase.post('/activities', "x", {'print': 'pretty'}, {'a': 'b'})
print result

A sample traceback:
python firebase_integration.py
> /Users/ustun/scv14/lib/python2.7/site-packages/firebase/decorators.py(21)wrapped()
     20             import ipdb; ipdb.set_trace()
---> 21             return f(*args, **kwargs)
     22         return wraps(f)(wrapped)

ipdb> args
args = (<firebase.firebase.FirebaseApplication object at 0x10f05b910>, '/activities', 'x', {'print': 'pretty'}, {'a': 'b'})
kwargs = {'connection': <requests.sessions.Session object at 0x10f0ff890>}
ipdb> kwargs
{'connection': <requests.sessions.Session object at 0x10f0ff890>}
ipdb> c
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
firebase_integration.py in <module>()
      9 }
     10
---> 11 result = firebase.post('/activities', "x", {'print': 'pretty'}, {'a': 'b'})
     12 print result

/Users/ustun/scv14/lib/python2.7/site-packages/firebase/decorators.py in wrapped(*args, **kwargs)
     19             connection.headers.update({'Content-type': 'application/json'})
     20             import ipdb; ipdb.set_trace()
---> 21             return f(*args, **kwargs)
     22         return wraps(f)(wrapped)
     23     return wrapper

TypeError: post() got multiple values for keyword argument 'connection'

Here is what args and kwargs are:
ipdb> args
args = (<firebase.firebase.FirebaseApplication object at 0x10b4df910>, '/activities', 'x', {'print': 'pretty'}, {'a': 'b'})
kwargs = {'connection': <requests.sessions.Session object at 0x10b583890>}
ipdb> kwargs
{'connection': <requests.sessions.Session object at 0x10b583890>}

Still not working on Python 3.4.3

Am facing the same issue .
Post method in firebase.py :
def post(self, url, data, connection, params=None, headers=None): Where connection is the third parameter .
With the example provided :
result = f.post(url , data , {'print' : 'pretty'}) - then assigns the { print : pretty } to the connection and it also creates another one and hence i guess it fails . Removing this argument works fine .

Was this ever corrected? I am still receiving this error on P 2.7 with the latest build of this library. Any parameter as shown above produces this error.

+1

+1 please fix

what was the solution??? I have the same problem :(

I also am having the same issue!

well i fixed in my case but... dont forget the "self"
El 29/04/2016 16:58, "arushijain"<EMAIL_ADDRESS>escribió:

I also am having the same issue!
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/ozgur/python-firebase/issues/22#issuecomment-215880187


BUG: union_categorical with Series and cat idx

[x] closes #14173
[ ] tests added / passed
[x] passes git diff upstream/master | flake8 --diff
[x] whatsnew entry (not needed)

Current coverage is 85.24% (diff: 100%)

Merging #14199 into master will increase coverage by <.01%

@@             master     #14199   diff @@
==========================================
  Files           140        140
  Lines         50556      50563     +7
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits          43095      43102     +7
  Misses         7461       7461
  Partials          0          0

Powered by Codecov. Last update 289cd6d...b04ea4d

thanks!


Automated cherry pick of #3325: fix: 避免解绑eip更新状态不及时导致再次同步出现public ip问题

Cherry pick of #3325 on release/2.10.0.
#3325: fix: 避免解绑eip更新状态不及时导致再次同步出现public ip问题

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.10.0@9443711). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             release/2.10.0   #3328   +/-   ##
================================================
  Coverage                  ?   7.47%
================================================
  Files                     ?     414
  Lines                     ?   66209
  Branches                  ?       0
================================================
  Hits                      ?    4946
  Misses                    ?   60840
  Partials                  ?     423

Flag
Coverage Δ

#aFlag
7.47% <ø> (?)

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 9443711...4a57706. Read the comment docs.

/lgtm

/approve


cmd/gofmt: unexpected formatting of comments

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.9.1 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/xxx/go"
GORACE=""
GOROOT="/usr/lib64/go"
GOTOOLDIR="/usr/lib64/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="x86_64-pc-linux-gnu-gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build052197988=/tmp/go-build -gno-record-gcc-switches"
CXX="x86_64-pc-linux-gnu-g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

What did you do?
The following code (https://play.golang.org/p/yWr8ET9ZUg) is laid out with comments as I would expect:
package main

import "os/exec"

func main() {
	exec.Command("nmap",
		"-sV",          // Get version information
		"-oA", "blah",  // Save all versions as output
		"-oG", "-",     // Output Greppable format to stdout
		"-Pn",          // Skip Ping scan to force scanning everything
		"-p-",          // Scan all ports
		"-v",           // Increase verbosity (shows down hosts now)
	)
}

However, the output of gofmt gives the following (https://play.golang.org/p/My_W9bkZrY):
package main

import "os/exec"

func main() {
	exec.Command("nmap",
		"-sV",         // Get version information
		"-oA", "blah", // Save all versions as output
		"-oG", "-", // Output Greppable format to stdout
		"-Pn", // Skip Ping scan to force scanning everything
		"-p-", // Scan all ports
		"-v",  // Increase verbosity (shows down hosts now)
	)
}

It seems to appear that the first two lines are treated as one block, the third line by itself, and the last three lines are treated as another block.
What did you expect to see?
I would expect no change in the formating of the comments
What did you see instead?
The comments changed, as shown above.
First time bug for me, so hopefully this is OK. Let me know if there is anything more you need. I'm also keen to help fix it, but I'm also new to go so may take a while :)
Cheers,
Hugh

This is just how it works.
I don't think gofmt is anybody's favorite formatter.  It's just good enough to be something that everyone can agree on.

Interesting. This is actually working as expected. The problem is that the usual alignment computation breaks down when there's more then one entry per line. For comparison, see the result of this example where I made the lines all have one entry but have the same overall length: https://play.golang.org/p/4qanGJEhr1 . This time it works.
@ianlancetaylor is correct, this is working as intended, even though it's unexpected. I will leave this open for now, perhaps there's a not too difficult way to fix this.

Hey,
That makes sense, I wouldn't normally do two things per line like this, but felt like it made sense for this code. Filed the bug purely because I thought the output looked like badly formatted code.
When I get a free chunk of time I'll take a look at how it does it and see whether there is an easy and sane way to make it look nicer.
Cheers,
Hugh

Also, what about the normal code formatting as below? Currently, gofmt does the work if it is a declaration block inside a var  ( )  block. But it will be really good to see the normal code as well.  In my opinion, it makes the code more readable.
Giving following example to understand more,
What is currently,
	aasdf := 1234
	a := 1234567
	xsadf := "asdfghjkl"

What is expected,

	aasdf := 1234
	a     := 1234567
	xsadf := "asdfghjkl"

Is this type of formatting possible with gofmt?

@yogesh-desai gofmt doesn't do this now. It's possible to do it, but it requires a change. It's not a high priority.

@griesemer I would like to help to solve it. Please let me know so can take care of this change.

@yogesh-desai Thanks for your offer, but not now.


Optimizing parsing speed

Hi Jake,
Thanks for your efforts in creating this great parser, it's really well designed.
I have some suggestions though:

When I read this on the description: "This particular parser is well suited to parsing large data from streams as it doesn't attempt to read the entire stream at once and procudes a set of streams for file data.", I was glad that at last I found a parser which doesn't store all the data in memory. However I was surprised when I saw you were storing the resulting file data in a MemoryStream at ParseFilePart method. In my opinion, this kills the premise. No big deal though, I implemented an interface and integrated it with the parser to call methods like BeginFile, WriteData, EndFile when necessary. This way I can redirect the stream whereever I want without any memory pressure on the server. This is especially good for large files (> 2GB).

Do you think the parser can be optimized further? On my local tests, I can see 20 Mb/s with the parser which is not bad but when I upload via pure stream (chunked though) I can see 200 Mb/s to 300 Mb/s. Note that these speed tests exclude processing the file, i.e. writing to disk. I used a buffer size of 80kb. I came along the below post which discusses parsing file uploads at 500 mb/s:
http://debuggable.com/posts/parsing-file-uploads-at-500-mb-s-with-node-js:4c03862e-351c-4faa-bb67-4365cbdd56cb
If they can do this with node.js , we should be able to do it better with C# :) I know you are using KMP Algorithm and the poster seems to be using Boyer-Moore algorithm with an additional trick.

Let me know.

Hi ueberboss.
I know this issue has been around for a while and I'm sorry it's taken me so long to look at it. I've changed the substring parsing algorithm such that it reflects the observations pointed out in the article you referenced (http://debuggable.com/posts/parsing-file-uploads-at-500-mb-s-with-node-js:4c03862e-351c-4faa-bb67-4365cbdd56cb). The changes are included in version 1.1.1 and should see significant speed ups in the parsing of large files.
If you're still using the parser let me know if you see any improvements!
Either way thanks for your help and sorry for the enormous delay!

Hi Vodurden,
thanks for the update!  Unfortunately my side-project has made little progress, but I have not halted work on it and have been following your project here.  I will be merging in the latest of your changes.  It was catester who mentioned the article - hopefully he/she can report on a performance improvement.
Thanks again for all your work on a core component!

Whoops! I forgot to read the entire thread for names. Thanks to both of you for contributing! Hopefully the improvements help catester as well!

Hi Jake,
Thanks for the algorithm improvement. I can see a speed increase of 5x to 6x with this change so it's pretty good. However during my testing I experienced heavy CPU usage (even throttling/freezing), I am not sure if it's related directly to the parser though. It's probably something about my environment. I will check if same thing happens with the old algorithm too.

I examined and fixed the problem: 78b453d96cccc64a0ab68dc48dc679684ea25c0d


Navbar fix across pages

fixed navigation menu to be same across all pages

This is really needed. Do you have time to fix the merge conflict? :)

sure


List documents

Hello
I am trying to list the documents from an estate. I saw that I can upload or delete a document but I can't list them.
Thanks for your help!

I'm assuming you're using the System Integrator API?
As far as I'm aware there is no specific endpoint for listing documents, but you can fetch them by calling the /v1/estates/list endpoint. Estates that have documents should have a documents array property, while estates without documents don't have the property set. Do note that you might have to set IncludePrivate to true to include non-public documents in the result.


Add more entropy to brainfuck

It should not be competitive to encode all the outputs in a solution.
Fixes #33

Hmm, can we add a newline to end of this too, like the others?


Failed to install sklearn while installing requirements

A user report: "this error comes up when I open the pandas course, I assume it's an issue with the way its named in the dependencies?"

The issue was successfully reproduced, created a ticker on YouTrack

@avalur , we have encountered the same issue while deploying on remote dev, please, take a look

Thanks a lot! Fix it here: https://github.com/jetbrains-academy/gateway-to-pandas/pull/29


Return code parsing

Heyhey,
Here is another PR :).
The motivation for this PR is that it might be possible that some selectors handle the return codes differently, additionally I think it's much clearer where the "random" return code numbers come from if they are handled within the selector rather than in the main py file.
I wrote it first with returning string and parsing them back to Actions later, but I feel like having to retype those strings is tedious and error prone, hence I opted for moving the Action class to its own file and including it the other files. (Which has the added benefit of changing many self.Action into a simple Action)

Rebased it on the new main!

Hey, that's a really good idea! Thank you 🙂
There's two smaller things I'd like to change:
First, I'd like to make CANCEL an explicit action the selector can return. None could also mean that no action was selected. But here, the user chose explicitely to cancel.
Secondly, for me the main logic to decide what to do is still part of rofi-rbw; the selector can only return a hint. Therefore, it does not need to know what the default action is. Instead, it should either pass Action.DEFAULT in case the user chose the default action explicitely, or None, if there was no hint from the user.

First, I'd like to make CANCEL an explicit action the selector can return. None could also mean that no action was selected. But here, the user chose explicitely to cancel.

Yea, I thought about that too, but in that case the use can pass --action cancel as an argument to rofi, which I think is kinda weird. An option would be to make another class SelectorAction which inherits the Action class which has the added value of CANCEL and DEFAULT. Do you know a good solution for it?
Additionally in my opinion returning None would imply cancel, I see it more as "Hey Selector which action should I do?" and then a None value implies nothing, but ofc it's your package so you can decide on that.

Secondly, for me the main logic to decide what to do is still part of rofi-rbw; the selector can only return a hint. Therefore, it does not need to know what the default action is. Instead, it should either pass Action.DEFAULT in case the user chose the default action explicitely, or None, if there was no hint from the user.

IMO pressing Enter is an hint by itself: "I want this one". Other than the response above about the --action default thing I think a DEFAULT action sounds good!
PS: Now I think of it, when a CANCEL action is added should be the return value of the abstract Selector class?

Yea, I thought about that too, but in that case the use can pass --action cancel as an argument to rofi, which I think is kinda weird. An option would be to make another class SelectorAction which inherits the Action class which has the added value of CANCEL and DEFAULT. Do you know a good solution for it?

I had thought about that. One way would be to limit the Actions exposed in the UI (ie something like choices=[action.value for action in self.Action if action != Action.CANCEL]). Another, and probably nicer would be to have two action enums, one for explicit user actions, one for implicit ones (CANCEL and DEFAULT, if we want both).

Additionally in my opinion returning None would imply cancel, I see it more as "Hey Selector which action should I do?" and then a None value implies nothing, but ofc it's your package so you can decide on that.

For me, None (like Null in other languages) is kind of separate to the other possible values. Most often, it just means "There is no value here" which is different from "a neutral value". For example, an int could be None or 0 - the former means (to me) that this value is not applicable or missing, but the other means that it has been explicitely selected to be 0.
In this example, overwriting None with a concrete value is certainly fine (there was nothing before), but overwriting 0 might not be correct (there is already a value).
In our case, CANCEL is an explicit decision by the user, which the caller should respect. None is the absence of a user decision, so the caller is free to decide what to do.

IMO pressing Enter is an hint by itself: "I want this one". Other than the response above about the --action default thing I think a DEFAULT action sounds good!

Depends on what is selected when you press Enter: Is it a menu of possible actions? Then I agree, it's a decision for the currently selected Action.
Is it a menu of credentials, and the user chooses which one to use? Then there is no explicit decision for what to do with this credentials, which would fit with my definition of None above. But I think a Action.DEFAUL is also okay 🙂

PS: Now I think of it, when a CANCEL action is added should be the return value of the abstract Selector class?

I'm not sure... on the one hand, it seems to fit. But on the other, we're in an error condition (because the user cannot make a decision), so we should not hide that fact. It's probably not a good for the selector to hide its problems from the caller and to pretend that everything's fine 😉

two action enums, one for explicit user actions, one for implicit ones

I just tried creating another UserActions class, which the Actions class inherits and extends, but it turns out extending an Enum class like that is not possible. I think another possible solution is to create a SelectorResponse enum, with the values CANCEL, DEFAULT, and ACTION and have the selector class return three values: Tuple[SelectorResponse, Action, String].
The other solution would be to duplicate all enum options. What do you think is best?

like choices=[action.value for action in self.Action if action != Action.CANCEL])

I think this is also a quite good solution.

None (like Null in other languages) is kind of separate to the other possible values.

Yea I agree with you, I read your points and think your approach is better.

the user chooses which one to use

I totally did not think about that haha

it turns out extending an Enum class like that is not possible.

Yes, that's because normally a class is more specific than its parent (think Crocodile and Animal), but with enums, they would get more generic (more possible values). Since this is contradictory, it's (usually) prohibited.

I think another possible solution is to create a SelectorResponse enum, with the values CANCEL, DEFAULT, and ACTION and have the selector class return three values: Tuple[SelectorResponse, Action, String].

I've also thought about a SelectorResponse enum, and it would also work fine, I think. But what would Action signify?
And why return both SelectorResponse and Action instead of Tuple[Union[SelectorResponse, Action], String]? When would we have both SelectorResponse and Action, and which one would then win?

like choices=[action.value for action in self.Action if action != Action.CANCEL])

I think this is also a quite good solution.

Thank you 🙂
I'm not sure which one I like more, but currently I'm leaning towards two separate enums as they are subtly different.

Tuple[Union[SelectorResponse, Action], String]

I did not know this was an option, unfortunately I'm not familiar with the return type annotation within python.

I'm not sure which one I like more, but currently I'm leaning towards two separate enums as they are subtly different.

I agree. I added an implementation so you can see if you like it :)

looks really good

Thanks! Glad you like the idea too.

my delays

Haha absolutely no problem, I kinda forgot about it until I received the github email

I think I'll just merge this. There's only small things left with no obvious solution, and they can be done later.
Thanks a lot! 🙂


Feature Request: How about adding typescript ?

@hepiyellow, thanks for the suggestion! I was thinking about Flow, as it would still allow users just to replace src/app folder with their app and to apply types gradually where needed.

flow would be nice as well
On Wed, Aug 24, 2016 at 10:24 AM, Mihail Diordiev<EMAIL_ADDRESS>wrote:

@hepiyellow https://github.com/hepiyellow, thanks for the suggestion! I
was thinking about Flow, as it would still allow users just to replace
src/app folder with their app and to apply types gradually where needed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zalmoxisus/crossbuilder/issues/45#issuecomment-241992230,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGC4orcbF0smVUAaA8vCKCXvF4W4_bgyks5qi_-kgaJpZM4Jrsr-
.

--
HEPi - Music - Lighting
www.facebook.com/hepilighting
+36-70-501-8822
:-).T.T.C

+1 for flow vs typescript is interoperable with standard JS you don't need a special tool chain


Measurement system

Is there a way to change the measurements to imperial?

Not at the moment, but I'll try to do it.

The Imperial system has been implemented.

Is it in this this last release?

Yes.

May I ask where the setting is located?

Yes.

May I ask where the setting is located?

Yes.

May I ask where the setting is located?

Unfortunately it doesn't seem to be working for me

Yes, there was such a bug, it was fixed in version 1.1.1.


Handle inconsistent vendor info for IBM Semeru runtimes

Fixes #23053

@bot-gradle test QFL

OK, I've already triggered the following builds for you:

QuickFeedbackLinux build

Alternative solution: removing the IBM_SEMERU vendor entirely... tbd

Prefer alternative solution, the removal of IBM_SEMERU as an extra IBM vendor value.
Need a new version of the Foojay plugin to test.

@bot-gradle test QFL

OK, I've already triggered the following builds for you:

QuickFeedbackLinux build

@bot-gradle test QFL

OK, I've already triggered the following builds for you:

QuickFeedbackLinux build

@bot-gradle clean

@bot-gradle test this

OK, I've already triggered the following builds for you:

PullRequestFeedback build

Extra manual tests: toolchain auto provisioning works fine end-to-end for all combinations of:

vendor: IBM, IBM_SEMERU
implementation: unspecified, J9
java: 8, 11, 16, 17

@bot-gradle test this

OK, I've already triggered the following builds for you:

PullRequestFeedback build

@bot-gradle test and merge

Your PR is queued. See the queue page for details.

OK, I've already triggered a build for you.


UHF-9113: Drupal 10 support

UHF-9113

What was done

Fix dependency problems with Drupal 10

Remove dependency to guzzle ^1.5, fix deprecated guzzle related code.

How to install

Make sure your instance is up and running on latest dev branch.

git pull origin dev
make fresh

Update the Helfi Platform config

composer require drupal/helfi_platform_config:dev-UHF-9113-drupal-10-support

Run make drush-updb drush-cr

How to test

[ ] Check that this feature works
[ ] Check that code follows our standards

Other PRs

Link to other PR

Codecov Report

Merging #20 (795ea19) into main (0ce00bc) will decrease coverage by 44.33%.
The diff coverage is 3.10%.

:exclamation: Current head 795ea19 differs from pull request most recent head 5293097. Consider uploading reports for the commit 5293097 to get more accurate results

@@              Coverage Diff              @@
##               main      #20       +/-   ##
=============================================
- Coverage     67.94%   23.62%   -44.33%
- Complexity       25       77       +52
=============================================
  Files             2        4        +2
  Lines            78      237      +159
=============================================
+ Hits             53       56        +3
- Misses           25      181      +156

Files
Coverage Δ

src/Flysystem/Adapter/AzureBlobStorageAdapter.php
0.00% <0.00%> (ø)

src/Flysystem/Azure.php
82.45% <38.46%> (-13.20%)
:arrow_down:

src/AzureBlobStorageAdapter.php
0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


The best plugin of my 2023

Didn't sure about if issue should be used in this way, but... thanks for making this plugin, I am dedicated to using Obsidian and iBook, just be amazed by your plugin, all best wishes to you!

Didn't sure about if issue should be used in this way, but... thanks for making this plugin, I am dedicated to using Obsidian and iBook, just be amazed by your plugin, all best wishes to you!

cheers :beers:


Add auto-updating system

Not sure if this is ever going to work but I would be cool to add. Saves a lot of ssh login time

Fixed with version v3.0.0 (branch will change to main eventually when everything for v3 is done).
note: only available when using Docker: WatchTower

Resolved: https://paperplane.ijskoud.dev/docs/get-started#optional-enable-autoupdating


[UTF8] Encoding error when receiving results

Empire Version
2.5 (dev)
OS Information (Linux flavor, Python version)
Debian
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
Hello, Empire doesn't seem support the UTF-8 encoding when parsing incoming packets.
Here are the results:
[!] Error processing result packet from AOD916U1 : 'ascii' codec can't encode character u'\u201a' in position 24: ordinal not in range(128)
What can I edit to fix it?

UP! Each time I use shell command this error occurs. (German chars)
I really doesn't understand where is the problem, after having analyzed /lib/common/packets.py...