Citations not updated on export

I followed the obsidian-pandoc directions regarding citations, and have the following for extra pandoc arguments:
--metadata csl=https://raw.githubusercontent.com/citation-style-language/styles/master/apa.csl
--metadata bibliography=C:\Users\wwwde\Downloads\pandoc\My_Library.bib
--citeproc

However, when I export to any format via this plugin, the citations are not updated properly.
I have followed this tutorial: https://www.youtube.com/watch?v=OMPx1dCdcYA
I have pandoc and pdflatex installed on my windows 11 machine
Neither of these work:
[@wuExploringLimitsChatGPT2023]
@wuExploringLimitsChatGPT2023
SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.4.16
Operating system: Windows 10 Home 10.0.23606
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Minimal v7.4.6
Snippets enabled: 0
Restricted mode: off
Plugins installed: 44
Plugins enabled: 33
1: Admonition v10.1.1
2: Calendar v1.5.10
3: Custom Frames v2.4.6
4: Dataview v0.5.64
5: Dice Roller v10.4.0
6: Editor Syntax Highlight v0.1.3
7: Excalidraw v2.0.12
8: Google Photos v1.6.5
9: Hider v1.3.1
10: Homepage v3.6.0
11: Image Toolkit v1.4.1
12: LanguageTool Integration v0.3.6
13: Linter v1.22.0
14: Minimal Theme Settings v7.3.1
15: Note Refactor v1.8.2
16: Obsidian_to_Anki v3.4.2
17: Paste URL into selection v1.7.0
18: Plugin Update Tracker v1.5.2
19: Quick Switcher++ v3.3.9
20: QuickAdd v1.6.1
21: Readwise Official v2.0.1
22: Recent Files v1.3.8
23: Settings Search v1.3.10
24: Templater v2.0.0
25: Text Extractor v0.4.10
26: Todoist Plugin v1.11.1
27: ExcaliBrain v0.2.11
28: DB Folder v3.5.0
29: Zotero Integration v3.1.2
30: Citations v0.4.5
31: Pandoc Reference List v2.0.24
32: Pandoc Plugin v0.4.1
33: Longform v2.0.4

My fault. I selected to export files from markdown and it worked.


My 100 theorems

I have compiled this list of 100 new theorems to prove using mathlib4. Some of these (like the Feit–Thompson theorem) have already been proved in other proof assistants, but that is largely irrelevant here; I have tried to ensure that no theorem from Freek's original list of 100 is in here and that there is a focus on more recent mathematics.
Disclaimer: No attempt has been made, though, to make the theorems of high importance – Freek's list already captures most of the important ones, and a few of the theorems are based off my own research on the Mathematics Stack Exchange.
If there are duplicates with the original list or any theorem is already within mathlib4 please let me know.
Analysis

Correctness of John Machin's original formula for $\pi$.
$$\frac\pi4=4\arctan\frac15-\arctan\frac1{239}$$
Legendre's relation of complete elliptic integrals. Let $K$ and $E$ be the complete elliptic integrals of the first and second kinds respectively. Then
$$K(m)E(1-m)+K(1-m)E(m)-K(m)K(1-m)=\frac\pi2$$
where $m$ is the parameter.
Closed-form expression of the "continued fraction constant".
$$[0;1,2,3,4,\dots]=\frac{I_1(2)}{I_0(2)}$$
Apéry's proof that $\zeta(3)$ is irrational.
Bourget's hypothesis. For distinct nonnegative integers $m,n$, the Bessel functions $J_m(x)$ and $J_n(x)$ only have at most one common zero, at $x=0$ (Siegel).
Frullani's integral. Let $a,b>0$ and $f$ be a continuously differentiable function on $\Bbb R_{\ge0}$ with a finite limit $f(\infty)$ at $\infty$. Then
$$\int_0^\infty\frac{f(ax)-f(bx)}x dx=(f(\infty)-f(0))\ln\frac ab$$
de Branges's theorem aka Bieberbach conjecture. Let $f$ be a holomorphic function in the open unit disc with Taylor series $$z+\sum_{n=2}^\infty a_nz^n$$
If $f$ is injective on the disc, $|a_n|\le n$ for all $n\ge2$.
Helmholtz decomposition. A twice-differentiable 3D vector field over a bounded domain can be decomposed into a curl-free part and a divergence-free part. If the domain is all space, this decomposition still exists if the field decays as fast as $1/r$.
The hypergeometric function at 1. If the real part of $c-a-b$ is positive,
$${}_2F_1(a,b;c;1)=\frac{\Gamma(c)\Gamma(c-a-b)}{\Gamma(c-a)\Gamma(c-b)}$$
Riemann mapping theorem. For any two nonempty simply connected proper open subsets of the complex plane, there exists a biholomorphic map between them.
Perron–Frobenius theorem. A real square matrix with positive entries has a unique eigenvalue with largest magnitude; that eigenvalue is real and its corresponding eigenvector can be chosen to have positive entries only.
Cantor function. The Cantor function is continuous everywhere, monotone and differentiable almost everywhere but is not the integral of its derivative.

Combinatorics

Existence of some Steiner systems. (a) There exist Steiner triple systems for any number of items $\equiv1,3\bmod6$ (Skolem). (b) There exist Steiner quadruple systems for any number of items $\equiv2,4\bmod6$ (Hanani).
Conway's cosmological theorem. (a) All evolutions of the look-and-say sequence eventually decay into sequences of 92 "elements" (if only digits from 1 to 3 are used initially) where each element never again affects its neighbours. (b) The ratio between consecutive iterations of any look-and-say sequence except that starting from 22 approaches the degree-71 algebraic number called Conway's constant.
Conway's Soldiers is unsolvable in a finite number of moves when the target row is the fifth or beyond.
Zeilberger's alternating sign matrix theorem. The number of n × n alternating sign matrices is
$$\prod_{k=0}^{n-1}\frac{(3k+1)!}{(n+k)!}$$
There exist pairs of orthogonal Latin squares for any order except 2 and 6.
Impossibility of a pentomino puzzle. It is impossible to use the 12 free pentominoes to tile the following shape:

     #
    ###
   #####
  #######
 #########
##### #####
 #########
  #######
   #####
    ###
     #

Crank of a partition. The crank as defined by Andrews and Garvan divides the partitions of $5n+4,7n+5,11n+6$ into $5,7,11$ equally sized classes based on the crank residue modulo $5,7,11$ respectively.
Number of de Bruijn sequences. Up to cyclic rotations, there are $(k!)^{k^{n-1}}/k^n$ distinct de Bruijn sequences for length $n$ words on a size $k$ alphabet.
Polyá's enumeration theorem.
Aztec diamonds. The number of domino tilings of the order $n$ Aztec diamond is $2^{n(n+1)/2}$.
Testing sorting networks. To validate a sorting network for $n$ items it suffices to test all $2^n$ inputs containing just zeros and ones.
Alternating permutations. The generating function for the number of permutations where successive pairs of elements alternately compare greater and lesser, with the first element less than the second, is $\sec x+\tan x$.
Chen–Fox–Lyndon theorem. Any word has a unique decomposition into a non-increasing sequence of Lyndon words.
Perfect codes. Over alphabets of prime-power size, any non-trivial perfect code is either a Hamming code or one of the two Golay codes (Tietäväinen 1973).
Even–Gillis formula for generalised derangements. Consider a deck where there are $s_i$ identical cards of rank $i$ for $1\le i\le n$. Then the number of derangements of this deck is, up to sign,
$$\int_0^\infty e^{-x}\prod_{i=1}^nL_{s_i}(x)\,dx$$
where $L$ denotes the Laguerre polynomials. In particular, there are exactly<PHONE_NUMBER>499093354916284290188948031229880469556 ways to derange a standard deck of cards ignoring suits.
The game of Hex cannot end in a tie.
First paper in Discrete Analysis aka Erdős discrepancy problem. For any infinite sequence $\{x_i\}$ with only $\pm1$ and any positive integer $b$ there exist positive integers $n$ and $d$ such that the sum of terms $x_{kd}$ for $1\le k\le n$ has magnitude at least $b$.
Thue–Morse sequence along the squares. The binary sequence defined by the parity of the Hamming weight of $n^2$ (OEIS A228039) is normal, i.e. every binary word of length $k$ appears as a contiguous subsequence with frequency $1/2^k$ (Drmota, Mauduit, Rivat 2013).
Maximum overhang. The maximum overhang over the edge of a table acheivable by a 2D stack of $n$ ideal Jenga blocks is $\Theta(n^{1/3})$ (Paterson et al. 2007).
Pentagonal number recurrence for partitions. The unrestricted partition function $p(n)$ satisfies
$$p(n)=\sum_{k\in\Bbb Z,k\ne0}(-1)^{k+1}p(n-k(3k-1)/2)$$

Geometry

There are exactly 92 Johnson solids.
There are exactly 17 wallpaper groups.
Equivalence of the geometric and algebraic constructions of the isogonal conjugate. Consider a nondegenerate triangle ABC and a point P strictly inside it, with trilinear coordinates $x:y:z$. Reflect the cevian PA across the bisector of angle A, and similarly for PB and PC. Prove that the reflected cevians concur at a point with trilinear coordinates $1/x:1/y:1/z$.
The densest packing of 9 equal-sized circles in a square is the obvious one.
The Penrose rhombus tiles are aperiodic.
Correctness of Andrew M. Gleason's construction of a regular heptagon using one angle trisection – see here for an animation.
Banach–Tarski paradox, original form. In 3D or higher Euclidean space, any two bounded subsets of the space $A,B$ with nonempty interior can each be decomposed into some finite number of pieces $A_1,\dots,A_n$ and $B_1,\dots,B_n$ such that each $A_i$ - $B_i$ pair is a congruence.
Poncelet–Steiner theorem. The compass in any compass-and-straightedge construction can be replaced by a pre-drawn circle and its centre.
Theorema egregium. The Gaussian curvature of a surface is invariant under local isometries.
Willmore energy. The integral of squared mean curvature over a surface homeomorphic to a sphere is at least $4\pi$, with equality iff it actually is a sphere.
Marden's theorem. Place three points in the complex plane and form a triangle out of them as well as a cubic polynomial $p$ with the corresponding complex numbers as roots. The foci of the triangle's Steiner inellipse are the roots of $p'$.
Malfatti circles are never the optimal solution to the problem of maximising the area of three circles cut out of a triangle.

Graph theory

