go/build and go/types: import path bug in go1.5

What version of Go are you using (go version)?
go version go1.5rc1 linux/amd64
What operating system and processor architecture are you using?
debian jessie / amd64
What did you do?
Im trying to read package information with the go/build package, then parsing the package using the go/types package. The package i'm trying to parse has a dependency on another package, and this is where the issue lies.
What did you expect to see?
Successfull import of package "bar"
What did you see instead?
Failed to import package "bar"
I have created a code sample which reproduces this issue: https://github.com/netbrain/importbug
netbrain@netbox:~/dev/go/src/github.com/netbrain/importbug$ echo $GOPATH
/home/netbrain/dev/go
netbrain@netbox:~/dev/go/src/github.com/netbrain/importbug$ tree
.
├── bar
│   └── bar.go
├── foo
│   └── foo.go
└── importbug_test.go

2 directories, 4 files
netbrain@netbox:~/dev/go/src/github.com/netbrain/importbug$ go test
2015/08/06 16:39:59 /home/netbrain/dev/go/src/github.com/netbrain/importbug/foo/foo.go:3:8: could not import github.com/netbrain/importbug/bar (can't find import: github.com/netbrain/importbug/bar)
exit status 1
FAIL	github.com/netbrain/importbug	0.002s

I tried to debug the issue with gdb, and a discovered a couple of things, when build.Import is invoked on the package "github.com/netbrain/importbug/bar" then on line 603 in build.go this gets resolved to "/home/netbrain/dev/go/pkg/linux_amd64/github.com/netbrain/importbug/bar.a", which doesn't exist.
furthermore, the for loop @ gcimporter.go:66 loops through the following filenames
"/home/netbrain/dev/go/pkg/linux_amd64/github.com/netbrain/importbug/bar.a"
"/home/netbrain/dev/go/pkg/linux_amd64/github.com/netbrain/importbug/bar.o"
as these files doesn't exist, it simply returns a blank string. which means the package was not found. Resulting in the error displayed in the test.
The following is a backtrace of the test, showing the involved packages and function calls.
#0  go/build.(*Context).Import (ctxt=0x8b2c20 <go/build.Default>, path="", srcDir=".",
    mode=3, ~r3=0x0, ~r4=...) at /home/netbrain/tools/go/src/go/build/build.go:460
#1  0x000000000050b74b in go/build.Import (path="github.com/netbrain/importbug/bar",
    srcDir=".", mode=3, ~r3=0x40f446 <runtime.mallocgc+1766>, ~r4=...)
    at /home/netbrain/tools/go/src/go/build/build.go:1002
#2  0x00000000005c4084 in go/internal/gcimporter.FindPkg (
    path="github.com/netbrain/importbug/bar", srcDir=".", filename="",
    id="github.com/netbrain/importbug/bar")
    at /home/netbrain/tools/go/src/go/internal/gcimporter/gcimporter.go:47
#3  0x00000000005c46f9 in go/internal/gcimporter.Import (
    packages=map[string]*go/types.Package, path="github.com/netbrain/importbug/bar",
    pkg=0x0, err=...) at /home/netbrain/tools/go/src/go/internal/gcimporter/gcimporter.go:128
#4  0x0000000000511a51 in go/importer.gcimports.Import (m=0xc820011320,
    path="github.com/netbrain/importbug/bar", ~r1=0x21, ~r2=...)
    at /home/netbrain/tools/go/src/go/importer/importer.go:57
#5  0x0000000000561777 in go/types.(*Checker).collectObjects (check=0xc82005b750)
    at /home/netbrain/tools/go/src/go/types/resolver.go:178
#6  0x000000000053b6f3 in go/types.(*Checker).Files (check=0xc8200a21c0,
    files= []*go/ast.File = {...}, err=...)
    at /home/netbrain/tools/go/src/go/types/check.go:223
#7  0x000000000052b222 in go/types.(*Config).Check (conf=0xc820018f40, path="foo",
    fset=0xc820018d00, files= []*go/ast.File = {...}, info=0xc820075b30, ~r4=0x0, ~r5=...)
    at /home/netbrain/tools/go/src/go/types/api.go:311
#8  0x0000000000482098 in github.com/netbrain/importbug.TestImportBug (t=0xc82009c1b0)
    at /home/netbrain/dev/go/src/github.com/netbrain/importbug/importbug_test.go:40

in gdb I had the following breakpoints set
break resolver.go:178
break gcimporter.go:116
break gcimporter.go:37
break gcimporter.go:47
break build.go:460
break build.go:1002

As far as I can see, the issue is related to the following code.
347cc981 src/pkg/go/build/build.go (Russ Cox             2012-03-06 00:36:24 -0500 479)         case "gc":
5f418195 src/go/build/build.go     (Michael Hudson-Doyle 2015-04-14 10:20:18 +0200 480)                 pkgtargetroot = "pkg/" + ctxt.GOOS + "_" + ctxt.GOARCH + suffix
5f418195 src/go/build/build.go     (Michael Hudson-Doyle 2015-04-14 10:20:18 +0200 481)                 pkga = pkgtargetroot + "/" + p.ImportPath + ".a"

Where the variable  "pkga" is given a value of "/home/netbrain/dev/go/pkg/linux_amd64/github.com/netbrain/importbug/bar.a", which is a file that doesn't exist.
@mwhudson, @rsc any idea whats going on with this? any help is greatly appreciated!

I believe this is not a bug
importbug/imporbug_test.go does not import "
github.com/netbrain/importbug/foo", or "github.com/netbrain/importbug/bar"
so they will not be compiled and stored in $GOPATH/pkg.
If I go install those packages then run the test it passes as expected.
On Thu, Aug 6, 2015 at 8:59 PM, Kim Eik<EMAIL_ADDRESS>wrote:

As far as I can see, the issue is related to the following code.
347cc981 src/pkg/go/build/build.go (Russ Cox             2012-03-06 00:36:24 -0500 479)         case "gc":
5f418195 src/go/build/build.go     (Michael Hudson-Doyle 2015-04-14 10:20:18 +0200 480)                 pkgtargetroot = "pkg/" + ctxt.GOOS + "_" + ctxt.GOARCH + suffix
5f418195 src/go/build/build.go     (Michael Hudson-Doyle 2015-04-14 10:20:18 +0200 481)                 pkga = pkgtargetroot + "/" + p.ImportPath + ".a"
Where the variable "pkga" is given a value of
"/home/netbrain/dev/go/pkg/linux_amd64/github.com/netbrain/importbug/bar.a",
which is a file that doesn't exist.
@mwhudson https://github.com/mwhudson, @rsc https://github.com/rsc
any idea whats going on with this? any help is greatly appreciated!
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/12050#issuecomment-128327045.

I guess that makes a lot of sense. however github.com/netbrain/importbug/foo is correctly parsed parsed with 	buildPkg, err := build.Import("github.com/netbrain/importbug/foo", "", build.ImportComment) so why shouldn't bar be aswell? As far as i can tell both build.Import() and conf.Check() (line 40 in the test) both uses the build.Import() which points to gcimports.Import().

Can you try after running rm -rf $GOPATH/pkg ?
On Thu, Aug 6, 2015 at 9:10 PM, Kim Eik<EMAIL_ADDRESS>wrote:

I guess that makes a lot of sense. however
github.com/netbrain/importbug/foo is correctly parsed parsed with buildPkg,
err := build.Import("github.com/netbrain/importbug/foo", "",
build.ImportComment) so why shouldn't bar be aswell? As far as i can tell
both build.Import() and conf.Check() (line 40 in the test) both uses the
build.Import() which points to gcimports.Import().
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/12050#issuecomment-128330477.