Brooks's theorem. Except for odd cycles and complete graphs, any graph with maximum vertex degree $\Delta$ can be coloured with $\Delta$ colours.
Generalised Vizing's theorem. For a multigraph with maximum multiplicity $\mu$ and maximum vertex degree $\Delta$, its edges can be properly coloured with at most $\Delta+\mu$ colours.
BEST theorem. In a directed graph, the number of Eulerian circuits can be computed in polynomial time by computing a determinant and multiplying it with some factorial factors.
"Double-delta theorem" on unit-distance graphs. Except for $K_{3,3}$, any connected graph with maximum vertex degree $\Delta$ can be embedded in $\mathbb R^\Delta$ nondegenerately so that all edges are of unit length (Frankl, Kupavskii, Swanepoel 2018).
Strong perfect graph theorem. A graph is perfect iff neither it or its complement contains an induced cycle of odd length 5 or more.
Graphs with specified Wiener index. Every positive integer except 2 and 5 is the Wiener index of some graph.
The only known nontrivial multipartite Ramsey number. $K_{17}$ is the smallest complete graph for which every 3-colouring of its edges has a monochromatic triangle.
Forbidden induced subgraph characterisation of line graphs. A graph is a line graph iff it contains none of the nine graphs shown here as an induced subgraph.
Steinitz's theorem on polyhedral graphs. The graphs that are skeletons of convex polyhedra are exactly the planar 3-vertex-connected graphs.
Existence of knight's tours. Closed knight's tours exist on all rectangular chessboards with an even number of squares except when the smaller dimension is 1, 2 or 4 or the board is 3 × {4, 6, 8}.
Frucht's theorem. Any finite group is the automorphism group of some finite 3-regular graph.
Ringel–Youngs theorem aka Heawood conjecture. A graph embeddable on a closed surface that is not the sphere and has Euler characteristic χ has chromatic number at most
$$\left\lfloor\frac{7+\sqrt{49-24χ}}2\right\rfloor$$
and this upper bound is tight except on the Klein bottle.
Robertson–Seymour theorem. Every minor-closed family of graphs is characterised by a finite set of forbidden minors.

Group theory and higher algebra

Burnside's two-prime theorem. Every group whose order has only two distinct prime factors is solvable.
Feit–Thompson theorem. Every group of odd order is solvable.
Generalised crystallographic restriction theorem. Define an additive function $\psi(m)$ that equals the totient function for odd primes and their powers but is 0 at 1 and 2. Then if an n × n integer matrix has finite order m, $\psi(m)\le n$.
Hurwitz's theorem on composition algebras. The only normed division algebras over $\Bbb R$ are $\Bbb R,\Bbb C,\Bbb H,\Bbb O$.
Stufe. The Stufe of a field is the least number of squares needed to sum to -1, or $\infty$ if this is impossible. Prove that (a) if the Stufe is finite it is a power of 2 and (b) every power of 2 is the Stufe of some field.
Conway's sporadic groups. The quotient of the automorphism group of the Leech lattice by its centre is a simple group not of Lie type, as are the groups of automorphisms that fix a type 2 or type 3 vector.
Dual Circle. In Oskar van Deventer's Dual Circle puzzle, only $6^{11}$ positions can be reached rather than the $6^{12}$ that would be naively expected. (Jaap says that this "twist restriction is rather complicated, and not at all obvious".)

Knot theory and topology

The only knot with 4 crossings (up to isomorphism) is the figure-eight knot.
Classification of knots. Every knot is either torus, hyperbolic or satellite (Thurston).
The Conway knot is not a slice knot (Piccirillo 2020).
Hairy ball theorem. Any continuous tangential vector field on $\Bbb S^{2n}$ vanishes somewhere.
Ropelength. The ropelength of a nontrivial knot is at least 15.66 (Denne, Diao, Sullivan 2006).

Logic, computability and computational complexity

Goodstein's theorem. (a) Every Goodstein sequence terminates at 0. (b) This is not provable in Peano arithmetic.
Cook's theorem. The Boolean satisfiability problem is NP-complete.
The other Cook's theorem – universality of Wolfram's rule 110. The 1D "elementary cellular automaton" called rule 110 by Wolfram, given appropriate initial conditions, is Turing-complete for an appropriate notion of "Turing-complete".
Mortal matrix problem. Given two 15 × 15 matrices, it is undecidable whether the monoid generated by those matrices and matrix multiplication contains the zero matrix (Cassaigne et al. 2014).
The Schröder–Bernstein theorem implies excluded middle (Pradic & Brown 2019).
Optimality of a disjoint-set data structure implementation. (a) Using path compression/splitting/halving together with union-by-size/rank for a disjoint-set data structure makes the amortised running time per operation $\Theta(\alpha(n))$ if there are $n$ elements to start with, where $\alpha$ is the inverse Ackermann function. (b) This is asymptotically optimal (Fredman & Saks 1989).
Greibach normal form. For every context-free grammar (CFG) there is an equivalent CFG where all rules are of the form $A\to aBCD\dots$ where $a$ is a terminal and the other letters represent nonterminals.
Life is omniperiodic. For every positive integer there exists an oscillator in Conway's Game of Life with said integer as period.

Number theory

Mihăilescu's theorem aka Catalan conjecture. 8 and 9 are the only two consecutive nontrivial perfect powers.
Green–Tao theorem. There are arithmetic progressions of arbitrary length consisting only of prime integers.
Størmer's theorem. (a) There are finitely many pairs of consecutive numbers that are both smooth with respect to any fixed set of primes containing 2. (b) There is an explicit algorithm to find all such pairs.
A hyperelliptic equation associated with rationally bracing a regular nonagon. If in $y^2=1+6a+24a^2+48a^3+144a^4+288a^5+192a^6$ both $y,a$ are rational, $a\in\{-1/2,0,1/4,3/2\}$.
Helfgott's theorem aka ternary Goldbach conjecture. Every odd number at least 7 can be written as the sum of three primes.
Correctness and polynomial running time of the AKS primality test.
The smallest Pisot–Vijayaraghavan number is the plastic constant, the unique real root of $x^3-x-1$.
For any fixed decimal digit there are infinitely many primes not containing that digit in their decimal expansion (Maynard).
Irregularity of distributions. There is no sequence of 18 real numbers between 0 and 1 such that the first $i$ numbers lie in different $i$-ths for $1\le i\le18$.
Baker–Stark–Heegner theorem. There are exactly 9 positive integers for which $\Bbb Q[\sqrt{-d}]$ has unique factorisation (class number 1).
Cannonball problem. The only numbers that are both square and square pyramidal are $1^2$ and $70^2$.
Mazur's torsion theorem. Torsion groups of elliptic curves over the rationals can only be cyclic of orders 1 to 12 except 11, or $C_2$ times a cyclic group of orders 1 to 4.
Rayleigh theorem on Beatty sequences. Given the Beatty sequence associated with an irrational number $r>1$, the Beatty sequence associated to $r/(r-1)$ is complementary in the sense that every positive integer appears in exactly one of the two sequences.
"Interesting" numbers. Call a number interesting if it is a semiprime $pq$ with $p\ne q$ and $pq+1=(\text{previous prime before }p)(\text{next prime after }q)$. Show that 14 and 21 are the only interesting numbers.

Probability

Memorylessness. The only discrete/continuous memoryless probability distributions are the geometric/exponential distributions respectively.
Raikov's theorem. If the sum of two independent variables is Poisson-distributed, so are each of the two summand variables.
Triangle enclosing fixed point in circle. In the unit circle centred on the origin fix a point $(x,0)$ with $0\le x\le1$. Now choose three points uniformly at random on the circle's circumference. Show that the probability of the triangle formed by the random points enclosing the fixed point is
$$\frac14-\frac3{2\pi^2}\mathrm{Li}_2(x^2)$$
where the special function is the dilogarithm.
Extreme value theorem. Given a sample of iid random variables, if the random variable corresponding to the sample maximum converges in distribution (after suitable normalisation) as the sample size tends to infinity, the limit distribution is either a Fréchet, Gumbel or Weibull distribution.
Cramér–Rao bound. Under suitable regularity conditions, any unbiased estimator of the parameter of a one-parameter probability distribution has variance at least the reciprocal of the Fisher information.
Secretary problem. The optimal solution to the secretary problem consists of rejecting the first $x$ applicants and then selecting the first new one that is better than all seen so far, for $x$ depending on the applicant pool's size $n$; $\lim_{n\to\infty}x/n=1/e$.
Cycle-following for freedom. (a) The cycle-following scheme for the 100 prisoners problem has a success rate approaching $1-\ln2$ as the number of prisoners tends to infinity. (b) This scheme is optimal (Curtin, Warshauer 2006).

Miscellaneous