Still the same result
2015/08/06 13:14:14 /home/netbrain/dev/go/src/github.com/netbrain/importbug/foo/foo.go:3:8: could not import github.com/netbrain/importbug/bar (can't find import: github.com/netbrain/importbug/bar)

i can confirm running go install in github.com/netbrain/importbug/bar will fix the test. However, this would mean that all packages i would want to inspect with go/types  would have to be installed.

However, this would mean that all packages i would want to inspect with go/types would have to be installed?

This looks to be the case. The only implementation of types.Importer I could find was go/importer which operated on the compiled object file. I don't know if this is a hard restriction, or just the most expedient.

I find this quite weird, one would think that if go/build.build.Import() succeeds in parsing a package which isn't previously installed. Then go/types.Config.Check() surely should have an identical behavior as they both use go/importer.Import() which in turn, atleast in my case uses go/internal/gcimporter.
I guess I will look some more at this issue. Anyways thank you for your assistance thus far :+1:

I think this is working as expected, but Robert can decide.  In any case it may require better documentation.

@netbrain This is working as intended.
go/types type-checks a single package, the one for which the source (== AST) is provided. Any imports are delegated to the importer which looks at compiled packages (which must be installed).
It is possible to provide an importer that looks at the source: such an importer would have to first parse and type-check the imported package from source, and possibly do the same with its own imports, recursively so. There are also questions about how much to cache (we don't want to re-parse and re-type-check the same package over and over) and when to invalidate the cache, which files to consider, etc. It's not entirely trivial to get this right on all platforms and taking into account build flags etc. which is why importing is separated out from go/types as an independent mechanism.
The x/tools/go/loader package provides much of the functionality but it's not in the std lib yet, exactly because it's complicated and the API is not yet fixed.
If you need this working for you now, you can implement your own importer and provide it to go/types. You could look at (and copy from) src/cmd/api/goapi.go:421 for an outline of an importer that does about what you might want, and then customize it as needed.
Eventually go/importer may provide a source importer.

@griesemer thank you for the detailed explanation. For the performance reasons you describe it is probably better to require installation of all packages instead of creating my own source importer. But i guess the documentation or atleast the error message should indicate that imported packages through go/types need to be compiled in order for the library to discover them. Anyways, ill leave that up to you guys. Thanks again!

go/types doesn't care or even know how the package data structure of imported packages came into being, it just cares about the data which is returned by an importer. go/types' access to imported packages is via the importer function which is implemented externally.
The go/importer package provides (at the moment) two importers, one for packages compiled by gc and one for packages compiled by gccgo. The documentation in that package explicitly mentions the compilers. But it is correct that it doesn't say that the importers read from the installed binary files.
@alandonovan has been working on a longer and detailed explanation of how to use go/types and how it all interacts with the source code, installed code, etc. It will be available with the 1.5 release (or shortly thereafter).


Precompiled runtime includes JIT compiler

Due to the way the VM code is linked together currently, the precompiled runtime VM includes all the code for the JIT compiler, even though that code is never used. This is about a megabyte worth of code.
If we make sure that the precompiled runtime build does not contain references to any part of the compiler, the compiler code will be left out automatically by the linker.
To achieve this, we need to designate a set of compiler-specific source files and make certain that all references to any symbol in these files are either in one of the compiler-specific files themselves or is guarded by #if !defined(DART_PRECOMPILED_RUNTIME).
There is almost such a set in these .cc files:
ast, cha, compiler, constant_propagator, deferred_objects, deopt_instructions, flow_graph*, intermediate_language*, intrinsifier*, locations, parser, regexp_assembler_ir
plus, possibly, if we want to dig a bit deeper:
assembler*, stub_code*
There is some code here and there to move or guard for this to hold, though.

Can this be closed?

This CL is still pending: https://codereview.chromium.org/2976723003/

Reopened because the last change caused a 63% increase in AOT snapshot size of Flutter Gallery. @rmacnak-google Did you notice what kind of content constituted the size growth?

The biggest effect was on the instructions portion of the snapshot (see https://github.com/dart-lang/sdk/issues/30472). My guess is that one of the compiler flags accidentally got a new value.

I traced the difference to a change in FLAG_unbox_numeric_fields.
PrecompilationModeHandler should set unbox_numeric_fields to false, but that was lost when it was moved to runtime/vm/compiler.cc


dart2js: disable range check, $index, bailout

This issue was originally filed by @davidB

*What steps will reproduce the problem?*
I make game (physics + rendering) that do lot of vectors manipulation each frame (via vector_math lib). But too many useless (IMHO as I test, and run the code in dartvm) defensive code is generated and run every frame.
See bug http://code.google.com/p/dart/issues/detail?id=9139 (Can someone re-open it)
I result is that the code run at 1 fps on firefox and I can up to 10 fps if I manually replace the generated js by the raw code (same as dart) in simple add, sub, setFrom function of Vector3.
*What is the expected output?*
a raw js without without range check, without $index, without bailout.
It seems to be a hard task for the code analyzer and ... So why not provide an option (command line, code annotation) to disable this defensive code and simply trust the developper (at its own risk).
I use dart as a better tool to create js (for chrome and firefox). If the generated js is useless (as is), then I don't need dart.

We no longer generate bailouts.
We have two experimental flags in the spirit of the request:
--trust-type-annotations
--trust-primitives


reword pod lifecycle, cleanup

Clean up Pod lifecycle text (remove use of mortal and resurrected)
Clean up list formatting in page
Some clean up of double quotes and back quotes
Other minor cleanup

/approve
Thanks for  the cleanup.

/lgtm


importer: R80 test early API versions for object retrieval

test if CPMI (fw gateways) can be retrieved with older API versions
command: mgmt_cli -r true show gateways-and-servers  details-level "full" limit 500 --format json|jq -r '.objects[] | select (.type | contains("CpmiClusterMember") or contains("simple-gateway")) | [.name, ."ipv4-address"] | join (" ")'

not needed any more as API has progressed a lot since May 2021


Tag management of the Wikibase editing operation

The Wikibase editing operation currently adds a tag openrefine-3.9 (in the master branch) to the edits it makes on Wikidata.
Because this tag does not exist on Wikidata yet, editing fails.
In the past, I have taken care of requesting the creation of the tag from Wikidata administrators every time we published a new minor release and I could do it again this time. But it does not feel great, because:

it's one more manual step that needs to be done after releases, so I'd be keen to eliminate it to keep the release process as simple as possible
this tag creation is one of the hurdles people encounter when setting up a Wikibase instance to work with OpenRefine, or when we publish a new release and the users of this Wikibase instance upgrade to it.
The versioning of the Wikibase tags was originally introduced to make it easier to spot problematic edits which would have been introduced by a faulty OpenRefine version, so that they could be fixed. I am not aware of any such instance happening for the past few years, so I don't think this is worth the overhead.

So I would be keen to remove this versioning. One problem is that the tag that is applied on edits is stored in the Wikibase manifests that users have stored in their workspace preferences, in the form of openrefine-${version} by default for Wikidata. So it's difficult to change those. I can think of the following approaches:

Drop support for tagging our edits completely. Editing just works out of the box on any Wikibase instance. Arguably the "(details)" link with the EditGroups batch id is more useful and already identifies the edit as being made via OpenRefine. But if people rely on those tags, they will be annoyed (I remember @lydiapintscher saying that it was important on Wikidata)
Go for a slightly more careful approach: try adding the tag, but if the tag isn't present on the Wikibase instance, edit without adding the tag. This would make Wikibase upload work out of the box, but will silently create untagged batches, which could be annoying if people do rely on OpenRefine edits being tagged. When they discover that, it's very hard or impossible to add back the tags to the edits.
Or a slightly more elaborate version: if the tag template contains a version number, try using the version-specific tag. If that fails, try using a version agnostic tag (such as openrefine). If that fails, edit without tag. If we request the creation of the openrefine tag on Wikidata it would ensure edits remain tagged while still providing out-of-the-box editing support for other Wikibase instances (who might or might not care about tags)

Maybe the last version is good enough?

Thanks for thinking about this!
I think keeping a tag for Wikidata is useful as it helps add more context for the people doing patrolling and other edit reviews. I think it is however not necessary to have the version number in the tag. Just openrefine is probably enough. So maybe this is a viable approach: add the openrefine tag if it is available on the Wikibase installation, otherwise leave the edit untagged.


Optimise historic state access [3D]

Description
Investigate ways to optimise REST APIs that access finalized states.  Potentially store diffs so we don't have to replay blocks, just apply patches to the state snapshots.

Brain dump of lessons learnt here: https://hackmd.io/@ajsutton/BJTK5hV1K


Suggest widget: ideal resizing not wide enough

#109394

Open any TS file in the VS Code repo, type areK trigger suggest widget
Have the size like in picture 1. Double click on the sash to get the ideal size
The widget gets too narrow - some of the items are horizontally cut off. The widget should be more wide in this case (picture 2)

Explorer when double clicking on the sash tries to always respect the widest element.
Apart from that it has a min width it can go to.

Todays logic uses the average length of the labels. This might be skewed given that we have short labels for keywords like let, for etc

I don't really know how wide elements are because they aren't rendered yet - this considers all completions. However, I have a change that will take 85th percentile of label lens (instead of average length). That works better from my testing


Can't run .net core 1.1 on Linux

Hi!
I created my project asp.net core 1 with framework 461 on windows. Then i migrated to .netcoreapp 1.1 and tried to run on linux (ubuntu 16.04 lts) machine in which .net core sdk 2.0.0 is installed.
Those are my following configs:
Program.cs
public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseKestrel()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseIISIntegration()
                .UseStartup<Startup>()
                .UseApplicationInsights()
                .Build();

            host.Run();
        }

Startup.cs
public Startup(IHostingEnvironment env)
        {
            var builder = new ConfigurationBuilder()
                .SetBasePath(env.ContentRootPath)
                .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
                .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
                .AddEnvironmentVariables();
            Configuration = builder.Build();
        }

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            app.UseForwardedHeaders(new ForwardedHeadersOptions
            {
                ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
            });

            loggerFactory.AddConsole(Configuration.GetSection("Logging")).AddDebug();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/home/error");
            }

            app.UseStaticFiles();

            app.UseSession();

            app.UseCookieAuthentication(new CookieAuthenticationOptions
            {
                AuthenticationScheme = "Cookie",
                LoginPath = new PathString("/account/signin"),
                AccessDeniedPath = new PathString("/account/forbidden"),
                AutomaticAuthenticate = true,
                AutomaticChallenge = true,
                ReturnUrlParameter = "rturl"
            });

            app.UseMvcWithDefaultRoute();
        }

LaunchSettings.json
{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "https://localhost:44377",
      "sslPort": 44377
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "Nebula.Web": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "http://localhost:55567"
    }
  }
}

When i type dotnet run is points to LaunchSettings.json but nothing else is informed. Then i tested removing this file and then typing dotnet run again shows nothing.
I installed nginx on linux and the following /etc/nginx/sites-available/default file is configured like this:
server {
    listen 80;
    location / {
        proxy_pass http://localhost:44377;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection keep-alive;
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

My .csproj
<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
    <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
  </PropertyGroup>

  <PropertyGroup>
    <PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
  </PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
    <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
  </PropertyGroup>

  <PropertyGroup>
    <PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
  </PropertyGroup>

Any thought guys what should i do?

What was the error?

Shows no error at all. I actually fixed this downloading the aproppriate run time 1.1.2. But i had to do with wget https://download.microsoft.com/download/D/7/A/D7A9E4E9-5D25-4F0C-B071-210CB8267943/dotnet-ubuntu.16.04-x<IP_ADDRESS>.tar.gz because sudo apt-get install dotnet-dev-1.0.4 did not work out. So it's working now. Besides i replace
<RuntimeIdentifier>win7-x86</RuntimeIdentifier> to <RuntimeIdentifiers>win7-x64;win7-x86;ubuntu.16.04-x64;</RuntimeIdentifiers> in order to generate binaries for linux.


Fix insightface aarch64

The package was marked as broken in the commit 05e03db. However, it has not actually been broken on aarch64. The issue was that the pythonImportsCheck build step failed and threw an onnxruntime::OnnxRuntimeException.
The cause of this exception is as follows:
The insightface library uses the onnxruntime library (repository link), which in turn relies on the PyTorch cpuinfo library (repository link) to gather CPU information.
Details on how the cpuinfo library retrieves CPU information can be found here.
As you can see, it accesses /sys/devices/system/cpu/possible and /sys/devices/system/cpu/present. The /sys path is not accessible from the Nix build sandbox environment, which causes the import of onnxruntime from insightface to fail (see code line).
This error does not occur once the program is installed, as the kernel creates the /sys path, allowing access to it.
You can confirm that the build and imports pass by adding the /sys path to the sandbox with the following command:
nix build --option extra-sandbox-paths /sys <<your-insightface-derivation-for-aarch64>>
This pull request disables the Python import test for aarch64, which was the architecture attempting to access /sys. (I have not investigated why onnxruntime does not require this information on x86_64.)
I am adding @oddlama as assignee (since he is the insightface mantainer) and @jvanbruegge (because immich-machine-learning also uses insightface) and I had to disable the tests for aarch64 for the reason explained above.
PD: It seems I can't add assignees to the PR, sorry for bothering.
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Instead of checking stdenv.system we should refer to stdenv.buildPlatform.system for correctness.
The build for onnxruntime seems to have a similar check in place, so maybe we should copy it from there:
https://github.com/NixOS/nixpkgs/blob/dc402355f7aca5e6177051e5d7a0bea4f7a15748/pkgs/development/libraries/onnxruntime/default.nix#L221-L222
As you can see they also just set doCheck = false for this specific case, so we should probably just do the same thing:
doCheck = stdenv.buildPlatform.system != "aarch64-linux";

(In both packages)

We already have doCheck as false inside the insightface file: https://github.com/NixOS/nixpkgs/blob/93f69e2950b4ec10985ad2811216684a523ff262/pkgs/development/python-modules/insightface/default.nix#L81
so, if I add:
nix doCheck = stdenv.buildPlatform.system != "aarch64-linux";
The build fails.
I think this is related with the python builder (https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md), and disabling doCheck doesn't disable the pythonImportsCheck phase.
PD: I've just commited the refactored version using lib.optionals.

I see, then I'd say this looks good. Although you probably still want to refer to stdenv.buildPlatform.system instead of stdenv.system

I see, then I'd say this looks good. Although you probably still want to refer to stdenv.buildPlatform.system instead of stdenv.system

Done, although now that I see that stdenv differentiates between buildPlatform and hostPlatform, I don't know which of these two is showing stdenv.system (I assume host?).
Thanks for the feedback.

Done, although now that I see that stdenv differentiates between buildPlatform and hostPlatform, I don't know which of these two is showing stdenv.system (I assume host?).

I believe it reflects the host, although I cannot find it stated explicitly in the manual right now.

Please take a look at ofborg build failure

@ofborg build python312Packages.insightface.passthru.tests

Please take a look at ofborg build failure

I fixed the aarch64-linux tests by disabling them on the insightface package (as I said, the command is completely broken inside the nix sandbox environment, but once it has access to /sys, it works as expected).
The x86_64-linux and darwin builds seemed to be already broken (https://github.com/NixOS/nixpkgs/pull/349922/checks?check_run_id=31919183071)

Changes applied @natsukium
Thanks for the feedback

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 351917

x86_64-linux

:white_check_mark: 6 packages built:

immich-machine-learning
immich-machine-learning.dist
python311Packages.insightface
python311Packages.insightface.dist
python312Packages.insightface
python312Packages.insightface.dist

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 351917

aarch64-linux

:white_check_mark: 6 packages built:

immich-machine-learning
immich-machine-learning.dist
python311Packages.insightface
python311Packages.insightface.dist
python312Packages.insightface
python312Packages.insightface.dist

Why are there three commits? The third one should have been squashed into the first one.

And why does the third commit touch two packages??

Why are there three commits? The third one should have been squashed into the first one.

And why does the third commit touch two packages??

@dotlambda Yes, my bad. I should have squashed the commits into one. Anyway, natsukium squashed them when merging the changes.
This PR modifies two packages: insightface and immich-machine-learning (which depends on insightface and, therefore, should be aware of this change too).

This PR modifies two packages: insightface and immich-machine-learning (which depends on insightface and, therefore, should be aware of this change too).

It should still be two separate conmits!


[Python] from pyarrow import parquet fails with AttributeError: type object 'pyarrow._parquet.Statistics' has no attribute 'reduce_cython'

I have tried versions 0.15.1, 0.16.0, 0.17.0. Same error on all. I've seen in other issues that co-installations of tensorflow and numpy might be causing issues. I have tensorflow==1.14.0 and numpy==1.16.4 (and many other libraries, but I've read that those tend to cause issues)

``

from pyarrow import parquet

~/python/lib/python3.6/site-packages/pyarrow/parquet.py in <module>
 32 import pyarrow as pa
 33 import pyarrow.lib as lib
---> 34 import pyarrow._parquet as _parquet
 35
 36 from pyarrow._parquet import (ParquetReader, Statistics, # noqa
~/python/lib/python3.6/site-packages/pyarrow/_parquet.pyx in init pyarrow._parquet()

AttributeError: type object 'pyarrow._parquet.Statistics' has no attribute '__reduce_cython__'

``
Environment: Python 3.8.4, GCC 4.8.4, Debian 8
Reporter: Hal T
Note: This issue was originally created as ARROW-8557. Please see the migration documentation for further details.

Giving this is an old issue, going to close this.
Hal T, if you still encountered this with more recent versions of pyarrow, please let us know!


Profiling with cpu/wall events on Zing yeilds unusable results

Here is an example using the https://github.com/spring-projects/spring-petclinic project doing both CPU profiling (i.e. ./profiler.sh -d 30 -e cpu --total -f ...) and wall-clock profiling (i.e. ./profiler.sh -d 30 -e wall --total -f ...) on Zulu (OpenJDK 64-Bit Server VM (25.292-b10) for linux-amd64 JRE (Zulu <IP_ADDRESS>-CA-linux64) (1.8.0_292-b10), built on Apr 6 2021 10:48:03 by "zulu_re" with gcc 4.4.7 20120313 (Red Hat 4.4.7-3)) and Zing (Zing 64-Bit Tiered VM (1.8.0_282-zing_<IP_ADDRESS>-b6-product) for linux-X86_64, built on Mar 30 2021 06:31:15 by buildmaster with gcc-7.4.0) JVMs (see all profiles):

cpu

Zulu with -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints

Zing with -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints

Zing with -XX:+UnlockDiagnosticVMOptions -XX:+PreserveFramePointer

wall

Zulu with -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints

Zing with -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints

Zing with -XX:+UnlockDiagnosticVMOptions -XX:+PreserveFramePointer

As can be seen from the above the cpu profiles on Zing have lots of samples shown as [unknown] and in the wall mode as [not_walkable_java]. In both cases the profiles are unusable for actual performance analysis.

From my understanding of the functionality involved on both Zing and Async-Profiler, this looks like an issue with the Zing implementation of AsyncGetCallTrace(this is probably my fault, I worked on it back in the day). This used to work at some point. It might be that the implementation was never extended to the Falcon compiler. To verify this line of thinking I would force Zing to use C2 (-XX:+UseC2 if IIRC).
I would expect Zing engineers would be able to comment on the current state of Async-Profiler support. /cc @giltene.

I agree with Nitsan - this seems more like AsyncGetCallTrace implementation problem.
I'm afraid, it's behind async-profiler capabilities to deal with that.

I agree with Nitsan - this seems more like AsyncGetCallTrace implementation problem.
I'm afraid, it's behind async-profiler capabilities to deal with that; that needs to be addressed from JVM side. I'll ask colleagues from Azul what they think.

@leelamv Just tested with Zing 11 and got the same results, i.e. the wall profile has mostly [not_walkable_java] frames and the cpu profile is dominated by the [unknown] frames. From your explanation above I would assume that Zing 11 would be much better, because it is using MetaSpace. Was I wrong to assume that?

@vyazelenko
Currently, any version of Zing supports only perm gen. So , i would expect the same behavior.

I'll close the issue, as I have no plans to fix this from async-profiler side.


chore: elaboration help after leanprover/lean4#4352

These are places where Lean will struggle after leanprover/lean4#4352, so I am backporting the changes to master.

bors r+


fix(no-width): fixes no-width/height issue

Fixes

Fixes #177

Read about referenced issues here. Replace words with this Pull Request's context.

@Jakob-Maudience will publish tomorrow.


Fix #136 (Tab focus issue in web interpreter)

Thanks for your contribution!
Could you rewrite this PR to remove all unrelated formatting changes please? It's hard to see what the fix is, plus I'm not sure the formatting needs so much fixing 🙃

Lol, of course -- my bad that it was in there in the first place, my editor just did it automatically. Do you have any sort of formatting set up on your end? If so it might be worth it to make a .prettierrc file and put it in the repo so that people's editors automatically grab your project settings.

@jmmv fixed!

Didn't know about prettier.io. It seems like it'd be worth investing in that for all files not handled by rust-fmt given that nothing currently validates JS or HTML. But formatting must be enforced at PR validation time via the "lint" GitHub action, not just via a local editor configuration; would that be doable/easy?

@jmmv yes. In both prettier and eslint there is a way to get whether a file is clean ergonomically (prettier --check fails with error code 1 if file doesn't match, can't remember what eslint does but I've used it before)

I've merged #147 now after manually validating it in various devices. Thanks for the lead on how to fix this!


docker-compose is missing JWT_SECRET for superset-websocket

In its current-form, docker-compose is missing JWT_SECRET env variable thats needed for superset-websocket to start. (Or perhaps this should be in docker/.env file?)
Ping @benjreinhart

Closing since this is quite stale, but in case this is still needed for async queries, I'll ping @villebro in case he wants to reopen it.


DISTMYSQL-95 Added HA with group replication document

Thanks for taking care of converting this into proper documentation, @nastena1606 - but is this pull request complete already? Right now, there's a lot of theoretical background about high availability concepts in general, but very little about setting up and configuring group replication...

@LenzGr, I've put the setup steps into a separate doc: deploy-pdps-group-replication.rst and made cross-links between the two


How to ensure transactionality of two sqlserver databases

The comments below were machine translated
@bxjg1987 commented on Mon Jun 15 2020
In the previous .net framework version, TransactionScope can be used. Is there any solution in .net core 3.x version?

@srvbpigh commented on Tue Jun 16 2020
Hello, @bxjg1987
Thank you for your feedback.
We are actively reviewing your comments and will get back to you soon.
Kind regards,
Microsoft DOCS International Team

@bxjg1987 .NET Core does not support distributed transactions. See https://github.com/dotnet/runtime/issues/715


Unpositioned tree in specs2

Hi Erik,
kind-projector is breaking positions for specs2 specification macros
sbt test
[info] Loading project definition from /Users/gmasse1/Projects/bug-pos/project
[info] Set current project to bug-pos (in build file:/Users/gmasse1/Projects/bug-pos/)
[info] Compiling 1 Scala source to /Users/gmasse1/Projects/bug-pos/target/scala-2.11/test-classes...
[info] ======= Position error
[info] Unpositioned tree #931
[info]    unpositioned [L   0 P#  932] #931    [NoPosition]    Template   // Template(value <local ASpec>)
[info]       enclosing [L   4        ] #932    [35:128]        ClassDef   // ASpec extends Specification { def is = s2"""
[info]         sibling [L   0 P#  932] #931    [NoPosition]    Template   // Template(value <local ASpec>)
[info]
[info] While validating #933
[info] [L   1        ] #933    [0:128]         PackageDef // import TTFI._
[info]
[info] Children:
[info]   [L   1 P#  933] #52     [0:0]           Ident      // i
[info]   [L   1 P#  933] #24     [0:13]          Import     // TTFI._
[info]   [L   3 P#  933] #27     [15:34]         Import     // org.specs2._
[info]   [L   4 P#  933] #932    [35:128]        ClassDef   // ASpec extends Specification { def is = s2"""
[info] =======
scala.reflect.internal.Positions$ValidateException: Unpositioned tree #931
	at scala.reflect.internal.Positions$class.positionError$1(Positions.scala:102)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:112)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validatePositions(Positions.scala:147)
	at scala.reflect.internal.SymbolTable.validatePositions(SymbolTable.scala:16)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:103)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply$mcV$sp(Global.scala:441)
	at scala.tools.nsc.Global$GlobalPhase.withCurrentUnit(Global.scala:432)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:441)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:94)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:93)
	at scala.collection.Iterator$class.foreach(Iterator.scala:750)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1202)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:93)
	at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1500)
	at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1487)
	at scala.tools.nsc.Global$Run.compileSources(Global.scala:1482)
	at scala.tools.nsc.Global$Run.compile(Global.scala:1580)
	at xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
	at xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
	at xsbt.CompilerInterface.run(CompilerInterface.scala:26)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
	at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
	at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
	at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:97)
	at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:97)
	at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:97)
	at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:167)
	at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:96)
	at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:144)
	at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:86)
	at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:38)
	at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:36)
	at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:31)
	at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:39)
	at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:38)
	at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:66)
	at sbt.inc.Incremental$.compile(Incremental.scala:38)
	at sbt.inc.IncrementalCompile$.apply(Compile.scala:26)
	at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:158)
	at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70)
	at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45)
	at sbt.Compiler$.apply(Compiler.scala:101)
	at sbt.Compiler$.apply(Compiler.scala:87)
	at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:789)
	at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:781)
	at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:781)
	at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
	at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
	at sbt.std.Transform$$anon$4.work(System.scala:63)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.Execute.work(Execute.scala:235)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
	at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