Sharkovskii's theorem. Consider a continuous function $f$ from a real interval to itself. (a) If $f$ has a period $2^n$ cycle it also has period $2^m$ cycles for $m\le n$. (b) If $f$ has a period $k\cdot 2^n$ cycle where $k$ is an odd number greater than 1, it also has periods of all powers of two and period $k'\cdot 2^{n'}$ cycles where $k'$ is an odd number and $n'>n$ or $n'=n$ and $k'>k$.
Hearing the shape of a drum. The two ideal drums constructed by Gordon, Webb and Wolpert in 1992 – seen here – have the same eigenspectrum.

The mutilated chessboard has long history in formalisation. See https://www.andrew.cmu.edu/user/avigad/Papers/mutilated.pdf. There's also a nice discussion by Gowers, and my attempt at formalising following his rules in the domino_coverings branch of mathlib3.

Another curated list of theorems is https://people.math.harvard.edu/~knill/graphgeometry/papers/fundamental.pdf
Also see the discussion at https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/lots.20of.20theorems

I have a proof of number theory #13 Rayleigh theorem on Beatty sequences: https://github.com/int-y1/proofs/blob/master/rayleigh_beatty/rayleigh.lean
What happens to completed proofs?

I'd say PR it to mathlib! It certainly seems generally interesting enough to me

I have a proof of number theory #11 Cannonball problem: https://github.com/int-y1/proofs/tree/master/SquarePyramid
The main result is in all_sol.lean.

What happens to completed proofs?

For now you just get this in the main comment:

But what I really want is a page on the Lean community website analogous to Wiedijk's list.
I have also assigned the single enumeration of the 100 theorems.

The Johnson solids problem would absolutely be a huge pain. In fact, I think it's a bit unclear if there's even a "formal proof" of that at all, even for mathematical standards. See my StackExchange question here.


[EventRequest] Table 39 Purchase Line, function CopyFromGLAccount

Appreciate if the following event can be added in function CopyFromGLAccount of table 39
    local procedure CopyFromGLAccount()
    var
        IsHandled: Boolean;
    begin
        OnBeforeCopyFromGLAccount(Rec,xRec,CurrFieldNo,IsHandled);
        if IsHandled then
          exit;
        GLAcc.Get("No.");
        GLAcc.CheckGLAcc;
        if not "System-Created Entry" then
            GLAcc.TestField("Direct Posting", true);
        Description := GLAcc.Name;
        "Gen. Prod. Posting Group" := GLAcc."Gen. Prod. Posting Group";
        "VAT Prod. Posting Group" := GLAcc."VAT Prod. Posting Group";
        "Tax Group Code" := GLAcc."Tax Group Code";
        "Allow Invoice Disc." := false;
        "Allow Item Charge Assignment" := false;
        InitDeferralCode;
        OnAfterAssignGLAccountValues(Rec, GLAcc);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeCopyFromGLAccount(PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 49479.


list prioritize asynchronously

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#743  👈
#742
#741
#740
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alanvardy and the rest of your teammates on  Graphite


Dynamic basepath

Moving this here:

One blocking issue I've run into with the current Sapper is that I can't rewrite urls from various sites that we want to host a "whitelabel" version of our app on, because the basepath has to be set in stone at build time:
https://example.com/some-path/ <-- does not work
https://subdomain.example.com/ <-- works fine
rather than host a different app for people who want to mount it under a subpath, ideally basepath could be a runtime concern. However I don't know if this is feasible, but it's worth considering.

Cool. For me it is to support ipfs website both when served through an ENS domain or through a gateway with ipfs/ base path for example, both url point to the same exact content :
https://ipfs.io/ipfs/bafybeieeuq3av6jdys2q2zwhfv5hutcqejczr46wzjikd5vulfaxfi72r4/
https://jolly-roger.eth.link/
for the hash version, I have to compute at runtime the basepath since it is not possible to know the hash of an ipfs website at build time
https://ptb.discord.com/channels/457912077277855764/750388563354583071/771786495152357386

paths.base is baked into the app at build time. Changing this would likely need to be done in Vite: https://github.com/vitejs/vite/issues/2009

Yeah - this is super critical from my perspective, we have an ever growing range of people who use our main site with branding, and they hate subdomains because it's arguably not as good for SEO. Sapper doesn't support using a sub-path as the root without a totally separate build and deployment.

Pretty sure we could make it an environment variable

this is critical for deploying exported static files into github pages because generated urls for cuatom repos are https://{username}.github.io/{repository} without it assets will be fetched at root level instead of subpath

@blackshot in those cases, repository is known at build time. Just configure paths.base accordingly. This issue is about cases where the basepath isn't known at build time

sorry, my bad. i didn't understand it well.

To recap discussion elsewhere, environment variables solve the white-labelling problem in cases where pages are being server-rendered, but they don't solve the problem in cases where there are no environment variables (e.g. prerendering). For applications like IPFS, we (apparently — I know nothing about IPFS) don't know the basepath until the app is running in the browser.
Presumably we could construct the basepath by subtracting the initial pathname from location.pathname...

...then if location.pathname is something like /basepath/foo/bar/baz then we know that base is /basepath without needing to include that information in the HTML. Feels brittle but as long as you trust that pages and assets end up in the expected place relative to each other then it ought to work perfectly.
Throwaway thought: this could be useful in the context of i18n, where the basepath is a language identifier like /de or whatever.

This is affected by the issue described in #1155

By the way the method @Rich-Harris you describe in your comment is exactly how sveltejs-adapter-ipfs handle it currently :
It inject similar code directly in the html and it works nicely : https://github.com/wighawag/sveltejs-adapter-ipfs/blob/d52856d230796e09e560e183b7b0ddb9d7e08482/lib.js#L115
There are other problem that need to be tackled with to be able to have a static website completely independent of the path it will be hosted on.
For example font generated css currently use absolute path : https://github.com/sveltejs/kit/issues/1477

I updated my ipfs adapter repo with link to the various issues in svelte kit,
it describe what is missing in svelte-kit for proper support of ipfs (and other hosting platform that require basepath to be dynamic) : https://github.com/wighawag/sveltejs-adapter-ipfs
It currentl implements the solutions as a post-process steps and so it is currently very brittle.
I also setup a demo repo that uses the adapter succesfully : https://github.com/wighawag/sveltekit-ipfs-demo

@blackshot in those cases, repository is known at build time. Just configure paths.base accordingly. This issue is about cases where the basepath isn't known at build time

But then I cannot do npm run dev anymore because I prepend base to my redirects and links and this breaks it on localhost.

My application is a prerendered site which is deployed on a webspace at my Uni.
When I change the basepath to the subdirectory on that webspace where the app will be located, CSS works but the HTML links to the routes break (they link to root which 404's).
When I leave out the basepath, CSS breaks. Also I'd like to be able to keep using yarn dev.
I guess a solution for me could be what @KonradHoeffner is doing plus somehow checking for dev vs. prod and then prepend base depending on that.
It would be cool though if the whole thing was more or less location agnostic... I probably lack understanding why that is a daft idea, it's just what I expected going into the project.

No its perfectly reasonable. I made a start but work got in the way. I hope
to pick it up again as soon as I can.
On Wed, 26 May 2021 at 22:37, johannesrave @.***> wrote:

My application is a prerendered site which is deployed on a webspace at my
Uni.
When I change the basepath to the subdirectory on that webspace where the
app will be located, CSS works but the HTML links to the routes break (they
link to root which 404's).
When I leave out the basepath, CSS breaks. Also I'd like to be able to
keep using yarn dev.
I guess a solution for me could be what @KonradHoeffner
https://github.com/KonradHoeffner is doing plus somehow checking for
dev vs. prod and then prepend base depending on that.
It would be cool though if the whole thing was more or less location
agnostic... I probably lack understanding why that is a daft idea, it's
just what I expected going into the project.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sveltejs/kit/issues/595#issuecomment-849137150, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABVORIZPR5WTT6LMOXIY33TPVS2LANCNFSM4ZUI2VXA
.

--

ꜽ . antony jones . http://www.enzy.org

When I change the basepath to the subdirectory on that webspace where the app will be located, CSS works but the HTML links to the routes break (they link to root which 404's).

I have the exact same problem now. i am just trying to deploay a svelte kit app with adapter-node to mydomain.com/svelteapp and unfortunately all links are broken. is this here the correct ticket however for that? because as far as i understand it, this ticket goes further and wants to fix dynamic basepath during rendering, whereas this problem i am facing is merely lack of considering the base path in the router when navigating.

I wanted to get the dev server and the uploaded build to work in the setup for my university-project.
I'm checking for dev now with this env-variable, as 'dev' doesn't work in svelte.config.js,
then setting base depending on that.
import adapter_static from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import path from 'path';

const dev = process.env.NODE_ENV == 'development';
const base = dev ? '' : '/path/on/server';

/** @type {import('@sveltejs/kit').Config} */
const config = {
    preprocess: preprocess(),

    kit: {
        adapter: adapter_static({
            // default options are shown
            pages: 'build',
            assets: 'build',
            fallback: null
        }),
        target: '#svelte',
        paths: {
            base: base
        }
    }
}

export default config;

Then I import base from other components/pages and prefix my links with it. This works, if I remember to set it on all the links:

Like I said, I'm not sure I'm qualified really to discuss this stuff, but just saying this works for me if anyone else is looking for a workaround and finds this.

@johannesrave of course for programmaticaly invoking the navigation it works and is one workaround. however all static links like  would either not work or need additional hacks like  - so possible yes, but not really maintainable or "sveltesque" IMHO :)

I absolutely agree, I'm just glad it's running for the moment :P
Also there are two things in this, I think.
One being the svelte-kit basepath so CSS and stuff/assets are found, which is what you CAN set in paths.base, even though one needs to check for dev env manually.
The other issue are links in the markup.
Maybe in the workaround I could solve the second one better using a conditional -tag in __layout instead of prepending base to every single page-link... playing with that now. Then it would be only the one manual path you have to maintain.

Came here when realizing I need to prefix all URLs with '/static/' or replace '/./' with '/static/' for using SvelteKit builds with Python (with the Flask framework). I put static assets in static/static/ in the SvelteKit app dir to get those right at least (so those will resolve to mydomain.com/static/... after build). But I need to customize the other URLs for prod builds. I know this issue is about dynamically handling basepath during runtime, but hoping to at least have static basepath configurable at some point

not fully caught up on this thread but wanted to add a further thought: apps that expect the basepath to be something specific are liable to break when they're archived. The Wayback Machine has URLs like https://web.archive.org/web/20200331000251/https://www.yoursite.com/, and naturally that causes stuff to break. I've been bitten by this today (though not by a SvelteKit app).
If you're doing SSR that's not necessarily catastrophic — it means that the router won't fire, but hopefully at least your content and styles will behave correctly. But it'd be a hell of a lot better for future historians if client-side routers were designed with portability in mind.

I think, at least for the assets it is very important to be able to set the base path to CDN during runtime.
In webpack case we are using https://github.com/agoldis/webpack-require-from and it is a huge help.
When you have a template repo that you clone and then do a quick project from, deploy on a server and you do not know the CDN's host beforehand it saves a manual labor, writing docs for it and some brain power, because there is nothing to remember.
Keeping CDN url in the envs/package.json is suboptimal to say the least, especially when you have multiple environments to deploy to (qa, staging, prod), because you have to suddenly have 3 envs in your repo AND build three times to deploy to them. Which is a waste of CI time and dev time, on waiting (ergo, money).
Example from webpack usage is also a very concise one:
webpack.config.js
 new WebpackRequireFrom({
      variableName: 'window.__CONTEXT__.cdnUrl',
    }),

Template:

You can already set the cdn/assets url in sveltekit config. This is about
basepath which relates to the path which the application itself runs from.
Setting things on the window object is fine for clientside but won't solve
SSR, so the we pack solution you posted won't work for sveltekit. I'm not
100% sure how secure it is either - it strikes me that loading a malicious
clientside app might be made trivial by overriding this variable?
On Sun, 19 Dec 2021 at 15:36, Paweł Kowalski @.***>
wrote:

I think, at least for the assets it is very important to be able to set
the base path to CDN during runtime.
In webpack case we are using
https://github.com/agoldis/webpack-require-from and it is a huge help.
When you have a template repo that you clone and then do a quick project
from, deploy on a server and you do not know the CDN's host beforehand it
saves a manual labor, writing docs for it and some brain power, because
there is nothing to remember.
Keeping CDN url in the envs/package.json is suboptimal to say the least,
especially when you have multiple environments to deploy to (qa, staging,
prod), because you have to suddenly have 3 envs in your repo AND build
three times to deploy to them. Which is a waste of CI time and dev time, on
waiting (ergo, money).
Example from webpack usage is also a very concise one:
webpack.config.js
new WebpackRequireFrom({
variableName: 'window.CONTEXT.cdnUrl',
}),
Template:

—
Reply to this email directly, view it on GitHub
https://github.com/sveltejs/kit/issues/595#issuecomment-997412465, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABVORL6AMFEVZUPE5SGLB3URX3W5ANCNFSM4ZUI2VXA
.
You are receiving this because you commented.Message ID:
@.***>

--

ꜽ . antony jones . http://www.enzy.org

Why are absolute URLs even required in the first place? I am mainly not a frontend developer, but when I do create websites, I always use relative paths like import x from '../MyClass'; and I have never had a problem with that. Wouldn't that solve all those problems without requiring any kind of configuration?

@KonradHoeffner Im trying to use relative urls as well, im pretty fresh to SvelteKit, still experimenting with outputs (im using static site generator adapter) and how it can be hosted on our stack, but i remember having issues with webpack (hence plugin usage - it tells webpack where to look for async loaded chunks). Maybe im raising alarm over nothing and it will turn out to be unnecessary
@antony no security issues there. I dont know what "a malicious clientside app" is/could be, but if it had access to the website JS context changing asset variable is the least of concerns of the user at this point ;)

We aren't talking about paths used at development time. We are talking
about the url that the html loads the javascript assets from and considers
the browser "Base url". Right now you can't serve the same built
application at https://example.com and https://example.com/some/path - it
just won't work.
On Mon, 20 Dec 2021 at 07:41, Konrad Höffner @.***>
wrote:

Why are absolute URLs even required in the first place? I am mainly not a
frontend developer, but when I do create websites, I always use relative
paths like import x from '../MyClass'; and I have never had a problem
with that. Wouldn't that solve all those problems without requiring any
kind of configuration?
—
Reply to this email directly, view it on GitHub
https://github.com/sveltejs/kit/issues/595#issuecomment-997672420, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABVOROOWFQQ74VWMED3O23UR3M3ZANCNFSM4ZUI2VXA
.
You are receiving this because you commented.Message ID:
@.***>

--

ꜽ . antony jones . http://www.enzy.org

Where to load chunks from can be defined in kit config. But the application
still needs to know it's own path. That can't be relative - yet.
I'll try to build an example as soon as I get a chance. It will help both
with explaining the issue, and with working on a solution.
On Mon, 20 Dec 2021 at 15:44, Paweł Kowalski @.***>
wrote:

@KonradHoeffner https://github.com/KonradHoeffner Im trying to use
relative urls as well, im pretty fresh to SvelteKit, still experimenting
with outputs (im using static site generator adapter) and how it can be
hosted on our stack, but i remember having issues with webpack (hence
plugin usage - it tells webpack where to look for async loaded chunks).
Maybe im raising alarm over nothing and it will turn out to be unnecessary
@antony https://github.com/antony no security issues there. I dont know
what "a malicious clientside app" is/could be, but if it had access to the
website JS context changing asset variable is the least of concerns of the
user at this point ;)
—
Reply to this email directly, view it on GitHub
https://github.com/sveltejs/kit/issues/595#issuecomment-998040647, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABVORJGYM7OCGV2NFGKXULUR5FMTANCNFSM4ZUI2VXA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--

ꜽ . antony jones . http://www.enzy.org

I dont know what "a malicious clientside app" is/could be

Suppose I can pass an unsanitised variable to your app. A line of js which
would execute. I can spend a long time developing a worthwhile exploit
based on your existing code, or, I can trivially override a variable to
point to my own copy of your app's clientside code.
Both are bad but one is significantly worse.
I don't know how normal it is to define the app's path as a global
variable, but it seems like a very easy exploit to me, exploitable with a
very commonly made mistake.
On Mon, 20 Dec 2021 at 15:44, Paweł Kowalski @.***>
wrote:

@KonradHoeffner https://github.com/KonradHoeffner Im trying to use
relative urls as well, im pretty fresh to SvelteKit, still experimenting
with outputs (im using static site generator adapter) and how it can be
hosted on our stack, but i remember having issues with webpack (hence
plugin usage - it tells webpack where to look for async loaded chunks).
Maybe im raising alarm over nothing and it will turn out to be unnecessary
@antony https://github.com/antony no security issues there. I dont know
what "a malicious clientside app" is/could be, but if it had access to the
website JS context changing asset variable is the least of concerns of the
user at this point ;)
—
Reply to this email directly, view it on GitHub
https://github.com/sveltejs/kit/issues/595#issuecomment-998040647, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AABVORJGYM7OCGV2NFGKXULUR5FMTANCNFSM4ZUI2VXA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--

ꜽ . antony jones . http://www.enzy.org

Ok, after couple hours of trying to make it work i think the resulting issue is the usual one, described above.

Im generating static site.
I want to use assets/async chunks from different domain
Even if i put images in static/ and hardcode paths (like recommended in one of GH issues), JS loads them from relative path to app origin (not cdn).

Test.svelte

Resulting html is correctly, the same:
So i ran find/replace and deployed again, to use CDN version, so html looks now:

Now browser loads first CDN versions, then relative versions (doubling requests). Not always both are downloaded.

What im trying to achieve, and probably not only me, is to avoid loading assets from the domain with cookies, with no CDN. Thats why i would like to setup cdn path in runtime for dynamic assets, including images.

There are a ton of comments here. I've updated the issue description to clarify that this would likely need to be handled in Vite: https://github.com/vitejs/vite/issues/2009. Anyone who's interested can take a look at sending a PR for that issue

Hi, is there any update on this issue ?
I see that it is not in the list of things to go for an 1.0 release (https://github.com/sveltejs/kit/issues/2086)
Just my opinion but it feels like this problem need to be addressed early as it touches on several assumption that might be harder to rectify later.

Happy to describe in more details the requirement if needed.
As I mentioned here : https://github.com/sveltejs/kit/issues/595#issuecomment-842634581
I gathered a list of things needed in svelte-kit for proper support of ipfs (and other hosting platform that require basepath to be dynamic) here :  https://github.com/wighawag/sveltejs-adapter-ipfs

@wighawag I suppose it's have already support. You should just try relative paths in base.

Hi @stalkerg I just tried porting my app to use latest vite + svelte kit and it does not lseems ike it solve all the issue with relative basepath
Maybe I did not set all the options required ? If so which are they ?
As I got it setup, the adapter-static generate demo.html instead of demo/index.html for example
and I have issues with CSS.
You can try my app  with the latest svelte-kit in this branch : https://github.com/wighawag/jolly-roger/tree/latest-svelte-kit
It is a mono repo but you can try the web part only by doing the following:
generate the build
git clone git@github.com:wighawag/jolly-roger.git
cd jolly-roger
git checkout latest-svelte-kit
pnpm I
pnpm web:build staging

serve it via an ipfs gateway emulator:
pnpm web:serve

@wighawag yeah, vite side it's only one piece in the puzzle.
https://github.com/sveltejs/kit/labels/paths.base I think issue #4250 is more relevant to your case.

I tried again, reading the whole svelte-kit from a to z and that's where I am stuck:
I cannot set paths: { base: './' } as it is not allowed and if I set paths: { base: '' } I get issues with css, js files being refered as /_app even if the hosting is done in a sub folder.

1.0.0-next.419 was released to make better use of relative asset paths: https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md#100-next419
It will now use ./ by default:
https://github.com/sveltejs/kit/blob/7b305af71d1abbe9913b076a57bf59ed0c1e0e31/packages/kit/src/vite/build/utils.js#L95
That being said, this issue is still open :smile: So I wouldn't expect it to work just yet...

@benmccann oh ok, I was confused with @stalkerg comment, I thought it was already supposed to work :)
Just tried the latest and the CSS and js works for my demo. Navigation does not work, but I might have added some custom stuff. I ll report back

Ok, looking further, there seems to be indeed issue with navigation

will always point to the root folder.
Also using import {base} from '$app/paths'; base is always the empty string, even when the web page is fetched from a sub folder.

Just lightly thinking about this, how does it relate to the information in the HTML that's being served?
I mean the <base> tag ?
That should be present and can be retrieved via Node.URI ?
Or is this the part that one may want to insert dynamically during page rendering?

Quite disappointed to see this issue get moved to post-1.0 😔

Hope this will be prioritised among all.

Unfortunately it doesn't seem like the incentives for Svelte SPA devs and Vercel are well aligned. Vercel operates an edge network that enables server side rendering. If SvelteKit has a really good story around building SPAs, from Vercel's perspective,  all it does is provide a means for apps to migrate away from Vercel's services.
The missed opportunity here is that there is an audience of developers that are building decentralized applications to deployed to Arweave, IPFS, or other decentralized storage protocol where SSR is not a possibility. They are not users of Vercel's services (nor is it an option for them to be) but would be passionate supporters of Svelte in their respective domains.

@DanMacDonald team does not have enough resources; many of my issues are also in post-1.0 now. I suppose it's also my issue, I mean, I do have not enough time to make an excellent PR to cover my cases (but I can).
Anyway, I believe any PRs to solve this issue will be welcomed.

There's no grand conspiracy here. Myself and the majority of the maintainers don't work at Vercel. There's ~350 open requests with 166 additional filed each month, so it's just that there's no guarantee we'll address the one that you happen to be most interested in amongst all the various issues that are out there as there's lots for us to keep up with. But PRs are welcome!
I am doing a bit of base path fixing at the moment and just sent a few fixes in addition to some base path fixes in vite-imagetools as well. This is one of the more advanced use cases, but we're getting more of the basics working now.
@wighawag I think https://github.com/wighawag/sveltejs-adapter-ipfs#readme is a bit outdated. If you could update sveltejs-adapter-ipfs to SvelteKit 1.0 and let us know what is still required that would be helpful
The assets are now referenced via relative path which seems like most of what was needed here:

People are talking about quite a few different things in the comment thread here and it's gotten really hard to follow. I'm not exactly sure what's left to do, but I think the main change that's left is to do something like Rich mentioned here: https://github.com/sveltejs/kit/issues/595#issuecomment-809859449.

@blackshot in those cases, repository is known at build time. Just configure paths.base accordingly. This issue is about cases where the basepath isn't known at build time

This is not always the case.
For example, if you are distributing your static content to various people, they need to be able to host it in their own way.
I have this use case.

@benmccann Thanks for looking into it.
I did not yet found the time to update the ipfs-adapter for 1.0 but I just got the basic demo setup with an ipfs node emulator to showcase the issues.
https://github.com/bug-reproduction/svelte-kit-static-ipfs
Note though that this only highlight some of the issues as more complex scenario will likely exhibit more

For anyone struggling to find a workaround, I've had a little luck with using the static adapter and an empty base path. I can't get sveltekit's routing to work, but I can use a different client-side router.
In svelte.config.js (among other config settings) -
{
  kit: {
    adapter: staticAdapter(),
    paths: { base: '' }
  }
}

and in the outer +layout.ts
export const prerender = true;
export const trailingSlash = 'always';

With IPFS, the base folder name is the "content identifier" and  based on a hash of the site contents. So you don't know it until after build. But... you do know that it is going to be one-level deep and follow a certain pattern.
I can use a regex pattern in my top level layout to extra the base path from the window.location and then use that to set up the client-side routing.
Maybe an adapter could do something similar with a regex pattern and get sveltekit's router working. Maybe it could inject a top-level runtime request handler that determines the base path and makes it available in $app/paths/base. Maybe it's more complicated than that though.

hi @rmarscher, thanks for chiming in
I just tried adding paths: { base: '' } in the demo just posted above (https://github.com/bug-reproduction/svelte-kit-static-ipfs) but the issues mentioned there remain.
Re adapter, have a look at the adapter I created here : https://github.com/wighawag/sveltejs-adapter-ipfs
It is now quite old and might be outdated to work with v1 but it perform the IPFS base path extraction you mention and inject it. My next step is to figure out what of the processing step I can remove now that svelte-kit is in v1.

Just some update after trying to get sveltejs-adapter-ipfs works with v1
While I can continue to inject the base at runtime and have routing works with IPFS, I get issues with server.ts load function (which works fine with basic adapter-static and prerender), so this seems to be something to consider too when handling dynamic base path too. Planning to update the demo to add this server load function (which I normally use for my statically generated blog) to add to the requirements the solution we want to come up with should support

I continued my effort and got my adapter working with sveltekit 1.0 again
It is available on npm : https://www.npmjs.com/package/sveltejs-adapter-ipfs
But note that it is not full proof.
I documented what svelte kit need to fix in details here : https://github.com/bug-reproduction/svelte-kit-static-ipfs/tree/fixes#fixes
I am not familiar with sveltekit code base to fix it myself but more than happy to help

@sveltejs/kit version 1.9.0 now has improved dynamic base support. Thanks @wighawag for the PR! I'm not sure if there's anything left to be done or if this issue should be closed. Please let me know. Thanks!

@wighawag a true champion 🙇♂

Going to go ahead and close this issue — if there are bits that we've missed, please open new ones!

Thanks @Rich-Harris and @benmccann for implementing it! This is a really cool feature for a framework like sveltekit to have.

@wighawag a true champion bowing_man

@DanMacDonald if you look at the commit history my contribution was minuscule but happy to be part of it :)

Not just recent commits, your static-adapter for IPFS was also a big help.  🍻

@janabimustafa I don't have a good grasp of your issue, but please open a new bug/feature request as appropriate. A comment on a long-running closed issue like this will easily get lost.

I read through this thread and the linked docs at https://kit.svelte.dev/docs/configuration#paths, but I don't think this solves my problem. My problem is that I want to deploy my site on a dynamic subdirectory. For example I would like to deploy the site at https://example.com/pr/1234352 where 1234352 is autogenerated after the site is built. I don't see a way to do this with the current features of svelte-kit and adapter-static.
This may seem like a niche issue, but I am not the only one having it (https://www.reddit.com/r/sveltejs/comments/vd4qcu/how_to_run_svelte_app_from_unknown_sub_directory/).
Ideally I would like to express to svelte to ignore the first two paths /pr/1234352, but I don't see a way to do this.
Maybe the paths.relative is the solution I am looking for, but the docs are not clear as to how I could use this to achieve what I need. Can anybody point me in the right direction?

@msdrigg  what is your issue exactly ?
I have my website work with it on ipfs :

https://jolly-roger.eth.limo/
https://ipfs.io/ipfs/bafybeiaiqn4mw352ckq7kxxs6knltgqhbblky6o6hmzh3f7m6xywthwesa/

code : https://github.com/wighawag/jolly-roger

Okay relative paths solved my issue.
I was still having an issue due to https://github.com/sveltejs/kit/issues/10235
Thank you for pointing me to your source I could reference.


Example Model "RBAC with deny-override" in Casbin Editor Displays Error Message

Can you give an example?

Hi @itsbentsai , I have tried it with no error:

@itsbentsai @hsluoyz Thanks for the report. Fixed in: d3abed5.


fix: Notification Types for download cancelled & completed added.

Closed #2484
Issue in brief :
After starting a new download when we cancel the download, we get a notification that the download has finished, which can be misleading.
Suggested Fixes / Changes:
When the download item triggers the done event, it can have only 3 states completed, cancelled, interrupted.
Hence, the possible fix would be to show a different notification when the download is not completed i.e. the download is in the above remaining two states.
Demo of the above suggestion :

Do you think that we need a download cancelled notification?
Maybe a failed one, but cancelled I think that the user is already aware, right?

Oh now I got it. If you cancel it shows the complete notification.a
You can see to add a failed notification on the future.


How do change this to use unity gaming services for the basic multiplayer part?   and also host my own server?

How do change this to use unity gaming services for the basic multiplayer part?   and also host my own server?

To do that, you would have to replace the Photon Realtime implementation with Unity gaming services implementation. The whole project is already implemented using Netcode for gameobject so the part that needs to be updated is the transport layer.
The bulk of the changes would be in NetworkLayer.
You would also have to consider a different solution for Voice chat.


Neovim plugin for tmux panel navigation

Summary
This neovim plugin will allow you to nagivate through nvim splits and tmux panels splits seamlessly using only one set of key bindings

Good stuff. Thanks!


A wrong comment In /python/mxnet/io.py ?

In /python/mxnet/io.py ,  DataIter class
the comment is:
`
def getdata(self):
    """Get data of current batch.
    Returns
    -------
    data : NDArray
        The data of current batch.
    """
    pass

def getlabel(self):
    """Get label of current batch.
    Returns
    -------
    label : NDArray
        The label of current batch.
    """
    pass

`
When I try to write a custom DataIter, I return a NDArray object in these function
then a  Shape inconsistent error will occur., like:
MXNetError: Shape inconsistent, Provided=(100,600), inferred shape=(100,)
it spend my whole afternoon to found the solution:
return [NDArray]  # a list of NDArray ;   poor me

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


added JSON representation to all nodes in documentation

Description
Added JSON representation of every node within its documentation page. I think this helps a lot to understand what the code under the hood is doing and helps the user understand and work with the software better.
Changes

Add a block of JSON representation code to every node documentation page.
formatted the process node table
fixed broken links within data.py

formatted the table as well

Tests
Known Issues

The JSON has to be updated manually every time something changes
Some of the JSON can be better picked to easier demonstrate how the code works to the user

However, what it has currently I think helps a lot too

Screenshots

click to view the screenshots

That actually isn't poly (styrene) that is the SMILES string for styrene.
But since SMILES is a subset of BigSMILES, that should be fine. This is BigSMILES for poly(styrene) [H]{[>][<]C(C[>])c1ccccc1[]}
I also look it up every time, just to be sure.

done! ✅
let me know if you find any other upgrades and I can add them pretty quickly


Avoid gpg temporary files colliding

What type of PR is this? (check all applicable)

[ ] Refactor
[ ] Feature
[x] Bug Fix
[ ] Optimization
[ ] Content Update

Category

[ ] zopen build framework
[x] zopen package manager
[ ] Documentation
[ ] CI/CD
[ ] Tools

Description

My system had two zopen installations. The gpg files were written to the same location which I had no access to.
Got this:
rm: FSUM9195 cannot unlink entry "/tmp/tmp_gpg_verify/pubring.kbx": EDC5111I Permission denied.
rm: FSUM9195 cannot unlink entry "/tmp/tmp_gpg_verify/pubring.kbx~": EDC5111I Permission denied.
rm: FSUM9196 cannot remove directory "/tmp/tmp_gpg_verify": EDC5111I Permission denied.

This will resolve it
Related Issues

Related Issue #
Closes #

[optional] Are there any post-deployment tasks or follow-up actions required?

/run tests


Parse error

I want to make a live stream in unity.
So, I download app put  (youtube livestream php ,client php , youtubetest php ) in webftp.
There is something wrong
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /raid/vhost/ddtmap.com/www/liveStream/Client.php on line 95
the line95 is     'application_name' => '',
How can I fix  it?

Please check your PHP version. The README states that you need PHP 5.4.0 or higher, which was released in 2012.
You can get the same error if you paste the content of ./src/Google/Client.php into an online syntax checker for PHP 5.3.

Thanks for this, @mike42
@twenttwo Yes, try using the v1-master branch instead:
git clone -b v1-master git@github.com:google/google-api-php-client.git


Terminal full screen shortcut or settings

Hi there's no setting for this. You can open a terminal in a new window and size it to be full screen.

ThankYou


UPD: covid19 notebooks manually

Trajectory notebooks didn't run fully and current pipeline is broken, sending a manual update in.

hmm will look into this


Exoplayer is not switching to Dolby Atmos representation from Dolby 5.1

Hi,
We are experiencing issues with ExoPlayer 2.18.1. We are using it for our web app on Android devices like smart TVs with Android or set-top boxes like Firestick 4K.
We are testing DASH streams that have audio tracks encoded with EC-3, which include Dolby Atmos.
This is how the AdaptationSet looks in the manifest:
<AdaptationSet id="2" group="1" contentType="audio" lang="en" minBandwidth="384000" maxBandwidth="576000" segmentAlignment="true" audioSamplingRate="48000" mimeType="audio/mp4" codecs="ec-3" startWithSAP="1">
      <AudioChannelConfiguration schemeIdUri="tag:dolby.com,2014:dash:audio_channel_configuration:2011" value="F801"/>

and we have two representations for it:
<Representation id="audio_eng_1=384000" bandwidth="384000">
      </Representation>
      <Representation id="audio_eng_1=576000" bandwidth="576000">
        <SupplementalProperty schemeIdUri="tag:dolby.com,2018:dash:EC3_ExtensionType:2018" value="JOC"/>
        <SupplementalProperty schemeIdUri="tag:dolby.com,2018:dash:EC3_ExtensionComplexityIndex:2018" value="16"/>
      </Representation>
    </AdaptationSet>

After starting the stream on a device capable of streaming Dolby Atmos, I can see that Dolby Atmos is set for the first second of the stream, and then it downgrades to 384000 Representation and never changes again. What might be the reason? We were checking it on various devices, verified that they are able to stream Dolby Atmos audio, and from what I observed, the track is being selected correctly. It is selecting track, with two formats:

Not quite sure what might be wrong?

Hi @TomaszKowalik,

After starting the stream on a device capable of streaming Dolby Atmos, I can see that Dolby Atmos is set for the first second of the stream

Do you mean that the player initially selected to play the Dolby Atmos but soon it was switched to Dolby 5.1 later? It sounds like the behavior of the adaptive selection based on the current network conditions and the state of the buffer.
But if you still think there is something not right, could you please send us the bug reports. If you're unable to share it publicly, please send them to<EMAIL_ADDRESS>with the subject Issue #832. Please also update this issue to indicate you've done this, and we can take a closer look.
Thanks!

Hi @tianyif,  thanks for the answer! Yes, but the problem is that after it downgrades to Dolby 5.1, it never scales up again to Dolby Atmos, regardless of network conditions. And I would rather expect that it initially selects the Dolby 5.1 track and then scales up to Dolby Atmos.
Also, when we are testing the same assets on different platforms with different players under the same network conditions, they are scaling up correctly to Dolby Atmos. I created the bug report and sent it to you via email.

Hi @TomaszKowalik,
Except for the network conditions, we also evaluate if there are enough buffered data to switch up the quality. Originally I thought if the live offset you set was too short, but with realising you were using 2.18.1, which is a version already includes an improvement for all the live offsets, so there might be the other reason (not sure if still related to the buffered data) that causes your issue. To investigate this, would it be possible for you to send us your stream so we can take a closer look in the code?
And for the first switching down after starting, we can check if there were load errors on the initial atmos track, as this might exclude that track from being selected for a while. But I didn't find the EventLogger logs from your bug report, could you please send us another one including them?


cmd/compile: Compiler Type Inferencing on Methods With Narrowing Types

What version of Go are you using (go version)?

$ go version
go dev branch

Does this issue reproduce with the latest release?
Yes, on go tip
What did you do?

There are two scenarios here.
Scenario 1:
https://go.dev/play/p/z_69dFItT4D?v=gotip
// You can edit this code!
// Click here and start typing.
package main

import "fmt"

type Thing[T any] struct {
	A T
}

func (t Thing[T]) PrintThing(inputParam int) {
	fmt.Printf("Print thing 'self': %v\n", t)
	fmt.Printf("Print thing param: %v\n", inputParam)
}

func (t Thing[int]) PrintThing2(inputParam int) {
	fmt.Printf("Print thing 2 'self': %v\n", t)
	fmt.Printf("Print thing 2 param: %v\n", inputParam)
}

func main() {
	one := Thing[int]{}
	two := Thing[string]{"Two"}

	one.PrintThing(1)
	one.PrintThing2(1)

	two.PrintThing(1)
	two.PrintThing2(1)     // Would expect a compiler error saying PrintThing2 cannot be called using variable two because types Thing[int] and Thing[string] do not match.
        // Comment out the line above to see the result of the next line.
	two.PrintThing2("str") // Looking past the expected behavior, the inputParam type is no longer correct. It should be an int but for some reason only accepts strings
}

// When ```twoPrintThing2(1)``` is not commented out:
// ./prog.go:29:18: cannot use 1 (untyped int constant) as string value in argument to two.PrintThing2
//
// Go build failed.
//
// When ```twoPrintThing2(1)``` is commented out:
// Print thing 'self': {0}
// Print thing param: 1
// Print thing 2 'self': {0}
// Print thing 2 param: 1
// Print thing 'self': {Two}
// Print thing param: 1
// Print thing 2 'self': {Two}
// Print thing 2 param: str       <-- This demonstrates secondary issue
//
// Program exited

Scenario 2:
https://go.dev/play/p/PNQ2bWh3BO-?v=gotip
// You can edit this code!
// Click here and start typing.
package main

import "fmt"

type Thing[T any] struct {
	A T
}

func (t Thing[T]) PrintThing(inputParam int) {
	fmt.Printf("Print thing 'self': %v\n", t)
	fmt.Printf("Print thing param: %v\n", inputParam)
	intAsArg(inputParam)
}

func (t Thing[int]) PrintThing2(inputParam int) {
	fmt.Printf("Print thing 2 'self': %v\n", t)
	fmt.Printf("Print thing 2 param: %v\n", inputParam)
	intAsArg(inputParam)
}

func intAsArg(v int) {
	//
}

func main() {
	one := Thing[int]{}
	two := Thing[string]{"Two"}

	one.PrintThing(1)
	one.PrintThing2(1)

	two.PrintThing(1)
	two.PrintThing2(1)     // Would expect a compiler error saying PrintThing2 cannot be called using variable two because types Thing[int] and Thing[string] do not match.
}

// ./prog.go:20:11: cannot use inputParam (variable of type int /* with int declared at ./prog.go:17:15 */ constrained by any) as int value in argument to intAsArg
// ./prog.go:35:18: cannot use 1 (untyped int constant) as string value in argument to two.PrintThing2
//
// Go build failed.

What did you expect to see?
For scenario 1: A compiler error saying PrintThing2 cannot be called using variable two because types Thing[int] and Thing[string] do not match. I can understand how this scenario would be an unsupported edge case because of the complications of having to dynamically filter method bindings upon struct creation, but if methods really are just functions, then I could also see this being a reasonable feature to have implemented. If this feature is allowed, then there is a secondary issue where the inputParam argument changes type.
For scenario 2: This builds off of scenario 1. In this case the compiler throws a rather confusing error saying that an int is not an int. I do not see why the inputParam variable would be constrained by any when it is strictly declared as in int. I would expect to be able to call intAsArg without issue. Of note is the same error regarding the inputParam changing its type is present.

Thanks for reporting. Does this also happen in Go 1.20 and/or 1.19, or did something change at Go tip only?

This doesn't mean only apply when the type is int. It means use int as the name of the type parameter, shadowing the predeclared int type.
func (t Thing[int]) PrintThing2(inputParam int) {}
// is equivalent to
func (t Thing[T]) PrintThing2(inputParam T) {}

see also #48123

@seankhliao Any sense for whether we have seen this confusion enough for a vet check?

There's also a faq entry https://go.dev/doc/faq#types_in_method_declaration
There are some reports
#60017 #58100 #57182 #52058 #49984 #48813
But doesn't appear to be common in committed code:
https://github.com/search?type=code&q=language%3AGo+%2F^func+\([^)]*\[((\[\])%3F(u%3Fint.%3F.%3F|float..|byte|rune|string|bool)(%2C+)%3F)%2B\]\)+.*%2F
So maybe it is more of an education problem, since you're unlikely to do it once you know it doesn't work?


doc(Install): update install document

update install document

Description
close #918

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: ArgoZhang:x: Argo ZhangArgo Zhang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


added stricter scalar type checks

I have been researching a number of ways to increase the strictness of graphql scalar types (which are loose by default - with no stricter checks) and I came unto a novel set of packages that do just this and I wanted to suggest these changes that will allow for stricter type/validation checks at runtime on a graphql server using the pattern and minimum, maximum and nullable attributes of the Schema Object.

@isocroft Wow! These are some seriously cool changes! I would like to get @ErikWittern opinion on these changes as well.

@isocroft I think this is a really nice PR, thank you very much! I love the idea of having stricter checks for scalars, and also making use of the information about the nature values that could already be defined in an OpenAPI document.
I wanted to ask about the choice of https://github.com/joonhocho/graphql-scalar as a new dependency, though. There seem to be more popular GraphQL scalar libraries, which seem more actively maintained, like https://github.com/Urigo/graphql-scalars. Would they offer the same functionality required by this PR?
The current dependency also introduces a peerDependency for https://github.com/Microsoft/tslib. tslib itself has no dependencies, and comes from the makers of TypeScript, so I don't have many concerns about it. Just would like to understand the choice of https://github.com/joonhocho/graphql-scalar better.

@ErikWittern I was also a bit concerned about the popularity of this library and came across graphql-scalars. I do not think graphql-scalars can be used as a replacement, however. The purpose of this PR is to validate values against the schema. graphql-scalars doesn't provide the flexibility to do that. Instead, it just provides a list of predefined scalars.
I am also wondering if this PR is entirely necessary as I think we should assume that the OAS is true. I do not think our users expect us to validate the API itself. If the API does not follow the OAS exactly, I think we should just return the response to the best of our ability. Do we really want to throw an error? Do we really want to expose information about the GraphQL backend to users? Do not take this the wrong way though. I think this PR is really cool and I am simply wondering if it should be added as an option rather the default behavior.

You are right @Alan-Cha . I couldn't work with graphql-scalars as it didn't fit. graphql-scalar is such a nice fit for this because of the flexibility and adaptability it brings for the use-case in this PR @ErikWittern . I had to go for a middle ground option. Please find updates to my PR here. Also I think all tests pass now.

@isocroft Thank you for this awesome PR!!! It's always so nice to see people using and even trying to improve OtG! I was aware that there was a lot of data that we weren't taking advantage of in the OAS but I wasn't sure how we could. That's why I think this PR is super cool.

@Alan-Cha @ErikWittern please re-review and merge when you are free. Thanks for everything

@isocroft Thanks for the update. I left a few comments in the code, mostly about formatting / comments.
Besides that, as @Alan-Cha also suggested, this PR should include tests. Not only to make sure it does what it intends to do, but also as another means of documenting the new functionality. Would you be willing to add them?


Reduce noise in playwright report

Hello, thanks for putting this together. It's nice to have a tidy fixture-based MSW integration.
I'm seeing a fairly noisy output within my playwright reports that's generated from playwright-msw. Is it possible I've got something configured incorrectly or is there a way to prevent playwright-msw from generating so much noise?
I'm seeing several screens of the following in each of my playwright reports, which dwarfs the actual steps taken within the individual spec:

My test helper looks like:
import { test as base, expect } from '@playwright/test';
import { createWorkerFixture } from 'playwright-msw';
import type { MockServiceWorker } from 'playwright-msw';

const test = base.extend<{
  worker: MockServiceWorker;
}>({
  worker: createWorkerFixture(),
});

export { test, expect };

The spec in question (login.spec.ts) is pretty barebones:
import { expect, test } from '../helpers/test';
import { rest } from 'msw';

const user = {
  name: 'John Doe'
}

test('user can log in', async ({ page, worker }) => {
  await worker.use(
    rest.post('/auth/login', (_req, res, ctx) => {
      return res(
        ctx.status(200),
        ctx.json({
          success: true,
          data: user,
        }),
      );
    }),
  );

  await page.goto('/');

  const loginBtn = page.getByText('Log in');

  await expect(loginBtn).toHaveAttribute('href', '/login');

  await loginBtn.click();

  await page.getByLabel('Email').fill('john@doe.com');
  await page.getByLabel('Password').fill('secret');

  await page.getByRole('button', { name: 'Log In' }).click();

  await expect(page.getByText('Welcome John Doe!')).toBeVisible();
});

Is there any particular setting within the playwright config that would be relevant here? Is this output caused by the fact that I'm adding a rest handler within the test itself instead of specifying handlers in the worker fixture when it's created?
Cheers

Hey @solomonhawk, I don't believe you have anything misconfigured here or are doing anything. Unfortunately, the method used for intercepting the requests is unfortunately quite noisy. My apologies for this. I too find it quite noisy. I've tried to find a way wot reduce it in the past, but didn't have much luck. I'll have another stab at it and hopefully find a way to reduce it.

Is there any particular setting within the playwright config that would be relevant here?
Unsure at this stage, but I hope so 🙂

Will post updates soon.

Appreciate the reply! Let me know if there's anything I can do to help.

Do you happen to know of a way to suppress logs in Playwright?
In the cypress world, all of the cypress commands allow you to pass an options object, one of which was {log: false}. This would allow granular control over whether logging was performed on a per cypress command basis:
https://docs.cypress.io/api/cypress-api/cypress-log#Examples
I can't seem to find a way to do this in Playwright though. I'd be keen to hear if you have any ideas on how we might achieve the desired result.

I poked around and I don't see any current available API for suppressing or turning off logs. There is a way to customize the logger behavior when programmatically launching a browser but that doesn't seem particularly useful.
Another route would be to use a custom HTML reporter, but that doesn't seem like a terribly maintainable approach either.
It looks like some other folks have similar issues and there was a PR merged early this year that at the very least groups/collapses sequential log messages (https://github.com/microsoft/playwright/pull/11160) which we can see in my image above (the numbers in grey after route.continue in a few spots), but that doesn't really help too much.
Do I understand correctly that we're getting a lot of noise because our page route intercepter is called for every request on the page (assets, images, etc.) even though we might only be targeting one or two specific (xhr) routes?

Thanks for looking into this @solomonhawk. It's unfortunate that there isn't an easy first party way to handle this. I was really excited to hear about the log grouping, until you pointed out that it doesn't work very well 😅

Do I understand correctly that we're getting a lot of noise because our page route intercepter is called for every request on the page (assets, images, etc.) even though we might only be targeting one or two specific (xhr) routes?

Yup, that's correct. It was the easiest way to integrate MSW and playwright.

Do you think it would be possible/viable to change how playwright-msw interacts with playwright and ditch page.route('**/*', ..) in favor of one call to page.route for each specific handler attached to msw (using the exact path specified)? It seems like that would be less tidy overall, and maybe not possible since you'd need to be able to introspect the calls to rest.get/rest.post configured in msw. Dynamically adding page.route(..) calls during a test seems feasible on it's own though.

This is an awesome idea. I think it should be feasible, I'm going to try it out this morning 🎉
p.s. sorry for the delay in responding. I've been super busy getting ready to move to the US 🙂

Hey @solomonhawk, turns out this is feasible.
I've got a POC implementation here: https://github.com/valendres/playwright-msw/pull/33
It has required a significant refactor to be able to implement this - which I'm hoping achieves what you're after. I have published this as 2.0.0-beta.0. Would you be keen on trying it out?
I should note, that it might be a few days before this can get merged and published. While it seems to work well for Rest handlers, some more work will be required to get it to work with GraphQL.

Awesome! I took a quick look at it seems like a promising approach. I didn't mean to send you down a path towards a large refactor/rewrite, so I hope it isn't too much work.
I'll see if I can test this out soon.

Hey @solomonhawk, I've published v2.0.0 which should reduce the amount of noise that's present in the logs. Due to the nature of this large refactor, I've added many unit and integration tests to help ensure that it has not caused any unexpected regression.
Please note that this version also adds support for GraphQL, which resulted in a breaking change to the createWorkerFixture interface. The V2 Migration Guide should serve as a good reference when upgrading 🙂
I'm going to close this issue for now, please let me know how it goes. If there's any issues, feel free to re-open the issue or create a new one.


Advanced HA

First timer here so if I'm doing it wrong, please hurt my feeling :)
I saw a discussion earlier about dependencies and this is another that requires VMCP to be enabled before the other changes can be made.
This is also a special case since I don't think there are any default cmdlets to modify the VMCP settings. I imported a module here in order to gain the functionality.
https://github.com/vmware/PowerCLI-Example-Scripts/blob/master/Modules/VMCPFunctions.psm1

@tvanholland  I haven't had a chance to run this yet, but looking at the code, it seems like you should either be importing the module or checking that its been loaded and the functions are available in the test(possibly another test?)? And maybe adding a comment showing that its needed?


Unused variable: dest

-                if destt == None:
-                    dest = NodeID(0)
+                if destt is not None:
+                    dest = NodeID(0)

I'm not 100% sure I know the right thing to do here to fix the area of code, so maybe let's come back to this after the next PR. Ok, I accidentally reversed the logic. Now it makes sense. PR will include correct change:
-                if destt == None:
-                    dest = NodeID(0)
+                if destt is None:
+                    destt = NodeID(0)

Thanks.  Your commit comment mentions "static analysis".  Is there some tool that you recommend for checking Python like this?

pycodestyle checks PEP8 comprehensively including very surface-level stuff--This is what could be most properly called a "linter" since it mostly covers code formatting and style, but can also turn up mistakes caused by unusual use of variables or uninitialized variables etc.
PyLance does deeper analysis.
Flake8 is a combination of both of the above, more or less, and has many extensions available for code practices that could cause potential issues. If you were to use only one, I'd recommend this with the extensions added as well.
The ruff extension for VSCode (or fully open-source VSCodium) checks for various issues including one or more of the above automatically. I'm not sure if it automatically uses all of them but I also usually install the Flake8 and Pylance extensions too. The main purpose of ruff is to install one extension to do all types of static analysis using Rustlang for speed.

All of the above can also be used on the command line and most IDEs can be configured to have real-time checking or you can add it to a button in Geany for example (click-to-navigate to errors is possible if using a linter command argument setting it to an output style recognizable to Geany, if you place it in Geany's first two command slots in Build, Set Build Commands while having a py file open already which triggers the Python settings there). I recommend ruff since it tries to combine functionality of all of the others and is fast, but Flake8 is very good if various Flake8 extensions are installed.


[SMALLFIX] add Zookeeper information to report summary CLI

Add Zookeeper Enabled and Zookeeper Addresses information in report summary command.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/19227/Failed Tests: 2org.alluxio:alluxio-core-common: 2alluxio.wire.MasterInfoTest.thriftalluxio.wire.MasterInfoTest.json
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/19228/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/19230/
Test PASSed.


Support VMware vCloud Director as a Cloud Provider

Description of the feature you would like to add / User story
As a user, I would like to set up Kubernetes clusters on top of my VMware vCloud Director setup.

I've removed the following tickets from this epic since IMO they are not the core requirements of adding this cloud provider:

https://github.com/kubermatic/kubeone/issues/2057
https://github.com/kubermatic/kubeone/issues/2056

Please check the individual ticket descriptions for details.


The application crashes when I enable debug

Description
With Debug enabled, everything works fine. But as soon as I enable Debug, the application immediately collapses without any errors...
I have completely cleaned all the caches
rd %localappdata%\Temp\metro-cache /s /q
del %localappdata%\Temp\haste-map*
gradlew clean
rd node_modules /q /s
npm cache clean --force
npm start -- --reset-cache
But nothing helps
Version
0.66.4
Output of npx react-native info
$ react-native info
info Fetching system and libraries information...
(node:18324) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
System:
OS: Windows 10 10.0.19044
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Memory: 1.17 GB / 7.49 GB
Binaries:
Node: 14.17.5 - C:\Program Files\nodejs\node.EXE
Yarn: 1.7.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 23, 26, 28, 29, 30
Build Tools: 28.0.3, 29.0.2, 30.0.2
System Images: android-19 | Google APIs ARM EABI v7a, android-24 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version  <IP_ADDRESS> AI-193.69<IP_ADDRESS>26763
Visual Studio: Not Found
Languages:
Java: 1.8.0_211 - /c/Program Files/Java/jdk1.8.0_211/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.4 => 0.66.4
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
1 launch the application
2 ctrl+m
3 select Debug
4 The application breaks and collapses without errors
Snack, code example, screenshot, or link to a repository
No response

GIF:   https://gyazo.com/3ef2d1377993b55ecd6a27549eb21267

don't have any ideas?

I found a mention of this problem in react-native-reanimated and they say that it can only be solved in react-native.
Is that true?
https://github.com/software-mansion/react-native-reanimated/issues/1674

in
the react-native-reanimated documentation (https://docs.swmansion.com/react-native-reanimated/docs/), I found this:

are there plans to use JSI in react-native?


How about to apply conv2d bank to the input?

The input is a spectrogram, which could be seen as 2d data (like image).
I think applying conv2d bank can improve the result. How do you think?

Is it same to conv2d with 1 channel and conv1d?


rqt_msg: 1.0.3-1 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository rqt_msg to 1.0.3-1:

upstream repository: https://github.com/ros-visualization/rqt_msg.git
release repository: https://github.com/ros2-gbp/rqt_msg-release.git
distro file: rolling/distribution.yaml
bloom version: 0.10.6
previous version for package: 1.0.2-2

rqt_msg
* Use rosidl_runtype_py instead of message_helpers where possible (#11 <https://github.com/ros-visualization/rqt_msg/issues/11>)
* Contributors: Ivan Santiago Paunovic

@clalancette on another note, I've been recently getting the following bloom-release error when it tries to open a pull request:

Failed to open pull request: GithubException - HTTP Error 404: Not Found (https://api.github.com/repos/ros/rosdistro/pulls): None

Do you have any idea what can cause that?
(I'm using token based authentication, as specified here http://wiki.ros.org/bloom/Tutorials/GithubManualAuthorization#Token-based_authentication)

Failed to open pull request: GithubException - HTTP Error 404: Not Found (https://api.github.com/repos/ros/rosdistro/pulls): None

Hm, I don't know.  @nuclearsandwich @cottsay Any thoughts?


add amara provider

Codecov Report

Merging #71 into master will decrease coverage by 0.31%.
The diff coverage is 45.45%.

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
- Coverage   56.37%   56.06%   -0.32%
==========================================
  Files           7        7
  Lines         337      346       +9
==========================================
+ Hits          190      194       +4
- Misses        139      143       +4
- Partials        8        9       +1

Impacted Files
Coverage Δ

database/job.go
33.33% <ø> (ø)
:arrow_up:

service/storage.go
26.92% <0%> (ø)
:arrow_up:

service/client.go
70.37% <50%> (-3.25%)
:arrow_down:

Continue to review full report at Codecov.

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


Test Everything

[ ] Test Drawings

[x] Assert no drawings are happening outside the DrawingAnnotation state
[ ] Drawings are properly converted to annotations after a mouse up or canvas leave event is triggered. This will be broken into unit/end-to-end tests

[ ] Test Annotations

[ ] Check whether vertices are shown based on editing state
[ ] Assert annotations are properly resized
[ ] Assert annotations are properly moved
[ ] Assert annotations have events registered in the correct editing state

[ ] Test AnnotationState

[ ] The app is generally a finite state machine.  Assert that it makes transitions between states correctly based on a small set of transition functions.

[ ] ... more to be added

This issue was written as a sort of manual TODO list for test coverage. There is no test coverage package for Elm yet. Going to close this to track in smaller issues.


⚠ Bofrost.be has degraded performance

In fb17b70, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1927 ms

Resolved: Bofrost.be performance has improved in 1a605e4.


st_mtime is not converted to int in async

https://github.com/Swind/pure-python-adb/blob/b136202b04660db57b49418514dd9eddc2ecb365/ppadb/sync_async/__init__.py#L23
Will crash struct.error: required argument is not an integer in async push, but it works fine in sync.
Are there any other modifications that are not synchronized with sync?

I briefly browsed the sync, and the others seem to be no different, just this one should be changed.


7z dataset preview not implemented?

Dataset viewer issue for dataset 'samsum'
Link: https://huggingface.co/datasets/samsum
Server Error
Status code:   400
Exception:     NotImplementedError
Message:       Extraction protocol '7z' for file at 'https://arxiv.org/src/1911.12237v2/anc/corpus.7z' is not implemented yet

It's a bug in the dataset viewer: the dataset cannot be downloaded in streaming mode, but since the dataset is relatively small, the dataset viewer should have fallback to normal mode.

Fixed. https://huggingface.co/datasets/samsum/viewer/samsum/train

Thanks for reporting!


Fail to create a containerized function app after signing in with Azure China account

OS: All
Build Version: vscode-azurefunctions-1.13.5-alpha.0
Repro Steps:

Sign in to Azure China account.
Create a containerized function project and open in VS Code.
Create a containerized function app.
Check whether succeeds to create a containerized function app.

Expect:
Succeed to create a containerized function app.
Actual:
Fail to create a containerized function app.

This is failing due to log analytics workspace not creating properly. We should do two things

Check for other supported locations if it's not available

Don't throw an error if this fails since it is optional


Incorrect locale when page entered without slash after language slug.

Version
@nuxtjs/i18n: v7.2.0
nuxt:  v2.15.8
@nuxtjs/i18n configuration
      [
        '@nuxtjs/i18n',
        {
          strategy: 'prefix_except_default',
          detectBrowserLanguage: false,
          baseUrl: 'http://test.local:8080',
          locales: [
            {
              name: 'English',
              code: 'en',
              iso: 'en-GB'
            },
            {
              name: 'Norwegian',
              code: 'nb',
              iso: 'nb-NO'
            }
          ],

          vuex: {
            preserveState: true,
            //syncLocale: true https://i18n.nuxtjs.org/migrating
          },
          lazy: false,
          defaultLocale: 'nb',
        }
      ]

What is Expected?
The default locale is NB.
When I enter the page with both url http://test.local:8080/en and http://test.local:8080/en/ I'd like to have  locale EN
What is actually happening?
When I enter the page: http://test.local:8080/en locale is NB
When I enter the page http://test.local:8080/en/ (With slash at the end) Locale is EN
When I enter the page with any deeper link like http://test.local:8080/en/test or http://test.local:8080/en/test/  in both cases locale is set correctly as EN
The only one time with the issue appear is when I enter the home page without slash. I have tried to set router: { trailingSlash: true } But in that case the error is all the way around with slash it is NB without EN, and as previously no issues in deeper url's.
Before I used nuxtjs/i18n 6.6... with Nuxt 2.0.something and It was correct as far as I remember and how it works now.
The only solution that I found is temporary server-middleware to remove or add  (depend of route setting) last slash if user enter home page.
Reproduction
https://codesandbox.io/s/musing-frost-99zbf Just try .../en and .../en/ inside code sandbox. it print out the current locale. I also added simple links to easy click through the issue.

You have a _.vue route in the project which captures the /en path and treats it as a slug en using the default locale NB.
You can have a look at the generated routes in .nuxt.router.js to better understand why it's happening:
  routes: [{
    path: "/en/*",
    component: _f0fe2a6e,
    name: "all___en"
  }, {
    path: "/*",
    component: _f0fe2a6e,
    name: "all___nb"
  }],

Only the second route will catch the /en path.
Enabling router: { trailingSlash: false } should make it work although it could come with some unwanted side effects.
Also this is a duplicate of #632

You can experiment with Nuxt's extendRoutes to add a redirect routes from /en to /en/ etc.

For now I'll just make server-middleware that redirects in that only one case to correct one like /en/ to /en or otherway around - depend of the  router: { trailingSlash ....} setting.


Cannot load model with SequentialHead

I replaced the SkipConnectionHead of my model with a SequentialHead and it trained as expected. However, when I went to load the model with SimilarityModel.load("./encoders").to(device), I received the following error.
model = SimilarityModel.load("./encoders").to(device)
File "/home/andrew/.cache/pypoetry/virtualenvs/imageclassifier-iYVta-lH-py3.9/lib/python3.9/site-packages/quaterion_models/model.py", line 205, in load
    head = head_class.load(head_path)
  File "/home/andrew/.cache/pypoetry/virtualenvs/imageclassifier-iYVta-lH-py3.9/lib/python3.9/site-packages/quaterion_models/heads/encoder_head.py", line 70, in load
    model = cls(**config)
TypeError: __init__() got an unexpected keyword argument 'input_embedding_size'

I am unsure whether this is a bug or user error. I can provide additional info if needed.

Hi, @andrewaf1
It is a bug, will be fixed soon, thank you!

Thanks! I could take a look at it as well if you point me in the right direction.

When we save a model, we store head's parameters in config.json.
SequentialHead is a bit different from the other heads and does not need parameters of its parent class, but we still put EncoderHead parameters into config.
https://github.com/qdrant/quaterion-models/blob/553f517445e6ba4ca889cafc577740b4f94cfb43/quaterion_models/heads/encoder_head.py#L49-L58
When we try to load a model, we pass saved params as **kwargs to the model's class, but SequentialHead has neither input_embedding_size, nor dropout nor **kwargs, so we cannot pass them as key word arguments.
The fast solution would be just to add **kwargs to the SequentialHead.
You can probably expect a fix today, I will tag you.

@monatis in SequentialHead we get already initialized layers and they are not compatible with our current way of saving heads

Will come up with a workaround shortly.

Hi @andrewaf1, the bug was fixed in v0.1.14, so you can upgrade your quaterion-models package:
pip install --upgrade quaterion-models
unfortunately there's no reliable way of restoring a sequential model from a state dict only as it simply stores tensors. So our best bet seems like saving the whole sequential model there instead of the state dict by overriding save and load methods in SequentialHead.
In this case you won't be able to load the currently saved model unless you reload it by defining the same layers, loading the state dict and saving it in the current format again.
Alternatively, you can retrain it from scratch if it's not a problem. Sorry for any inconvenience.
Could you please check and verify if it solves your problem?


Generated File produces Compiler Error CS0542

Describe the bug
The Code-Generation can produce a class that contains a field with the name of the class.
That leads to Compiler Error CS0542 (member names cannot be the same as their enclosing type)
How to Reproduce
I testet ZeroQL with the public GraphQL API at "https://spacex-production.up.railway.app/".
After generating, the GraphQL.g.cs contained the class Address, that lead to the error:
[System.CodeDom.Compiler.GeneratedCode ( "ZeroQL" ,  "<IP_ADDRESS>" )]
public class Address
{
[ZeroQL.GraphQLFieldSelector("address")]
[JsonPropertyName("address")]
public string? Address { get; set; }
[ZeroQL.GraphQLFieldSelector("city")]
[JsonPropertyName("city")]
public string? City { get; set; }

[ZeroQL.GraphQLFieldSelector("state")]
[JsonPropertyName("state")]
public string? State { get; set; }

}
Screenshots

Environment (please complete the following information):

Nuget version 4.1.0
IDE: VS 2022
.Net Version 7

This issue is fixed in 5.0.0-preview.4.
Duplicate for #54


[1.19.2] Incorrect counts reported when using Jade

DO NOT REPORT AN ISSUE IF YOU HAVEN'T TESTED THE ISSUE WITH THE LATEST VERSION IN CURSEFORGE
Functional Storage Version: 1.1.3
Titanium Version: 3.7.3-27
Crashlog If Applicable (Upload to pastebin/gist):
I noticed this while playing on FTB Skies latest version. The amounts listed in Jade are off from the amounts listed in the drawer.

I think this is just because it only shows one decimal place on the drawer on just rounds up or down. I personally wouldn't call it a bug, just a minor visual discrepancy

Yeah, just different ways of rounding


Argument of type 'typeof FooBar' is not assignable to parameter of type 'new () => FooBarInterface'

Hi guys I'm developing an IoC container for TypeScript apps called InversifyJS. I have implemented a class named TypeBinding<TServiceType> which is used to define a binding between a service type (interface) and a implementation type (class). The class code is the following:
// Defines allowed scope modes
enum TypeBindingScopeEnum {
  Transient,
  Singleton
}

class TypeBinding<TServiceType> {

    // The runtime identifier used because at runtime
    // we don't have interfaces
    public runtimeIdentifier : string;

    // The constructor of a class that must implement TServiceType
    public implementationType : { new(): TServiceType ;};

    // Cache used to allow singleton scope
    public cache : TServiceType;

    // The scope mode to be used
    public scope : TypeBindingScopeEnum;

    constructor(
      runtimeIdentifier : string,
      implementationType : { new(): TServiceType ;},
      scopeType? : TypeBindingScopeEnum) {

      this.runtimeIdentifier = runtimeIdentifier;
      this.implementationType = implementationType;
      this.cache = null;
      if(typeof scopeType === "undefined") {
        // Default scope is Transient
        this.scope = TypeBindingScopeEnum.Transient;
      }
      else {
        if(TypeBindingScopeEnum[scopeType]) {
            this.scope = scopeType;
        }
        else {
          var msg = `Invalid scope type ${scopeType}`;
          throw new Error(msg);
        }
      }
    }
}

I have defined some entities for testing the TypeBinding<TServiceType> class:
interface FooInterface {
  logFoo() : void;
}

interface BarInterface {
  logBar() : void;
}

interface FooBarInterface {
  logFooBar() : void;
}

// Notice default constructor
class Foo implements FooInterface {
  public logFoo(){
    console.log("foo");
  }
}

// Notice default constructor
class Bar implements BarInterface {
  public logBar(){
    console.log("bar");
  }
}

// Notice dependencies on FooInterface and  BarInterface on constructor
class FooBar implements FooBarInterface {
  public foo : FooInterface;
  public bar : BarInterface;
  public logFooBar(){
    console.log("foobar");
  }
  constructor(FooInterface : FooInterface, BarInterface : BarInterface) {
    this.foo = FooInterface;
    this.bar = BarInterface;
  }
}

I can use the TypeBinding<TServiceType> class with no issues with the classes Foo and Bar
var fooBinding = new TypeBinding<FooInterface>("FooInterface", Foo);
var barBinding = new TypeBinding<BarInterface>("BarInterface", Bar);

My problem comes when I try to use { new(): TServiceType ;} and the constructor of the class that implements TServiceType is not parameterless.

Argument of type 'typeof FooBar' is not assignable to parameter of type 'new () => FooBarInterface'.

var fooBarBinding = new TypeBinding<FooBarInterface>("FooBarInterface", FooBar);

How can work around this issue?
Thanks :)

I think I have fixed the issue by changing the class attribute:
implementationType : { new(): TServiceType ;},

to:
implementationType : { new(...args : any[]): TServiceType ;},

Will write some unit test con confirm.
Thanks...

Clever!  Thanks for this tidbit :)

Thanks for this, I was looking for a way to perform typechecking on constructors passed in a function parameter. The { new(...args : any[]): T ;} allowed me to do so.
Which means I can perform typechecking on decorator targets

function decor(oPar: {}): <TFunc extends { new (...args: any[]): A }>(target: TFunc) => void {
    return function <TFunc extends { new (...args: any[]): A }>(target: TFunc): void {
        console.log(oPar, target);
    }
}

class A { id: string; }
// will error
@decor({})
class B { }

// Works
@decor({})
class C extends A { }