[error] (test:compile) scala.reflect.internal.Positions$ValidateException: Unpositioned tree #931
[error] Total time: 2 s, completed 28-Jan-2015 11:34:09 AM

comment out https://github.com/MasseGuillaume/kind-projector-specs2-bug/blob/e2517440ee29c6fb47125fd8c2f677db6ee726e4/build.sbt#L9
sbt test
[info] Loading project definition from /Users/gmasse1/Projects/bug-pos/project
[info] Set current project to bug-pos (in build file:/Users/gmasse1/Projects/bug-pos/)
[info] Updating {file:/Users/gmasse1/Projects/bug-pos/}bug-pos...
[info] Resolving jline#jline;2.12 ...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/gmasse1/Projects/bug-pos/target/scala-2.11/test-classes...
[info] ASpec
[info] * wip PENDING
[info]
[info] Total for specification ASpec
[info] Finished in 12 ms
[info] 1 example, 0 failure, 0 error, 1 pending
[info]
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0, Pending 1
[success] Total time: 4 s, completed 28-Jan-2015 11:34:59 AM

Ouch! OK, I'll try to look into this.
If you get a chance to look at the particular file this error comes from it might be helpful to try to come up with a minimal test case. This is what I plan to do when I get a chance (hopefully before nescala).

I suspect https://github.com/etorreborre/specs2/blob/SPECS2-2.4.15/core/src/main/scala/org/specs2/specification/SpecificationStringContext.scala#L120
because if I comment out range pos at https://github.com/MasseGuillaume/kind-projector-specs2-bug/blob/e2517440ee29c6fb47125fd8c2f677db6ee726e4/build.sbt#L5 I dont have any error after running sbt test

@etorreborre ping

It might also be the case that I'm not handling range positions correctly. I'll try some basic tests with -Yrangepos to ensure that things work properly in that case.

It might be a -Yrangepos issue. I have observed such issues with -Yrangepos and they disappear when I remove the option. But the option is really useful! It allows me to precisely capture code that is nested inside an interpolated string.

My case seems to involve neither -Yrangepos nor specs2 (as it happens while compiling to “classes”, not “test-classes”).

Ah – turning on scoverage is what does it for us (which is why my non-CI builds weren’t hitting it).

Disabling coverageHighlighting (which enables -Yrangepos) fixes my build, so that seems very likely to be the culprit.

Seems Specs 2 3.0.1 doesn't play nice with kind-projector. Turning on -Yrangepos gives me the error described above, turning it off with 3.0.1 gives me:
exception during macro expansion:
[error] java.lang.UnsupportedOperationException: Position.end on class scala.reflect.internal.util.OffsetPosition
[error] 	at scala.reflect.internal.util.Position.end(Position.scala:126)
[error] 	at org.specs2.specification.create.S2Macro$$anonfun$2.apply(S2Macro.scala:26)
[error] 	at org.specs2.specification.create.S2Macro$$anonfun$2.apply(S2Macro.scala:26)
[error] 	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
[error] 	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
[error] 	at scala.collection.immutable.List.foreach(List.scala:318)
[error] 	at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
[error] 	at scala.collection.AbstractTraversable.map(Traversable.scala:105)
[error] 	at org.specs2.specification.create.S2Macro$.s2Implementation(S2Macro.scala:26)
[error]     s2"""
[error]     ^

If I change to Specs2 2.4.17 however, it's all good.

@adelbertc this is a regression from 2.4.17, I'll fix that and get back to you.

@adelbertc I can't actually reproduce the problem with 3.0.1 but I trust you because I've seen it yesterday. Can you please try 3.0.1-20150312050040-d541934?

@etorreborre OK I'm a bit weirded out. Seems on 2.11 w/ 3.0.1-20150312050040-d541934 it's all good. Then I tried 3.0.1 again and it was still good. Then I ran a + test and it broke on 2.10.. maybe it's 2.10 specific?

@adelbertc I observed the same thing. Can you confirm that 3.0.1-20150312050040-d541934 works on Scala 2.10? (I can't do that at the moment)

I get it. I fixed the issue for Scala 2.11 but forgot to fix it for 2.10. My macro code is kinda duplicated in 2 source directories, one per Scala version to deal with warnings. I fixed one but not the other. You can now use specs2-core_2.10-3.0.1-20150312124001-4835e88 if you need Scala 2.10.

@etorreborre Got it, thanks! I'll hang on to 2.4.17 in the interim while I await 3.0.2 :-)

@etorreborre same issue with 3.4

my current is to not mix kind-projector and specs2:
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.5.2")
scalacOptions in Test := Seq("-Yrangepos")

Yeah sorry, I need to look into this more but haven't had a chance.

@non @etorreborre have you guys consider using scalameta ?
ping: @xeno-by

@MasseGuillaume what would be the use case for scala.meta here? Do you mean reproducing some particular piece of existing functionality in a different way or replacing the entire plugin with something else?

@xeno-by the kind-projector plugin and the is macro in specs2 are conflicting.
@non compiler plugins change the parser phase, is it possible to with scala meta ?
@etorreborre look like he's using macro pretty intensely  in specs2, is it possible to rewrite it to use scalameta ?

@MasseGuillaume I am just using a macro to catch in an interpolated string the "non-text" parts. I don't know if it is possible to rewrite it using scala.meta but if string interpolation could be enhanced so that the StringContext gives all information about the interpolated string, that would be enough for me. In particular I need the location of all the "parts" and "non-parts" (or just deduce one from the other).

@MasseGuillaume Customizing Scala syntax with scala.meta is a non-goal for now. There are some really interesting ideas, but it's hard to say when/if they materialize.
Supporting macros is a goal for scala.meta, but we're still too early in development to accommodate these use cases. It'll become clearer in Amsterdam (at ScalaDays).

So, I'm looking at this in detail finally.
Like the bug reports suggest, kind-projector is producing trees with no position. This isn't surprising since I didn't make any effort to track the old positions and update the new synthetic trees with them.
However, I don't see an obvious API for me to create trees that have valid range positions. I'll try looking through the code and asking around, but as far as I can tell, the chain goes like this.
First, I need for the trees I generate to have a pos method that returns something other than NoPosition. However, the constructors I have access to don't seem to take Position arguments. Where does this come from?
// src/reflect/scala/reflect/internal/Trees.scala
abstract class Tree extends ... {
  ...
  final override def pos: Position = rawatt.pos
  ...
}

Alright, great. So it looks like the intention is that I need to mutably update rawatt somehow? Let's look for that:
// src/reflect/scala/reflect/internal/StdAttachments.scala
trait Attachable {
  protected var rawatt: scala.reflect.macros.Attachments { type Pos = Position } = NoPosition
  ...
}

So... well... um.
I'm not sure how to proceed. It doesn't look like there's an obvious way for me to provide range positions (assuming I was collecting them in the first place).
If anyone out there has a suggestion on what I should be doing here I'm happy to take it -- no idea too outlandish! :tropical_fish:

@non Tree#pos_=  allows you to mutate the position of a tree.

Aha! Thanks @retronym!
I'll start experimenting and see if I can't get this working after all.

https://github.com/non/kind-projector/pull/10

Thanks @retronym! @non can we expect a release soon?

I just released version 0.5.4 to Bintray.
I tested it with @MasseGuillaume's sample project and it worked fine.
Thanks again to @retronym for the help!

wunderbar! Thanks!

Thanks, @non / @retronym!


The abbreviation behavior of tabline should be configurable

Currently, the behavior is fixed in autoload/lightline.vim#L453. But I think I am not the only one who want to customize this in vimrc 🐱

I agree with you but I cannot imaging a nice api to fulfil configurability of this function. After all, anyone can customise as they wish by overwriting the component.
let g:lightline = {
...
      \   'component_expand': {
      \     'tabs': 'LightlineTabs'
      \   },
...

function! LightlineTabs()
  " whatever
endfunction


How to setValues(check the items) dynamically using jQuery

Is there any option to setValues like
$('#MenuTree').val(numbersArray) or 	$('#MenuTree').comboTree('setValues',numbersArray);
...
I need this to show previously selected values in my edit page....

Hi @SivaSakthi07
You can use setSelection method. Please read documentation about it.
Thanks..


Updates on the example's jupyter notebook and dataloader.py following the new #66 util.py

Description
@rsandmann converted models into self.models on the example's Jupyter Notebook.
The example's Jupyter notebook and dataloader.py have been updated to follow #66 changes.
Merge after #66.
How has this been tested?

Tested the Jupyter Notebook after a fresh fork and bazel build.

Checklist

[x] I have followed the Contribution Guidelines and Code of Conduct
[x] I have commented my code following the OpenMined Styleguide
[x] I have labeled this PR with the relevant Type labels
[x] My changes are covered by tests

It looks as if the test failure is nothing to do with this PR. I've opened up an issue for this (and other randomly failing tests I've seen) - https://github.com/OpenMined/PyVertical/issues/65

Tests randomly failing. Related Issue #65.

@pavlos-p merge conflict

LGTM. Thanks @pavlos-p


Python: Add test for tricky module member for type-tracking

I tracked this down in real project https://lgtm.com/projects/g/grantcurell/rock-frontend since we couldn't figure out that the app imported here is actually the app defined here.
I used this QL snippet to figure out what was going on
from DataFlow::AttrRead read, ControlFlowNode obj, ModuleValue mv, Module m, EssaVariable v
where
  read.getAttributeName() = "z" and
  obj = read.getObject().asCfgNode() and
  obj.pointsTo() = mv and
  m = mv.getScope() and
  v.getAUse() = m.getANormalExit()
select m, v.getName(), v.getDefinition(), v

Very useful example, thank you. I think what's going wrong here is that we think the function call may change the value of z, and so the final assignment to z is not the one that survives until the end of the module.


Code Enhancement: Split the Main.hs into separate hs files for each simulation

The Main.hs at the moment is quite big (~500 lines), which is quite overwhelming to understand what is happening.
I tried to split the Main.hs and put the respective functions into separate .hs files like:
Simulation_1.hs
Simulation_2.hs
Simulation_3.hs
Simulation_4.hs
Helpers.hs

I put these in the src folder.
However, I have trouble importing these into the Main.hs.
I get an Intellisense error like: No module Simulation_1.hs found.
Perhaps I am missing something. Could you either guide me in doing this or perhaps add it yourself?

Hi, there!
Without seeing your code, it is hard to see what went wrong. (In the future, feel free to create a branch named 'feature/short_name_for_issue', which should be based on the branch 'develop' so that I can have a look at your code).
In general, Simulations_1.hs should be found if it is placed inside of src/.
Maybe something went wrong in export/importing the module.
The header in Main.hs should look something like this:
module Main where

import Simulation_1

and your header in Simulation_1.hs like this:
module Simulation_1 where

import Helpers

To help you out I created the branch feature/split_main. Here you can see how I moved all functions into Helpers.hs (first commit) and later all specific functions for Newton and Verlet simulations into different files. This changes will not be merged into the main branch, because the idea of this repository was to keep the code in sync with the blog post.
Hopefully, this helps. If not, do not hesitate to ask hear again.
When all your questions are answered I would like to close this issue.

Thanks for the detailed explanation. @mkDoku
I was missing to write module Simulation_1 where  inside of Simulation_1.hs
Also I guess one must use the capital letter for .hs files.
Can you merge the feature/split_main with the master?

Sorry for answering so late, but I would like to keep changes to the main branch as minimal as possible, because changes there would require changes in the according blog post.


Improve "back button" to not hide parts of log

I will try to find a solution for the currently not optimal position of the back button because it hides part of the code.
Maybe a complete new approach will be better, we will see...

Published in Version 1.2.3


Service 'php-fpm' failed to build

Hello,
It seems that since aerospike was added, using php 5.6 isn't possible anymore.
docker-compose build php-fpm
[...]
ERROR: Service 'php-fpm' failed to build: One or more build-args [INSTALL_AEROSPIKE_EXTENSION] were not consumed, failing build.
Thanks for your time :)

@luciano-jr


nextPage() / previousPage() not changing the state of the table

TanStack Table version
v8.12.0
Framework/Library version
Vanilla JS
Describe the bug and the steps to reproduce it
I'm trying to get a Vanilla JS implementation up and running and I made some good progress.
The table is created and rendered to html, including pagination buttons.
However, when calling nextPage() / previousPage() I try to update the state of the table but it seems not to be updated.
So when re-rendering it still renders always the first page.
Is this a bug in table-core or expected behavior and do I need to do something else to manage the state?
The reproducible example mentioned below is an easy setup and should be self explanatory.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://stackblitz.com/edit/github-6xqt97?file=main.js
Screenshots or Videos (Optional)

Do you intend to try to help solve this bug with your own PR?
Maybe, I'll investigate and start debugging
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

It's because you hardcoded the pagination state, instead of storing it in state. In your code, the pageIndex will always be 0, and the pageSize will always be 10. You're making it so it cannot change.
I'm guessing you meant to use initialState instead of state


Fix #2198: Allow non-existent classpath entries

Review by @sjrd

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2810/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/3618/
Test FAILed.

That's all

Updated

LGTM

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2811/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/3619/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2813/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/3622/
Test FAILed.

Updated

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2817/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/3626/
Test PASSed.

LGTM


Support for Beta versions

Dont know if I am doing something wrong (like missing some configuration), it is a defect or just not supported. :)
I am trying to benchmark some changes that have been implemented for us in the SIMD support at the JIT compiler. Problem is that when I update the dependencies to the proper build I get the following error:
D:\Source\ravendb-40.git\BDN.Auto\project.json(19,46): warning NU1012: Dependency conflict. Micro.Benchmark 1.0.0 expected Microsoft.NETCore.App >= 1.2.0-beta-001027-00 but received 1.0.0
Which basically is telling me that I cannot use the new JIT and NETCore.App. If not supported, it would be great, because most of the performance work we are going to be doing soon will be based on the JIT and NETCore.

@redknightlois it's not supported yet, but I also need it for #284 so I definitely want to add it.
My plan was to wait until netcoreapp1.1 goes RTM. @AndreyAkinshin would you mind if I add a new target to BenchmarkDotNet for netcoreapp1.1 that would have dependencies to beta packages (we would need two releases again like we did with dnxcore50 for some time ;)

We are using the 1.2.0-beta packages here. Are we talking about the same thing?

Which TFM are you using? dnxcore50 , netcoreapp1.0 or netcoreapp1.1?

This one dotnet-core - microsoft.netcore.runtime.coreclr 1.2.0-beta-24629-02

This is clear to me, me question was which target framework moniker are you using?
Is it:
"frameworks": {
  "netcoreapp1.0": {
    "dependencies": {
      "Microsoft.NETCore.App": {
        "type": "platform",
        "version": "1.2.0-beta-24629-02"
      }
    },
    "imports": "dnxcore50"
  }
}

or
"frameworks": {
  "netcoreapp1.1": { // the difference is here 1.1 instead of 1.0
    "dependencies": {
      "Microsoft.NETCore.App": {
        "type": "platform",
        "version": "1.2.0-beta-24629-02"
      }
    },
    "imports": "dnxcore50"
  }
}

Can you post your project.json file here? So I could reproduce the exact behaviour? I have an idea for small change that could most probably fix it

Irrelevant for our purposes. We are using netcoreapp1.0 but nothing prevents me to change it to netcoreapp1.1 if it is needed. So the easiest fix the better :)

For some reason I still cannot make it work. I copied my code to the Sample in order to ensure that I was not doing something wrong, but it continues failing when building with:
Unhandled Exception: System.InvalidOperationException: Process must exit before requested information can be determined.
   at System.Diagnostics.Process.EnsureState(State state)
   at BenchmarkDotNet.Toolchains.DotNetCli.DotNetCliCommandExecutor.ExecuteCommand(String commandWithArguments, String workingDirectory, ILogger logger, TimeSpan timeout)
   at BenchmarkDotNet.Toolchains.DotNetCli.DotNetCliBuilder.Build(GenerateResult generateResult, ILogger logger, Benchmark benchmark, IResolver resolver)
   at BenchmarkDotNet.Running.BenchmarkRunnerCore.Build(ILogger logger, IToolchain toolchain, GenerateResult generateResult, Benchmark benchmark, IResolver resolver)
   at BenchmarkDotNet.Running.BenchmarkRunnerCore.Run(Benchmark benchmark, ILogger logger, IConfig config, String rootArtifactsFolderPath, Func`2 toolchainProvider, IResolver resolver)
   at BenchmarkDotNet.Running.BenchmarkRunnerCore.Run(Benchmark[] benchmarks, ILogger logger, String title, IConfig config, String rootArtifactsFolderPath, Func`2 toolchainProvider, IResolver resolver)
   at BenchmarkDotNet.Running.BenchmarkRunnerCore.Run(Benchmark[] benchmarks, IConfig config, Func`2 toolchainProvider)
   at BenchmarkDotNet.Running.BenchmarkSwitcher.RunBenchmarks(String[] args)
   at BenchmarkDotNet.Samples.Program.Main(String[] args)

@redknightlois my change was trivial, I suspect that there is some dotnet cli/.net core version mismatch. Could you post your sample here? The most important thing for me to have is to know which dependencies are you using, the code is less important

@adamsitnik There you are :)
https://github.com/redknightlois/BenchmarkDotNet/tree/temp/samples/BenchmarkDotNet.Samples/Other

@redknightlois Thanks for the repro, I was able to reproduce and fix the bug, however for some reason I have lost write access to the BenchmarkDotNet repo ;) We are most probably in the middle of moving to different organization ;)
If you don't want to wait we can do this in a less civilised way ;)
samples/BenchmarkDotNet.Samples/project.json => change "netcoreapp1.0" to "netcoreapp1**.1**"
src/BenchmarkDotNet.Core/Toolchains/Core/CoreToolchain.cs => change "netcoreapp1.0" to "netcoreapp1**.1**"
src/BenchmarkDotNet.Core/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs => add extra call to process.BeginOutputReadLine(); after call to process.BeginErrorReadLine();

@adamsitnik I wouldnt call myself civilized :) ... yes, it is working.


Adopt core shared header for ModelAdmin headers

[x] Do the tests still pass?[^1]
[x] Does the code comply with the style guide?
[x] For front-end changes: Did you test on all of Wagtail’s supported environments?[^2]

Please describe additional details for testing this change.
Fixes https://github.com/wagtail/wagtail/issues/8907
Adopts core header in modeladmin index view through modeladmin/includes/header.html (inherits/extends) core header
BEFORE:

AFTER:

@lb-  however i am not sure of how to get rid of block right_column_classname
as it's already been used,
https://github.com/wagtail/wagtail/blob/992d4c4ecbe54280d1e764d25ad2784e5691a1ef/wagtail/admin/templates/wagtailadmin/shared/header_with_locale_selector.html#L3
what are your views about it?
additionally,
at https://github.com/wagtail/wagtail/blob/992d4c4ecbe54280d1e764d25ad2784e5691a1ef/wagtail/contrib/modeladmin/templates/modeladmin/index.html#L23
could not find any implementation or use-case of header-left
although its not been used in the code of this PR and its still working.

Thanks @salty-ivy myself or someone will take a look and do a review.
Really appreciate this.

Thanks I had a doubt on manual override wanted to check that too but got busy 😅, I hit it back with the changes and proper testing.

@lb-  after applying full fragment based approach and testing its inheritance,

-[] breadcrumb
-[] h1
-[] search
-[] header_extra
-[] extra_rows

@lb- Its ready another round of review

Awesome. I've labelled as needs review.

@lb- i was wondering at this point why do even need a new header.html ? When Everything is already been taken care by shared header?

@lb- i was wondering at this point why do we even need a new header.html ? When Everything is already been taken care by shared header?

Good call. I think this was probably my early idea on how to solve the problem of mixing blocks / includes. However, the fragment tags may not have been in the core code at that time.
I'd now lean towards avoiding it if possible.

Done ! removed the need of new header.html in modeladmin, now index.html uses shared html  directly


Replace fungal shift checkboxes with badges

This removes the extra step to see which shifts would be affected by flasks
Also adds the dark cave layout, and restores the initial lottery perk pickup display (with a hack for the first pickup only).

Awesome work!


SSH server not detected on a freshly ZorinOS16 guest install

Hi,
I just installed ZorinOs16 with Quickgui 1.2.2/Quickemu 3.11, installed SSH in guest, stop and restarted the guest, Quickgui does not detect SSH server.
ssh zorinos@localhost -p 22220
on the host work however.
System:    Kernel: 5.15.0-2-amd64 x86_64 bits: 64 Desktop: Openbox 3.6.1
Distro: Devuan GNU/Linux 5 (daedalus/ceres)

I am not able to reproduce this issue.

I have the same issue, but on latest Archlinux.
Manually ssh-ing to the guest works fine (on the port in archlinux-latest.ports).

I've just tested with the Quickemu 1.2.9 release candidate. Started Ubuntu 22.04 and Ubuntu 24.04 guest VMs that have OpenSSH server installed and running.
I can connect to both via:

ssh martin@localhost -p 22222
ssh martin@localhost -p 22223

Quickgui reports "SSH server not detected on guest" for both guest VMs.


Fixes things which break the link checker actions for AE and GHES

Why:
Yesterday, #9215 got merged in and it broke the Link Checker Actions for GitHub AE & Enterprise Server because it doesn't have a conditional to check the version of the article. Maybe even @ramyaparimi & @timeyoutakeit didn't notice that.

What's being changed:

This adds a ifversion conditional to check for fpt (Free, Pro & Team Hosted on GitHub versions) which have Codespaces while others don't.
Check off the following:

[x] I have reviewed my changes in staging (look for the latest deployment event in your pull request's timeline, then click View deployment).
[X] For content changes, I have completed the self-review checklist.

Hi @thispsj, thanks for the help but we actually just merged a fix for this internally! It should sync with this repo 🔜 .

@lecoursen no problem


Issues of level 2> secondary device.

Generating the QR to share for secondary device is taking a long time .
confirm button of sec device is not reacting quickly will have to click it 2/3 times.

2 of 3 SSS to do after K2 is added - we show the user loader messages - "Preparing your Recovery Keys"
(suggestion - if the refresh of Manage Backup is taking time)

-Still facing these issues on Staging app v1.5.0(252)

Generating the QR to share for secondary device is taking a long time .
confirm button of sec device is not reacting quickly will have to click it 2/3 times.

-Verified this issue on staging app v1.5.0(256)


Dump DB

Small dev script to dump the difference between two Merk DB (RocksDB)
instances in a human-readable format.
This is NOT meant to be pretty nor usable by everyone. This is just a helper script that helps me debug DB issues.
It could be made better in time.

We can do better. I'll keep this one for myself :)


[NavigationExperimental] disable pop gestures with horizontal direction

Hey,
I would like to access to SceneConfigs to disable pop gestures with NavigationExperimental on React-Native.
Like that with old Navigator :
var sceneConfig = Navigator.SceneConfigs.FloatFromBottom;
sceneConfig.gestures.pop.disabled = true;

this.props.navigator.push({
  title: 'Search',
  component: SearchList,
  sceneConfig: sceneConfig
})

How can i do that with NavigationExperimental ?

React Native version: 0.34.0
Platform(s) (iOS, Android, or both?): iOS
Operating System (macOS, Linux, or Windows?): macOS

I managed to disable it with the prop enableGestures of the CardStack component.
I also have an array of blacklisted routes, that's checked during navigation by a middleware that will dispatch an action disabling the gestures in my Redux store.
My CardStack is connected to it, so I can change the prop dynamically.
It works fine for me.

Yeah, as @Exilz said, you can disable the back gesture by setting enableGestures to false on your CardStack.
If you have a more specific question, feel free to tag me in another issue. Feel free to re-open this if I misunderstood your question.


building a faq page

I would like to build a faq page where the users can find answers to their simple problem related to various things..

@Sonuu20 You can proceed with it. Please remember to -

Send a photo here of of the new design before raising a PR
Follow the proper file structure
Star the repo :)

All the best!

@SaranshBangar here is how the new faq page looks. Should I made some changes in or raise the PR .

@SaranshBangar still waiting for your response??

@Sonuu20 Please add a bit of margin-left to the image, otherwise it looks good

@SaranshBangar I've made the necessary changes and raised the PR under #145. Please approve the pr request..


test(execution): chain test state check, execution bug fixes/upgrades

Add post state check for eth/test blockchain tests.
Fixed the bug with LatestStateProvider and added seek_by_key_subkey functionality to mdbx-rs to handle it.
Handle revm returns as not consensus errors for now. Todo issue was made here: https://github.com/paradigmxyz/reth/issues/463
Upgrade revm with breaking ruint changes to its main
Fix receipt root calculation. Typed receipt should not have rlp header. Introduced encode_inner function to Receipts

@rakita pls add PR description^^

Rebased

@rakita merge conflict blocking CI

I was deep in debugging :) I found the problem with receipts calculation of root and an additional one with dupsort compressed values. Receipts are fixed dupsort subkey still pending.

Ci advisories canceled, not related to this PR


Add localisation file for reflinks

Just a note that it's currently being used at https://tools.wmflabs.org/fengtools/reflinkstest/ (Chinese version). It's still incomplete.
The localisation is implemented with a custom msg() function in the Twig templating engine which calls Intuition's msg() method. See main.html for an example.
Thank you.

Looks good, but could you add qqq entries as well so translators know how the messages are used? And I noticed wiki is capitalised in your English messages, that should probably be changed to lowercase "wiki".
/cc @siebrand @Nikerabbit

Thanks, I've changed 'Wiki' to lowercase and squashed the commits. I've prefixed most of the keys with their corresponding UI elements (heading, button label, etc). Is executable code allowed, so that I can add notes in batches for those messages to describe where they will be used?

Hi, is this PR still being handled?

We will look into it Monday or Tuesday.

Op 23 jan. 2015 om 02:57 heeft Zhaofeng Li<EMAIL_ADDRESS>het volgende geschreven:
Hi, is this PR still being handled?
—
Reply to this email directly or view it on GitHub.

qqq should be added for all messages in Reflinks.i18n.php. See https://www.mediawiki.org/wiki/I18n#Message_documentation for details.

Okay, no problem!

I've added the documentations.

By the way, since the main copy of the message file is in the tool's repo, I'm a little bit concerned about the workflow. What's the best way to keep them in sync and how can I get new messages on Translatewiki as soon as possible? Currently, Intuition is added as a git submodule in my repo, with a bootstrap script that loads the message file manually. The tool must be usable off-Labs.


Can not start the app

Was following instalation guid in README.md
git clone https://github.com/shockone/black-screen.git && cd black-screen
npm i
npm start

Receive following exception:
><EMAIL_ADDRESS>start /Users/igor/wp/black-screen
> gulp

[09:35:45] Using gulpfile ~/wp/black-screen/gulpfile.js
[09:35:45] Starting 'default'...
[09:35:45] Starting 'watch'...
[09:35:45] Starting 'clean'...
[09:35:45] Finished 'clean' after 60 ms
[09:35:45] Starting 'typescript'...
[09:35:45] Starting 'sass'...
[09:35:45] 'sass' errored after 53 ms
[09:35:45] Error: dlopen(/Users/igor/wp/black-screen/node_modules/node-sass/vendor/darwin-x64-47/binding.node, 1): no suitable image found.  Did find:
	/Users/igor/wp/black-screen/node_modules/node-sass/vendor/darwin-x64-47/binding.node: truncated mach-o error: segment __LINKEDIT extends to 2602136 which is past end of file 1879600
    at Error (native)
    at Object.Module._extensions..node (module.js:423:18)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/igor/wp/black-screen/node_modules/node-sass/lib/index.js:23:15)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
[09:35:45] Finished 'watch' after 201 ms
[09:35:45] Starting 'copy-html'...
[09:35:45] Finished 'default' after 206 ms
[09:35:46] Finished 'copy-html' after 32 ms

><EMAIL_ADDRESS>tsc /Users/igor/wp/black-screen
> tsc

><EMAIL_ADDRESS>electron /Users/igor/wp/black-screen
> electron .

fs.js:584
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/Users/igor/wp/black-screen/node_modules/electron-prebuilt/path.txt'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at Object.<anonymous> (/Users/igor/wp/black-screen/node_modules/electron-prebuilt/index.js:4:42)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/Users/igor/wp/black-screen/node_modules/.bin/npm" "run" "electron"
npm ERR! node v5.3.0
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>electron: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>electron script 'electron .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the black-screen package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs black-screen
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls black-screen
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/igor/wp/black-screen/npm-debug.log
/Users/igor/wp/black-screen/node_modules/gulp-shell/node_modules/async/lib/async.js:52
            fn.apply(this, arguments);
               ^

TypeError: fn.apply is not a function
    at /Users/igor/wp/black-screen/node_modules/gulp-shell/node_modules/async/lib/async.js:52:16
    at /Users/igor/wp/black-screen/node_modules/gulp-shell/node_modules/async/lib/async.js:264:21
    at /Users/igor/wp/black-screen/node_modules/gulp-shell/node_modules/async/lib/async.js:44:16
    at /Users/igor/wp/black-screen/node_modules/gulp-shell/index.js:75:7
    at ChildProcess.exithandler (child_process.js:220:5)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v5.3.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'gulp'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the black-screen package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp
npm ERR! You can get their info via:
npm ERR!     npm owner ls black-screen
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/igor/wp/black-screen/npm-debug.log

Did npm i end successfully? Can you pull the latest master, remove the node_modules directory and try again?

Thanks @shockone. You ware right. I had to reinstall it... after it started successfully. However, when I enter pwd command it freezes. I should probably create a separate issue for this?

Yes, please, @polinom. Perhaps you mean that it freezes if you type pwd right after the app is loaded. If you wait a few seconds and then type, it should work fine. But it's still a bug.


feat: Update reports doc pages

@iamsivin please ensure to add redirect for removed/ changed files so that we can get this merged

@iamsivin please ensure to add redirect for removed/ changed files so that we can get this merged

@sojan-official I checked it with the names of the removed files and found one or two and replaced them with new files. And checked the removed images with the name and I couldn't find anywhere we are using it.


[Typescript] Bug fix to allow custom components

Description / Motivation
Support for custom components in field-factory.tsx I am trying to add a custom react component to the jss-react-forms and relying on typescript.
The method definition only allows of type FieldTypes Enum and I dont have an override to pass my custom component implementation. Internally its a map that takes string and react component for that type.
I have added string so it can be FieldTypes for OOB field and custom field can be added with the {guid} string.
Testing Details
Sitecore 10.1 JSS SXA Docker environment Typescript
In my local instance I am using this approach and it works.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

@CobyPear The new pull request with proper branch.

Our CI shows a linting error, can you run yarn lint on the repo and address any errors please? Thanks.

@bala-one Merged into https://github.com/Sitecore/jss/pull/1047


Update Lint/UnmodifiedReduceAccumulator to handle numblocks and more than 2 arguments.

Re https://github.com/rubocop-hq/rubocop/pull/9071#issuecomment-733042996
Adds support for numblocks and non-traditional arguments to Lint/UnmodifiedReduceAccumulator.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Looks good!


SVG: Update medium priority attribute pages [1/7]

Task
Update content to reflect SVG2 changes
Update page structure to fit modern layout (especially, breakdown page by element)
Pages

[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/type
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/lengthAdjust
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/path
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/side
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fr
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fx
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fy
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/gradientTransform
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/gradientUnits
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stop-color
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stop-opacity
[ ] https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xml:space

Those attributes are now all updated. Note that for type you don't see the current page at the moment, but Peter is already working on a fix for that in bug 1551999.
Sebastian

Hooray! Thanks @SebastianZ ! And the version bug is now fixed, too.


Real-time air traffic

Hello,
I don't see any real-time air traffic.
I can't see any airplanes at airports, which are present according to Flightradar.
Is there anything I need to be aware of?

This is not a bug. 🥲
Currently, there's no aircraft data provider for Streets GL. The problem is that the app needs to fetch aircraft data with small delays basically 24/7. Not every data provider is willing to allow this kind of extreme usage. Also, it's crucial to have good coverage in airports as this is the only place where you can easily spot aircraft.
The best candidate for this is https://adsbexchange.com, but unfortunately their API is incredibly expensive. I've tried to communicate with them but haven’t received any response.
I've also talked with the creator of https://adsb.lol, but they require me to install a receiver to get access to the API, and I'm not sure if I'm going to do this. Also, their coverage is not so great in airports.

There are OGN  for small aircraft, and openskynetwork  suits for almost real-time traffic rendering.


Inconsistent grid render while streaming results from large query

Azure Data Studio Version: master

Steps to Reproduce:

Run a large query that will take a long time to complete, such as below.
Scroll around the resultset while the query is running

-- example large query
SELECT * FROM sys.all_columns
CROSS JOIN sys.all_columns a
CROSS JOIN sys.all_columns b;

Expected: Results render as expected.  No glitches, consistent row gridlines, inconsistent scrolling and refreshes
Actual: Various rendering issues such as those mentioned above.

Closing older issues.  There have been numerous fixes in the area that may have helped this scenario.


MAMPGmbH.MAMP version <IP_ADDRESS>79

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

PackageIdentifier should be MAMP.MAMP and PackageName should be actual name of the application after installation.

cc @hossainsadman: you'll also need to rename the folder name and files.
i.e. change MAMPGmbH to MAMP as well as the .yaml files.


Prevent checking in nofile buffers.

Hello!
I'd suggest to prevent checking in nofile buffers (e.g. clangd lsp shows documentation using a bit strange markdown format, which leads to highlighting trailing spaces in floating windows)
The following lines in the beginning of the tws.match_tws () function  help to avoid the problem:
  if vim.bo.buftype == "nofile" or vim.bo.buftype == "terminal" then
    return
  end

Thank you!

Hey @spimanov!
Sorry, I missed the notification. Or maybe that is because you didn't assign anyone to the issue. Anyway, I updated the master branch. Could you check your problem again after pulling the updates and removing your adjustments from the source code?
Though I don't expect, it will work for you. Since I only excluded floated and all non-normal windows from highlighting them with tws.match_tws. If it is not working, I will add to the configuration something like blacklist table, where you can specify buftypes to ignore.
Thanks for opening an issue!

I guess it is no longer an issue. Anyone concerned with related problems can reopen it


Improve message format for various commands

Improve success / failure messages for:

Add command
Edit command
Other possible commands

some improvements made through PRs #119 #121 #113

Resolved through PRs #143, #159. Issue closed.


Why frameworks?

Why already worrying about frameworks?  Why not just go vanilla and build up from there?  :icecream:

I'm just familiar with Next.js + Tailwind, but I have nothing against vanilla. Open to ideas


fixed accept header regex

How are you doing your versions?

I would like to be able to have this flexibility in my api versioning

It doesn't hurt to add this, It allows me to add more detailed versioning to my architecture and so I would like to not have to modify this file everytime I composer update

Create your own service provider for dingo and construct your own router that extends dingo's router.
—
Sent from Mailbox
On Sat, Mar 14, 2015 at 6:43 PM, Alex Goretoy<EMAIL_ADDRESS>wrote:

It doesn't hurt to add this, It allows me to add more detailed versioning to my architecture and so I would like to not have to modify this file everytime I composer update
Reply to this email directly or view it on GitHub:
https://github.com/dingo/api/pull/355#issuecomment-80663647

For the L5/Lumen versions you can overload the Accept parser now and do it how you want.


Parse trait bounds containing associated constant constraint

As seen in src/test/ui/associated-consts/assoc-const.rs:
fn foo<F: Foo<N = 3usize>>() {}

Syn can't currently parse this.
error: expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime
  --> src/test/ui/associated-consts/assoc-const.rs:18:17
   |
18 | fn foo<F: Foo<N=3usize>>() {}
   |                 ^^^^^^

Feature request: https://github.com/rust-lang/rust/issues/70256
Tracking issue: https://github.com/rust-lang/rust/issues/92827


(1.20-rc.1) Possible incompatibility with Magnet Mods

Having strange issues (No Crashes) when OKM is used along with Magnet-Command mod on 1.20-rc.1
Possible ore duplication and system freezing issues.
Link to Magnet-Command mod: https://modrinth.com/mod/magnet-command
Link to bugreport thread on Discord: https://discord.com/channels/1103757559032197143/1114641096853704856
We would appreciate your investigation/feedback... Hopefully it will help point out a resolution. :)
Update: Interaction issue caused by having NO DEFAULT Block Breaking Limit set in OKM, causing Overload of Magnet function.

Closing this issue, and referring to: https://github.com/Enaium-FabricMC/OneKeyMiner/issues/3


column field inside object

Hello, i receive the data inside an array of objects from my api and in some cases i need to fill my column name with a field from an object inside another object, example:
data[{a : 'abc', animals : {name: 'dog'}}]. Im using a customBodyRender to get that data.animals.name but i need to export the data from that column to a csv file, and it's not working using customBodyRender.
Expected Behavior
I expect to have access to that data.animals.name on my CSV file. It can be fixed by having access inside the object (ex: 'field :  'animals.name') or allow the CSV file to access the customBodyRender values.
Current Behavior
I need to use a "fake" field and use customBodyRender to do value.animals.name
Steps to Reproduce (for bugs)
  {
    name: "Animals",
    field: "fake",
    options: {
      customBodyRender: (value, tableMeta, updateValue) => {
        return value.animals.name
      },
    },
  }

Tech
Version

Material-datatable
0.3.9

React
16.8.6

browser
Chrome, Firefox

Yep, it is a bug.
Working on it.

First of all, thanks for answering.
Yes, you're right. I found out that my issue is in handleCSVdownload().
I recently made the migration to this datatable version (0.3.9), i was using an older version (i don't remember the version) but i needed to use handleCSVdownload from the older version because that fixes the issue about fields appearing with [Object object].
But now i have 2 issues with this situation:

If i use the handleCSVdownload from 0.3.9 i have the issue about field being [Object object], like you have in the screenshots that you put.
-If i use the older code i can't reach values inside an object of another object. (example: value.subFieldData.value)

I'm trying to get a viable solution for both problems but i'm not having success, if you could help somehow would be really nice.
I will leave here both codes:
Old version:
handleCSVDownload = () => {
        const { data, columns, options } = this.props;
        const newColumns = [];
        const fields = [];
        const indexes = [];
        let newData = [];

        columns.forEach(function (val, index) {
            if (val.display === 'true') {
                newColumns.push(val);
                fields.push(val.field);
                indexes.push(index);
            }
        });

        const CSVHead =
            newColumns
                .reduce((accumulator, column) => {
                    return column.download ? `${accumulator}"${column.name}"${options.downloadOptions.separator}` : accumulator;
                }, "")
                .slice(0, -1) + "\r\n";

        const finalData = []
        data.forEach(val => {
            let string = ''
            let currentRow = []
            fields.forEach(field => {
                string = val.dataObject[field]
                currentRow.push(string)
            })
            finalData.push(currentRow)
        })

        const CSVBody = finalData
            .reduce(
                (accumulator, row) =>
                    accumulator +
                    '"' +
                    row.join('"' + options.downloadOptions.separator + '"') +
                    '"\r\n',
                [],
            )
            .trim();

    /* taken from react-csv */
    const csv = `${CSVHead}${CSVBody}`;
    const blob = new Blob([csv], {type: "text/csv"});
    const dataURI = `data:text/csv;charset=utf-8,${csv}`;

    const URL = window.URL || window.webkitURL;
    const downloadURI = typeof URL.createObjectURL === "undefined" ? dataURI : URL.createObjectURL(blob);

    let link = document.createElement("a");
    link.setAttribute("href", downloadURI);
    link.setAttribute("download", options.downloadOptions.filename);
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);
};

Version 0.3.9:
handleCSVDownload = () => {
        const {data, columns, options} = this.props;

        const CSVHead =
            columns
                .reduce((accumulator, column) => {
                    return column.download ? `${accumulator}"${column.name}"${options.downloadOptions.separator}` : accumulator;
                }, "")
                .slice(0, -1) + "\r\n";

        const CSVBody = data
            .reduce(
                (accumulator, row) =>
                    accumulator +
                    '"' +
                    row.data
                        .filter((field, index) => columns[index].download)
                        .join('"' + options.downloadOptions.separator + '"') +
                    '"\r\n',
                [],
            )
            .trim();

        /* taken from react-csv */
        const csv = `${CSVHead}${CSVBody}`;
        const blob = new Blob([csv], {type: "text/csv"});
        const dataURI = `data:text/csv;charset=utf-8,${csv}`;

        const URL = window.URL || window.webkitURL;
        const downloadURI = typeof URL.createObjectURL === "undefined" ? dataURI : URL.createObjectURL(blob);

        let link = document.createElement("a");
        link.setAttribute("href", downloadURI);
        link.setAttribute("download", options.downloadOptions.filename);
        document.body.appendChild(link);
        link.click();
        document.body.removeChild(link);
    };

You do see [Object object] output in CSV because if you wanna return any string you need return string like here:

But also you can return some object like Button:

Just in this ^^ case you will see  [Object object]  output in CSV.
If you need remove this column from CSV, you can set flag "download: false" like here:

About difference in the code versions - I didn't modify this file too much and don't know what it is.

I think you don't get my point here.
In this screenshot that you put:

I'm trying to have access to my string inside my object like the next example and as you know this will appear [Object object] in csv file.

This issue about [Object object] is not only for objects inside objects, it's for every customBodyRender that i'm trying to put a Link, a Button, etc...

This will not work, because CSV don't anything about React and Link.toString() return you [Object]

The function is not ready to extract the string from the object?

This function as you can see, just return some data, if you need return string, just return string.


Support rotating encryption keys

Needs some thought/research on the best way to do that.

The current encryption method doesn't support verifying a decrypt worked properly. So you can't make any rekey script idempotent. We may want to move from CFB to something like GCM to solve this.


Timer ISR is not executed on exact time when wifi is enabled (IDFGH-5535)

We are generating square waves on a pin based on interrupt.
The square waves are generated properly if wifi is disabled.
But when wifi mode is enabled, then square wave duty cycle is not constant, which indicates issue in timer interrupt.
Below is explanation :
1. Square wave output pin 1 : 35 .
2. Interrupt pin  : 34
Algorithm:
1. Timer is configured for fix time of 6 ms
2. After every 10 ms, interrupt is generated
3. On "Negative going pulse on Interrupt pin ", we:
a. Make Square wave output pin "false"
b. Start 6 ms timer
This interrupt occurs at every 10 ms
4. In Timer ISR (Which occurs after 6 ms of interrupt)
a. Make Square wave output pin "true"
b. enable flag to indicate "timer isr is executed"
5. In an infinite loop, we stop the timer based on flag status explained in 3.b
Expected result:
A square wave of 6 ms OFF and 4 ms ON is generated
Observations/Actual result:
Square wave duty cycle varies when wifi is enabled. i.e. Timer isr is not getting called at 6 ms, as configured. But it occurs anytime between 5.5 ms to 6.5. ms
Note:
Tried to use high resolution timer (esp_timer) instead of timer0/1. Issue still persists

Adding timer code.
This code is working well and generating square waves.
It fails when we start WiFi
demo_code.txt

Use the ledc peripheral to generate your pulses

Thanks for reporting and sharing the updates, feel free to reopen.


("Textures" page) ImageSharp's GetPixelSpan() appears to have been removed/replaced

Hi all,
Some of the information on the "Textures" page of the Learn OpenTK page may have fallen out of date, as unless my IDE (Visual Studio) is just being the usual bag of uselessness that it often is, one of the ImageSharp functions has changed.
It appears you can no longer create a byte array simply by using image.GetPixelSpan().ToArray().
Possibly related to: https://github.com/SixLabors/ImageSharp/issues/1164.

Hey, I'm also learning now using the documentation and noticed this.
I've checked the current API of ImageSharp and updated the code in my project, so until they update it, you can use it:
Image<Rgba32> image = Image.Load<Rgba32>(imagePath);
image.Mutate(x => x.Flip(FlipMode.Vertical));

var pixels = new List<byte>(4 * image.Width * image.Height);

for (int y = 0; y < image.Height; y++) {
	var row = image.GetPixelRowSpan(y);

	for (int x = 0; x < image.Width; x++) {
		pixels.Add(row[x].R);
		pixels.Add(row[x].G);
		pixels.Add(row[x].B);
		pixels.Add(row[x].A);
	}
}

I also gave the list constructor a capacity value because I know how big the list will be