Show platform specific shortcut while editing.

As the text in the text field is used to bind the shortcut later introduce a utility function to parse back from platform specific to canonical representation
Closes #5047
Type of change

[x] Bug-fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change
[ ] example: I check if my changes works with both PySide and PyQt backends
as there are small differences between the two Qt bindings.

Manually on Macos, checking that I can set shortcuts to things like Ctrl-Meta-Alt-Shift-N
I'm not sure extra tests are needed here. Maybe they will if we find edge cases.
Final checklist:

[x] My PR is the minimum possible work for the desired functionality
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

Failure on ubuntu-latest 3.9 pyside6  likely due to #5069 (new version of shiboken)

Left a couple of suggestions to fix a typo

Thanks !

Either I'm not getting the goal of this PR or it's not working on my mac.
I see Control-Shift-E instead of the icons, when I'm entering a keybind.
Once I hit enter it switches to the icons for Command-Shift-E.
(can't screenshot, because the keys get 'stolen' by the keybind UI)

@psobolewskiPhD There is an option to perform delayed screenshots. Ex instruction here: https://zapier.com/blog/screenshot-mac/

I do not see a replacement if a single Ctrl is clicked (I see control), but when I Click ctrl+f it renders properly, but with a visible delay (half a second).
But every time it ends with the information that the shortcut is not a valid shortcut.

I see no difference in behavior between this PR and 0.4.17RC.

Err... I think there's a problem between chair and keyboard.
 gh pr checkout 5064                                          (napari-test) ─╯
From https://github.com/napari/napari
 ! [rejected]          refs/pull/5064/head -> fix-show-sh  (non-fast-forward)
exit status 1

you could run DEBUG=1 gh pr checkout 5064 to see what happens

you could run DEBUG=1 gh pr checkout 5064 to see what happens
nothing insightful to me...

╰─ DEBUG=1 gh pr checkout 5064                                  (napari-test) ─╯
[git remote -v]
[git -C . config --get-regexp ^remote\..*\.gh-resolved$]
⣾* Request at 2022-09-28 21:10:00.571911 +0200 CEST m=+0.039551918
* Request to https://api.github.com/graphql
⢿* Request took 473.95525ms
[git remote -v]
[git -C . config --get-regexp ^remote\..*\.gh-resolved$]
* Request at 2022-09-28 21:10:01.088573 +0200 CEST m=+0.556222334
* Request to https://api.github.com/graphql
* Request took 331.853417ms
[git symbolic-ref --quiet HEAD]
[git config branch.fix-show-sh.merge]
[git fetch upstream refs/pull/5064/head:fix-show-sh]
From https://github.com/napari/napari
 ! [rejected]          refs/pull/5064/head -> fix-show-sh  (non-fast-forward)
exit status 1

nothing insightful to me...

but not for me (I just solved the similar problem).
Could you paste output of: cat .git/config | grep 'remote "upstream"' -A 3

Could you paste output of: cat .git/config | grep 'remote "upstream"' -A 3

╰─ cat .git/config | grep 'remote "upstream"' -A 3              (napari-test) ─╯
[remote "upstream"]
	url = https://github.com/napari/napari.git
	fetch = +refs/heads/*:refs/remotes/upstream/*
	gh-resolved = base

So I have a different problem, but If it will be back, you could ping me.

This works nicely, but how does it interact with the fixes from
https://github.com/napari/napari/pull/5604

@kne42, @psobolewskiPhD pointed out this affects one of your PRs. What do you think we should do?

This one is smaller so I'm happy to rebase after @kne42 PR is merged.

Hmm...
I was playing with this today and I get some strange behaviors with certain keys. E.g. spacebar:
/Users/piotrsobolewski/Dev/napari/napari/utils/action_manager.py:319: UserWarning: Space- does not seem to be a valid shortcut Key.!
/Users/piotrsobolewski/Dev/napari/napari/_qt/widgets/qt_keyboard_settings.py:295: UserWarning: Space- does not seem to be a valid shortcut Key.!

I don't have this issue on main

Hum, all the action manager logic is based on str, but objects are now app-model KeyBindings object, there is so much things that seem to be wrong in action manager now. I'm also not sure having KeyBinding's __str__ and magically comparing itself to a str a good idea...

Yeah, This is really weird
In [1]: from app_model.types import KeyBinding

In [2]: X = [KeyBinding.from_str('A')]

In [3]:  [isinstance(s, str) for s in X]
Out[3]: [False]

In [4]: 'A' in X
Out[4]: True

Now everything seems to work!
For a future PR, would be nice if when you press command, then shift, then your key (say command-shift-m) the display was first command, then command-shift, then command-shift-m (all styled like this PR, I'm too lazy for the icons), rather than Command, then Shift (no command), then all 3.

For a future PR, would be nice if when you press command, then shift, then your key (say command-shift-m) the display was first command, then command-shift, then command-shift-m (all styled like this PR, I'm too lazy for the icons), rather than Command, then Shift (no command), then all 3.

Oh, I did not even notice, but I think this is orthogonal to this PR that just update the UI side of things.

Thanks !


Spawn processors in a pipeline for parallelism?

Description
@danfowler has recently been using DPP for some very large source files (8GB CSV). With the default way pipelines here work, processing this data via a single conceptual stream is too slow.
There are various ways to deal with this:

Don't use streaming/DPP for such large files. Copy the data into a DB and use that.
Try to use more efficient file backends for such files, such as HDF5, Feather, or mmapped files.
Allow DPP to spawn multiple processing (sub-)pipelines, which end in a sink processor.
?

I'd like to explore option 3. @akariv what are your thoughts?
From my very high-level view of the framework, there are no inherent design barriers to this. The only thing I guess is that the descriptor object is mutable global state, and maybe the caching mechanisms too. This might mean that spawned processors should only work on the data sources, and not on metadata.

This is in fact describing a map/reduce framework, no?
I think that it might be better to leave the task of orchestrating the map/reduce tasks to a dedicated framework (e.g. Hadoop). The tasks themselves, however, could be implemented with dpp, of course.

Yes, it is map/reduce. I guess we can explore how we use other frameworks like Hadoop for orchestration.


stream_file bangs on SFTPClient.OperationError

Hi! First of all, thanks for the great work!
I bumped into an exception in a non-bang function running a simple download pipeline, when using code like
case SftpClient.stream_file(conn, path) do
  {:ok, data} -> do_something_with(data)
  {:error, reason} -> {:error, reason}
end

** (SFTPClient.OperationError) Operation failed: permission_denied
    (sftp_client) lib/sftp_client/operation_util.ex:37: SFTPClient.OperationUtil.may_bang!/1
    (elixir) lib/stream.ex:1392: anonymous fn/5 in Stream.resource/3
    (elixir) lib/enum.ex:3023: Enum.reverse/1
    (elixir) lib/enum.ex:2668: Enum.to_list/1
    (myapp) lib/worker.ex:433: Worker.download/2

Can't access the sftp at the moment, but the error is pretty clear
I'm using 1.3.5 but didn't see any related diff in last commits
Didn't dig into the problem yet, pretty noob in elixir, but will try to take a look (and in the meanwhile add some defensive try rescue :P )

Thanks for your bug report. I'm going to take a look at it later or tomorrow.

I'm afraid that the exception is raised when evaluating the stream in your do_something_with_data function.
To clear things up: stream_file just creates the stream but does not evaluate it until you call Enum.to_list/1 or Stream.run/1. In fact, stream_file and its brother stream_file! will only return an error or raise when you are trying to stream a non-regular file, such as a directory or symbolic link.
The general behavior is consistent with how File.stream!/1 handles streaming. I agree that it might be a bit misleading. We should probably think about deprecating the non-bang version in the long run.


Implement backtrace support

We should package backwardcpp (a header only library) and add an exception in Add_ExternalProject in metacall/core for when building with Guix.
We should also change this flag: -DOPTION_BUILD_PLUGINS_BACKTRACE=OFF to ON.

Is this issue resolved i would like to contribute

@pranjalXi no it's not, feel free to PR whenever you want.


Get income and outcome from mainnet (frontend only)

Hello! We are developing small app. And we are really keying on to avoid implementing any backend whatsoever.
Now we are trying to get transactions history for specific account: income and outcome.
import Eos from 'eosjs';

const eos = Eos({
    httpEndpoint: 'https://api1.eosdublin.io'
});
const response = await eos.getActions('stubbornicko');

But we only can get outcome transactions 😢
So here is a question: can we get income transactions from mainnet ('https://api1.eosdublin.io') without any backend implementation?
If it is possible it would be nice if you provide working example.

get_actions API request is calling the history_plugin, which may or may not be enabled at a particular BP. there were times when this API was unavailable, because blocktwitter has consumed too much space in the history database.
So, if you want a reliable service, you need to run your own full node with history.
As an alternative, see my ZMQ plugin receiver. It stores the transactions history in a MySQL database:
https://medium.com/@cc32d9/eos-zmq-plugin-receiver-tools-faf41d9d7127
I can also help you building the infrastructure.

I think it's better to sync with the mainnet and get actions from you local node.


Import UIKit and WatchKit conditionally to work around Xcode Previews not working on Mac

This PR is practically identical to https://github.com/devicekit/DeviceKit/pull/342 and solves the same issue - when DeviceKit is used as framework dependency, Mac targets importing that framework fail to build for Xcode Previews.
This is not a build issue in Debug / Release configuration, it is only reproducible with Xcode Previews, as Xcode Previews seem to not be understanding platform filters (Link binary with libraries / Filters -> iOS, platformFilter = ios).
The only difference of this PR from #342 is that instead of if os() conditionals this PR uses #if canImport() statements, which should be more resilient, however it's obviously up to maintainers to select which approach is better suited for DeviceKit.

thanks for your work, i hope someone will review it shortly :)

This issue should be fixed in v5.2.2 @la-pieuvre


Add visual preview of the colour palette

Hey, thank you for this amazing theme. I just wish it had many official ports (like Catppuccin and Dracula), maybe in the future.
For now, I think there should be a colour palette preview available to view in the README.md for easy acces to the palette. This might also help others in making ports.
So, I made one :)

Wow, thanks!
I have been wanting to add one of these for a while now.  I will make a PR at some time adding this image in the README.  Thanks!

That's awesome. Make sure to mention this amazing project in the acknowledgment section.
https://github.com/Aonodensetsu/prev_gen

You can make a PR if you want?  Just link the image in this issue in the README, and put it at the end of the showcase.

You could actually also add the python file for if we want to regenerate it in the future.

I was trying to avoid the hassle because I have never made a PR. I guess I need to learn how to do it somehow. I think the first step should be cloning this repo locally?

First time for everything!

Fork the repo
Clone it locally
Make the changes
Commit the changes with a nice message :)
Make a PR

The tool actually supports full recreation of the code from the picture itself 😎

The palette tool actually supports full recreation of the code from the picture itself 😎

That's awesome :D

You can check the PR. :)

and comes with a cli tool that can do pretty much everything

Hey, @Aonodensetsu , can you check the issue I created in prev_gen and tell me if that can be done using the CLI tool.


feat: Support default json

Codecov Report

Merging #5 (00188e7) into master (02162f5) will increase coverage by 2.94%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
+ Coverage   79.05%   82.00%   +2.94%
==========================================
  Files           1        1
  Lines         191      200       +9
==========================================
+ Hits          151      164      +13
+ Misses         40       36       -4

Impacted Files
Coverage Δ

src/lib.rs
82.00% <92.85%> (+2.94%)
:arrow_up:

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


test: improve readablity of util trivial_external_entry_point

This change is

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

Project coverage is 69.86%. Comparing base (2adb751) to head (bd28855).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1587   +/-   ##
=======================================
  Coverage   69.86%   69.86%
=======================================
  Files          60       60
  Lines        8244     8244
  Branches     8244     8244
=======================================
  Hits         5760     5760
  Misses       2018     2018
  Partials      466      466

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


using expression max to left join in Row

Halloo All,
I have an issue if using expression of Row, I want left join with a max due date , that's code below, Please Correct , thank you
` [DisplayName("Lead Id"), Identity,
ForeignKey("tActivity", "ParentId"), LeftJoin("a")]
public Int32? LeadId
{
get { return Fields.LeadId[this]; }
set { Fields.LeadId[this] = value; }
}
    [DisplayName("last due date ") ,Expression("max(a.[duedate]) group by a.parentId")]
    public DateTime? LastActivityDate
    {
        get { return Fields.LastActivityDate[this]; }
        set { Fields.LastActivityDate[this] = value; }
    }

`

You could also try this in xyzRow.cs
[DisplayName("Lead Id"), Identity]
[ForeignKey("(SELECT ta.parentId, MAX(ta.[duedate]) AS LastActivityDate FROM tActivity ta GROUP BY ta.parentId)", "parentId"), LeftJoin("a")]

I haven't tried that myself but it should work. If not, try creating a view and referencing that as your ForeignKey.
CREATE VIEW vwMaxMinActivityDates AS
SELECT
	ta.parentId,
	MAX(ta.[duedate]) AS LastActivityDate,
	MIN(ta.[duedate]) AS FirstActivityDate
FROM tActivity ta GROUP BY ta.parentId

*I included the MIN as well in case you need to use the first activity date too.
In xyzRow.cs
[ForeignKey("[dbo].[vwMaxMinActivityDates]", "parentId"), LeftJoin("a")]

Then to get your date you can just use something like this.
[DisplayName("Last Due Date"), Expression("a.LastActivityDate"))]
public DateTime? LastActivityDate
{
    get { return Fields.LastActivityDate[this]; }
    set { Fields.LastActivityDate[this] = value; }
}

If you get any query errors take a look at the queries being generated in SQL Server Profiler  and try work it out from there.

thank you @edwardch, I am using that too,  with create a new View,
but is it possible without cretae view?

It should work using the first code block in my comment, then you can ignore code block 2 and 3...

yes, before you give a solution, I have done a issue with create view.. and i want a solution without generate a new view because it will make many source.. but thanks a lot

What about a subselect instead of a join?
Expression("(SELECT Max(duedate) FROM tActivity WHERE ParentId = T0.LeadId)")

@hannesb ok i want to try. thank you

please help me  in issue #4527 @edwardch and @hannesb .


mitmproxy crashes with error Too many open files

Hi,
After a while working with mitmproxy it crashes with the following error message:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/mitmproxy/master.py", line 54, in run_loop
File "/usr/local/lib/python3.8/dist-packages/urwid/main_loop.py", line 287, in run
File "/usr/local/lib/python3.8/dist-packages/urwid/main_loop.py", line 385, in _run
File "/usr/local/lib/python3.8/dist-packages/urwid/main_loop.py", line 1494, in run
File "/usr/local/lib/python3.8/dist-packages/urwid/compat.py", line 58, in reraise
File "/usr/lib/python3.8/asyncio/selector_events.py", line 164, in _accept_connection
File "/usr/lib/python3.8/socket.py", line 292, in accept
OSError: [Errno 24] Too many open files
mitmproxy has crashed!
I was just running mitmproxy with the parameter -m for redirecting to another proxy
Like this: mitmproxy  -p incoming -m upstream:http://<IP_ADDRESS>:1234 -k --anticache
I have experienced this multiple times now. Thinking it is related to #4933 ?
mitmproxy --version
Mitmproxy: 7.0.2
Python:    3.8.10
OpenSSL:   OpenSSL 1.1.1l  24 Aug 2021
Platform:  Linux-5.4.0-31-generic-x86_64-with-glibc2.29

Have you ran ulimit command and ensure that your open files limit is longer enough for your service?

You are probably right. Have to increase the soft limit perhaps? Just 1024

You should try rising the limit and check if that solves the problem, perhaps in the issue you mentioned that limit was not the problem so there is still a doubt about if it is a mitm issue or it is related to another service running on that server.

Hello,
I compiled mitmproxy from the v7.0.4 source tarball and encounter this issue upon trying to reach a mitmweb instance while ulimit reports unlimited. This is experienced on a freshly installed, minimal, OpenSUSE VM which does not house any other services. The console mitmproxy application seems to work fine.
Would appreciate any ideas.

Closing this as a duplicate of #4933.


Add sections in inner most template

I'm starting with Plates. I tried to add a content to a section in second level template and it was lost when the view was rendered. I "fixed" this passing the first level template ($this) as a variable to de next one ($parentTemplate).
list.phtml
<?php $this->layout('default::layout', ['pageTitle' => 'Home']); ?>

    ...

<?= $this->insert("default::modal", [
   'id' => 'form-filter',
   'header' => 'Filtar Relação',
   'content' => $content,
   'actions' => $actions,
   'parentTemplate' => $this
]); ?>

modal.phtml
<div id="<?= isset($id) ? $id : 'default-modal' ?>" class="ui modal">
...

<?php $parentTemplate->push('inlinejs') ?>

<?php $parentTemplate->end(); ?>

Is there a better way to do this? This is a limitation?

Change
<?= $this->insert("default::modal", [
to
<?php $this->insert("default::modal", [
You don't need to echo the results of insert.

Thank you, @rogerroelofs, but didn't work, echoing or not. I got the same result: the section content, added in a inner template, is lost.
Looking in Template.php, I found:.
            if (isset($this->layoutName)) {
                $layout = $this->engine->make($this->layoutName);
                $layout->sections = array_merge($this->sections, array('content' => $content));
                $content = $layout->render($this->layoutData);
            }

Here, the $this->layoutName is empty, when in inner level template, then the $sections aren't merged. Would be a bug?

So are you not using a layout?
I do this kind of thing all the time
           <?php $this->insert('partials/box', array(                 'title' => 'Company/Campus',                 'body' => $this->section('box')             )) ?>
but all my templates start with something like this:
<?php $this->layout('admin-bootstrap', array(   'section' => 'section-2',   'title' => $client->Name )); ?>

Once againm thank you @rogerroelofs
Let me show you my layout:
 __________________________________________
|   Master template (layout.phtml)         |
|   _____________________________________  |
|  |   Content template (list.phtml)    |  |
|  |   ______________________________   |  |
|  |  | Modal template (modal.phtml) |  |  |
|  |  |                              |  |  |
|  |  |______________________________|  |  |
|  |____________________________________|  |
|__________________________________________|

Master template excerpt:
<!DOCTYPE html>

        <?= $this->section('stylesheets') ?>

        <?= $this->section('content') ?>
        <?= $this->section('jsfiles') ?>
        <?= $this->section('inlinejs') ?>

Content template excerpt
<?php $this->layout('default::layout', ['pageTitle' => 'Home']); ?>

    ...

<?php $this->insert("default::modal", [
   'id' => 'form-filter',
   'header' => 'Filtar Relação',
   'content' => $content,
   'actions' => $actions
]); ?>

Modal template excerpt
<div id="<?= isset($id) ? $id : 'default-modal' ?>" class="ui modal">
...

<?php $this->push('inlinejs') ?>

<?php $this->end(); ?>

In this case, why do I need to write <?php $this->layout('default::layout', ['pageTitle' => 'Home']); ?> in modal template again?
IMHO, it seems like a repetitive task. Is there no other way?

Sorry for the less than helpful reply.  It appears that you can't use start() or push() in an inserted template without some kind of work around.  See https://github.com/thephpleague/plates/issues/47
In your case I would have done the js in a more generic way so you don't have to insert special script for each modal.  Instead you can do something like this to operate on all modals of that type.
$('.modal.some_class').modal({
  inverted: true,
  onApprove: function() {
      alert($(this).find('form').serialize();
  }
});

Closing in favor of #169. Thanks!


Recursive schema that uses other schemas not working due to incompatible inputs and outputs

Example:
import { z } from 'zod'

const Column = z.union([
    z.object({
        type: z.literal('string'),
    }),
    z.object({
        type: z.literal('integer'),
    }),
])

const TableBase = z.object({
    name: z.string(),
    columns: z.record(Column).default({}),
})

type TableWithExtends = z.infer<typeof TableBase> & {
    extends: TableWithExtends
}

//    Error -- Type 'undefined' is not assignable to type 'Record<string, { type: "string" } | { type: "integer" }>'
//    |||||
//    vvvvv
const Table: z.ZodType<TableWithExtends> = TableBase.extend({
    extends: z.lazy(() => Table),
})

The error goes away if I change z.infer to z.input but then the output of Table changes to the input as well which is not what I need. It seems since z.ZodType assumes output will match input, this use case falls apart, but manually supplying input and output doesn't seem to work either. Could use some pointers here.

Is this what you are looking for?
const Column = z.union( [
    z.object( {
        type: z.literal( 'string' ),
    } ),
    z.object( {
        type: z.literal( 'integer' ),
    } ),
] )

const TableBase = z.object( {
    name: z.string(),
    columns: z.record( Column ).default( {} ),
} )

type TableWithExtendsInput = z.input<typeof TableBase> & {
    extends: TableWithExtendsInput
}
type TableWithExtendsOutput = z.output<typeof TableBase> & {
    extends: TableWithExtendsOutput
}

const Table: z.ZodType<TableWithExtendsOutput, z.ZodTypeDef, TableWithExtendsInput> = TableBase.extend( {
    extends: z.lazy( () => Table ),
} )

If you found my answer satisfactory, please consider supporting me. Even a small amount is greatly appreciated. Thanks friend! 🙏
https://github.com/sponsors/JacobWeisenburger

Thanks, that'll work! I was trying something similar but was trying to have it so that any argument to extends would need to be an already validated Table object. In essence, something like this:
type TableWithExtendsInput = z.input<typeof TableBase> & {
    extends: TableWithExtendsOutput // Argument should be the output type
}

type TableWithExtendsOutput = z.output<typeof TableBase> & {
    extends: TableWithExtendsOutput // Also the output type
}

But I think this approach was wrong-headed. Any argument to this will get validated either way, it's just a slightly different DX than I had in mind for my API.
And yes I think this should move to discussions. I didn't realize this repo had a forum. Will use that next time.


wip: add is_exe_writable flag to execve

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind feature
Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area driver-kmod
/area driver-ebpf
/area libscap

What this PR does / why we need it:
This PR adds the is_exe_writable flag to execve events, and tracks it as a flag in the process structure. The flag is set if the user running the process has ownership or write access to the executable file.
This flag can be meaningful when the user in question is not root (to be more precise, root with CAP_FOWNER). In some scenarios it is interesting to analyze whether or not the regular user that spawned a process wrote its own binary. Sometimes this behavior is not expected and so I feel it is worth having this flag so that it can be used in Falco rules to catch these cases.
Special notes for your reviewer:
Alas, the bpf probe part of this PR is not currently working (verifier fails on the compiled probe). It sounds like this can get better after some improvements to the BPF probe in this PR https://github.com/falcosecurity/libs/pull/5 .
Does this PR introduce a user-facing change?:

A new flag, is_exe_writable, is available for execve events. This tracks whether or not the user invoking the systemcall has ownership or write access to the executable file used.

/ok-to-test

Waiting for #22 for the verifier fixes

@luca-sd you can probably rebase this and test again for bpf now that the fixes for clang 10 are in.

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten


webpack watch mode incorrectly throw a ENOENT error

Do you want to request a feature or report a bug?
report a bug
What is the current behavior?
webpack watch mode will throw a "Module build failed: Error: ENOENT: no such file or directory " error when rename a file imported by a entry and rename it back
If the current behavior is a bug, please provide the steps to reproduce.
webpack.config.js:
const path = require('path');
const webpack = require('webpack');

module.exports = {
    entry: {
        'bundle': path.resolve(__dirname, './test.js')
    },
    output: {
        path: path.resolve(__dirname, '../dist'),
        filename: '[name].js'
    },
    module: {
        rules: [
            {
                test: /\.js$/,
                use: {
                    loader: 'babel-loader',
                    options: {
                        babelrc: false,
                        presets: [path.resolve(__dirname, '../node_modules/babel-preset-es2015')],
                        cacheDirectory: path.resolve(__dirname, '../build-cache')
                    }
                },
                exclude: /node_modules/
            }]
    },
    plugins: [
        new webpack.LoaderOptionsPlugin({
            options: {
                babel: {
                    babelrc: false,
                    presets: [path.resolve(__dirname, '../node_modules/babel-preset-es2015')],
                    cacheDirectory: path.resolve(__dirname, '../build-cache')
                }
            }
        })
    ]
};

test.js:
import "./test1"
const a = 1;

test1.js:
const b = 2;
1 run webpack -w
2 rename test1.js to test2.js
3 edit test.js import "./test1" to import "./test2"
now it works fine
4 rename test2.js back to test1.js
5 edit test.js import "./test2" to import "./test1"
now webpack still throw a error "Module build failed: Error: ENOENT: no such file or directory, open 'dir/test1.js'"
What is the expected behavior?
should not throw the error and compile success
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
webpack: 3.8.1
nodejs: 6.11.2
os :win7 pro

@chaosheng-git I've not seen a specific commit for this landing in v4, but we are <30 days out from releasing v4 final, would you mind testing this on v4 and seeing if this is still an issue?
Thanks!

Will confirm this is an issue still in webpack 4.0.0-beta.
Ironically my case:
Changed file names, and then renamed path names, but had to repeat the @chaosheng-git's steps 3-5 2 times and reuse a filename for this to reproduce. As if the cache is not invalidating after the path/file rename is reused / rereferenced.

@sokra are we going to try and land this for v4 release? If so:

[ ] Identify where contributors can help fix
[ ] Add tests to guard this

Awesome! Will you start by submitting a PR, then we can help guide you for tests, etc.

PR submitted #6451

run into this bug with webpack 3.0，is there any chance to solve this problem in wepack 3.0?

@rdmclin2 I use custom watch file system to avoid this issue in webpack 3, and it's works fine for me,  I'll publish a npm module later.

Still actual and annoying
Similar case: rename ./Component.js → ./Component.jsx
webpack watch throws:
Error: ENOENT: no such file or directory, open ...

Fixed in webpack 5


[flutter_tools] allow tool integration tests to quit on SIGINT

fixes https://github.com/flutter/flutter/issues/136270

Code LGTM, but curious how using FakeSignals allows for the integration tests to be killed with ctrl+c?

Now when we run this code: https://github.com/christopherfujino/flutter/blob/allow-integration-tests-to-be-killed-with-ctrl-c/packages/flutter_tools/lib/src/resident_runner.dart#L1684, we don't actually trap SIGINT, we just call a dummy .addHandler() method on the FakeSignals.

Also is this test exempt?

it's test code :)


Support spaces control in templates.

According to this page: https://golang.org/pkg/text/template/ - section 'text and spaces' GO templating allows control spaces:
{{- and -}}

For all my test boilr is crashing when one of his syntax is used.

Feel free to reopen if you can reproduce it


Allow us to delete jobs

When a k8s Job hits backoffLimit, it will be marked as failed and any running
Pods will be terminated. This impedes our ability to debug it at a later date
as we won't be able to get logs etc.
With this commit we should be able to delete it and have it re-created by the
deployment pipeline.

Have you informed IA

Not yet, that was going to be the next thing after getting an approval within the team.

So are logs etc not written off the system so you can do debugging, incident response etc without access to the pods?
How often does this need to be done?
I have no real issues over this change, just trying to understand the need

AFAIK the logs get written to the k8s control plane which provides access to them, as long as the pod lives (you have to specify pod name to get the logs). We're talking about using this as part of development.
On review it does look like something is copying these logs to CloudWatch so maybe we could use that.

I would recommend that you check cloudwatch logs to see if they contain the right data AND that you can access, read and analyse it before making this change. If you can this may render this PR unnecessary?

Eh, it still feels like we should do this, but the CloudWatch shipping seems to meet the immediate need, so closing.


CLOS-OSPF Persistent Configuration

Currently the Cumulus VX guests which are deployed in these demos lose their configuration in the event they are reloaded. This is due to the provisioning programming the kernel and Quagga directly, rather than writing to persistent configuration files.
This branch updates the Ansible provisioning scripts for the CLOS-OSFP demo to write configuration directly to /etc/network/interfaces* and /etc/quagga/Quagga.conf.
One side note is that is does rely on the cl-interfaces Ansible module being installed. We can add that as a step to the VX+Vagrant User Guide until the module is bundled in an Ansible release.

This looks largely good to me; using cl_interfaces is great. We can deal with the addition of the Cumulus Ansible modules using Librarian (I'll email you with details)

@Vanders , having an Ansiblefile appeared to have no effect. Checkout 33597cc and let me know what you think.

+1 for me.  Get a +1 from someone who is more ansible-savvy and then we will merge ! @skamithi @Vanders


fix: Docs example e2e test

The docs example script was not running in CCI due to a misconfigured test name in the ci configuration. On top of that, the test command for e2e tests had a passWithNoTests flag, so this failed silently. Also, there were no tests defined on the test file, as it was just a script and the describe block was missing. And last, the test was outdated, as it was calling a function with a wrong number of arguments and another function that no longer existed in the token contract.
This PR fixes all of the above.

Benchmark results
Metrics with a significant change:

note_trial_decrypting_time_in_ms (8): 91.8 (+114%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 543f8a23 and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
676
676
676

l1_rollup_calldata_gas
6,412
6,400
6,412

l1_rollup_execution_gas
585,745
585,733
585,745

l2_block_processing_time_in_ms
1,316 (-1%)
4,638 (-3%)
9,450 (+6%)

note_successful_decrypting_time_in_ms
186 (-22%)
520 (+4%)
999 (-1%)

note_trial_decrypting_time_in_ms
:warning: 91.8 (+114%)
37.3 (-69%)
126 (-5%)

l2_block_building_time_in_ms
13,939
51,453
102,046

l2_block_rollup_simulation_time_in_ms
7,977
28,113 (+1%)
55,360

l2_block_public_tx_process_time_in_ms
5,939
23,291
46,592

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
14,382 (+4%)
27,231

note_history_successful_decrypting_time_in_ms
1,272 (+2%)
2,552 (+2%)

note_history_trial_decrypting_time_in_ms
135 (+52%)
194 (-4%)

node_database_size_in_bytes
18,583,632
35,139,664

pxe_database_size_in_bytes
29,859
59,414

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
236 (-1%)
44,379
28,214

private-kernel-ordering
209
52,880
14,296

base-parity
3,487 (-1%)
128
311

root-parity
1,334 (+2%)
1,244
311

base-rollup
16,720
165,760
861

root-rollup
49.5 (+1%)
4,359
725

private-kernel-inner
308 (-1%)
73,795
28,214

public-kernel-app-logic
126 (-1%)
35,252
28,217

public-kernel-tail
172
40,928
28,217

merge-rollup
9.38 (+5%)
2,568
861

public-kernel-teardown
123 (+3%)
35,252
28,217

public-kernel-setup
121 (+3%)
35,252
28,217

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
10.0 (+1%)
16.0 (+1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.6
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.584 (+1%)
0.496 (+1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
47.9 (+3%)
71.9 (-1%)
232
445
868
1,719
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
96.0
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.489 (+2%)
0.444 (-1%)
0.424
0.416
0.414
0.413
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
54.5
106 (-1%)
340 (+2%)
660 (-1%)
1,309
2,595 (-1%)
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
105
207
691
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.481
0.480 (-1%)
0.463 (+2%)
0.454 (-1%)
0.453
0.453 (-1%)
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
61.3

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
109

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.535

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
14,968
495,320

Transaction size based on fee payment method

Metric
none fee payment method
native fee payment method
fpc_public fee payment method
fpc_private fee payment method

tx_with_fee_size_in_bytes
773
905
1,161
1,377

Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
2,104 (+1%)
1,399
4,789 (+4%)

Metric
0 public data writes
1 public data writes
2 public data writes
3 public data writes
4 public data writes
5 public data writes
8 public data writes

tx_sequencer_processing_time_ms
12.8 (+9%)
730
548 (+3%)
1,499 (+3%)
608 (+5%)
2,604 (+3%)
699 (+5%)


Fix timeouts by making inner loop faster

Remove expensive nodeWalkPrior operation from the flatten loop, reduces timing back to v1.14.8 levels.
Remove extra whitespace when inlining, similar to old, complicated loop.
Drop jshint for eslint, fixed a few issues in the tests.
Fixes #336

@justinfagnani, @garlicnation PTAL

LGTM


exposing core types

solves #104, #114 and my code problems with "any" too 😂

Thanks again! Just published https://github.com/timolins/react-hot-toast/releases/tag/v2.2.0 wich includes this PR.


Create a testing module that includes helper methods to build mock responses for testing

Allows building response objects for testing applications that use this crate.
Implements a possibility to resolve #261

This change is

@jonhoo all comments addressed.  It looks much nicer with the modules.  Also the "parse" methods now have more complete example comments to test that things actually compile and run correctly.


service dies after a day

Hello
I have installed my app as an APK on my phone (Android) and what I see is that the service just automatically dies/stops after around 24 hours, without any reboot or anything.
This is my current code:
const RunCronjob = async () => {
  const sleep = (time) => new Promise((resolve) => setTimeout(() => resolve(), time));
  const myappBackgroundService = async (taskDataArguments) => {
      const { delay } = taskDataArguments;
      await new Promise( async (resolve) => {
          for (let i = 0; BackgroundService.isRunning(); i++) {
            // This is so it lets the dashboard get the data so dashboard loading work
            setTimeout(() => dataSyncCronJob(), 10000);
            dataSyncNotificationCronJob();

            //twice per day
            if (moment().format('HH') === '11' || moment().format('HH') === '23') {
              twicePerDayCronJob();
            }

            await sleep(delay);
          }
      });
  };

  const options = {
      taskName: 'myappCrons',
      taskTitle: 'myapp',
      taskDesc: '',
      taskIcon: {
          name: 'ic_myapp_notification',
          type: 'drawable',
      },
      color: '#ff8e23',
      parameters: {
          delay: 4 * 60 * 1000
      },
  };

  if (!BackgroundService.isRunning()) {
    await BackgroundService.start(myappBackgroundService, options);

    await BackgroundService.updateNotification();
  }
}

Any help is much appreciated!

Were you able to solve this problem? I am also running into it.

I am also facing this. Any fixes?


Issues with GLIB and GVFS

Has anyone managed to get the GVFS url-2-filepath function working within the sandbox?
It's probably a general issue with loading glib in the snappy environment, because i get the same issue in devmode:
(java:6222): GLib-GObject-WARNING **: cannot register existing type 'GLoadableIcon'
(java:6222): GLib-GObject-WARNING **: cannot register existing type 'GIcon'
(java:6222): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
(java:6222): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(java:6222): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

Is this in openjdk-demo?

No, it's a separate project. Just kinda thought all the people on the snappy mailing list are also active on playpen.
Any tips on how to debug glib issues would be much appreciated.


Optimization issues with log-likelihood maximization approach

When using an initial guess = correct solution + gaussian perturbation:
Nelder-mead does converges to a flat solution
BFGS with 2-point gradient estimation converges to a flat solution
BFGS with jac information does not move away from initial guess
Unexpected behavior, as the landscape is supposed to be convex.

Solved.


[k8s][clustertest] Add k8s support for flamegraph experiment

Summary
Add k8s support for flamegraph experiment
Test Plan
./scripts/cti -E RUST_LOG=debug -W kush --k8s --cluster-test-tag dev_kush_c302f12b --tag master_0660fec --run generate_cpu_flamegraph --k8s-fullnodes-per-validator=0 --k8s-num-validators=100

High level question - do we want to build util image with other images and use cluster-test-util:$CLUSTER_TEST_TAG instead of :latest?
This way we could include scripts such as flamegraph generation inside this image.
Also, this would allow us not to worry about releasing latest image and then figuring out compatibility between versions

I don't think we get any additional value by setting up and maintaining a continuous build.
Having one off builds pushed by developer makes sense for cluster-test-util because we don't want tools like perf or the Flamegraph repo to get automatically updated and potentially have breaking changes.

This way we could include scripts such as flamegraph generation inside this image.

We probably don't want to do that because we need to customize the script (eg setting the filename generated) from cluster-test itself.

Problem with one off builds is that if someone needs new :latest image for some new functionality, they will need to make sure image is still compatible with current master version of cluster test(since people are still submitting PRs).
If they are not careful enough and push latest image that is not compatible with current mater, they will break builds for everyone

We can still merge this diff, but I think we do need cont build for util image in a medium-long term
@bors-libra delegate+

:v: @ankushagarwal can now approve this pull request

@bors-libra r=andll

:pushpin: Commit 171ccdf has been approved by andll

@bors-libra r=andll

:pushpin: Commit 9571a97 has been approved by andll

@bors-libra r=andll

:pushpin: Commit 27fc870 has been approved by andll

:hourglass: Testing commit 27fc87021e25f7f287a4a4edb038e356a30e700e with merge 27267c5edf379f92d65057cfcd4ea2213ab973a9...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: andll
Pushing 27267c5edf379f92d65057cfcd4ea2213ab973a9 to master...


Snapcraft release is outdated

I noticed that the https://snapcraft.io/joplin-desktop latest release still points to v2.7.14, while the master commit history includes "Update to 2.8.7".
What does it take to get the snapcraft release synced up with 2.8.7 (now even 2.8.8)?

The 2.8 series hasn't been marked as stable upstream yet, and upstream has asked downstream to not release beta packages unless they're clearly separated as pre-release channels. While snaps can do this pretty well, I'm not keen to start doing it because based on my other packages there's usually not much benefit in terms of feedback.
There'll also be a longer than usual rollout for 2.8 because I've added a minimum version requirement for snapd itself that hasn't yet released, although I don't expect this to be the case for more than a week or so.

Ohhh, I didn't notice the pre-release label on the tags, all clear thanks!


cleanup(ci): cleaned up circleci workflow.

What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area CI
What this PR does / why we need it:
Now that master and release CI are on github actions, cleanup up circle ci config.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
NONE

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/cc @leogr @LucaGuerra @jasondellaluce

Thank you @FedeDP for this 🙏

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, FedeDP
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Andreagit97,FedeDP]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


compatible with h2 storage

// Describe your PR here; eg. Fixes #issueNo

Make sure that:

[x] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

compatible with h2
change default storage to H2

Let's separate multiple database configurations for now.

Let's separate multiple database configurations for now.

Codecov Report

Merging #918 (f00f446) into master (24d421f) will increase coverage by 0.23%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #918      +/-   ##
============================================
+ Coverage     76.60%   76.84%   +0.23%
  Complexity     2037     2037
============================================
  Files           331      331
  Lines          7507     7507
  Branches        832      832
============================================
+ Hits           5751     5769      +18
+ Misses         1316     1294      -22
- Partials        440      444       +4

Impacted Files
Coverage Δ
Complexity Δ

...soul/admin/service/init/LocalDataSourceLoader.java
100.00% <100.00%> (ø)
6.00 <0.00> (ø)

...omara/soul/sync/data/http/HttpSyncDataService.java
70.58% <0.00%> (+6.86%)
12.00% <0.00%> (ø%)

...soul/client/sofa/SofaServiceBeanPostProcessor.java
38.70% <0.00%> (+17.74%)
7.00% <0.00%> (+2.00%)

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 24d421f...f00f446. Read the comment docs.

Codecov Report

Merging #918 (f00f446) into master (24d421f) will increase coverage by 0.23%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #918      +/-   ##
============================================
+ Coverage     76.60%   76.84%   +0.23%
  Complexity     2037     2037
============================================
  Files           331      331
  Lines          7507     7507
  Branches        832      832
============================================
+ Hits           5751     5769      +18
+ Misses         1316     1294      -22
- Partials        440      444       +4

Impacted Files
Coverage Δ
Complexity Δ

...soul/admin/service/init/LocalDataSourceLoader.java
100.00% <100.00%> (ø)
6.00 <0.00> (ø)

...omara/soul/sync/data/http/HttpSyncDataService.java
70.58% <0.00%> (+6.86%)
12.00% <0.00%> (ø%)

...soul/client/sofa/SofaServiceBeanPostProcessor.java
38.70% <0.00%> (+17.74%)
7.00% <0.00%> (+2.00%)

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 24d421f...f00f446. Read the comment docs.


feat: next

:tada: This PR is included in version 3.4.1 :tada:
The release is available on:

GitHub release
v3.4.1

Your semantic-release bot :package::rocket:


Update dependencies and fix for newer version of config-file-provider…

… which has significant changes
Updating plugins in Jenkins updated config-file-provider to a more recent version which breaks this plugin. I've updated the dependencies in the pom and made the code changes required (which whilst aren't big, took some tracking down) due to major changes in the API. Tests pass. Tested locally in Jenkins and working fine.

Thanks for the help! Not many people are working during the holidays. With the come!


Get variables from name

Descritption
cu.global_vars["x"]
x = func.local_vars["x"]
lexical_block.local_vars["x"]

instead of / in addition to
local_vars = func.local_variables

for local_var in local_vars:
	if local_var.name == 'x':
		x = local_var

Depends on
#6
Estimated time

Thanks for the implementation. This is how I wanted it. Two points:

A function could contain multiple local variables with the same name (in different lexical blocks). Therefore the dependency #6.
And yes, it seems to be a bit inefficient. When you do it during the DWARF loading step, it could be more efficient. I have figured out that the global and local variables are both originally added in the method _load_dies which is in cle/backends/elf/elf.py.


Bug - Regex fails on trailing dashes

Hey thanks for taking the time to review this issue. When using the plugin v0.0.2 I run into an error when searching with a trailing hyphens. Example when searching "co-workers" or even the word "co-":
Invalid regular expression: /co\-worker/giu: Invalid escape

Here is the code causing the problem:
 const getRegex = (s, disableRegex, caseSensitive) => {
   return RegExp(disableRegex ? s.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&") : s, caseSensitive ? "gu" : "gui");
 };

Edited to better explain the issue

This seems to work for me:
RegExp(disableRegex ? s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') : s, caseSensitive ? "gu" : "gui");

This regex accounts for all the special characters that need escaping in a regular expression context and is comprehensive enough for general use cases.

@JosephScript, thanks for reporting both issues & fix. I've published 0.0.3 patch version for the fix with #5.

@JosephScript for some reason it wasn't fixed in 0.0.3, published 0.0.4 for the final fix.


patch: Update docusaurus action name again

Previous commits changed this back to the original name for this action.
Updating it back to the orignal title
Signed-off-by: Vipul Gupta (@vipulgupta2048) <EMAIL_ADDRESS>

LGTM


Solve best time to buy and sell stock

There are other variants of the buy/sell stock problem, so I had to rename the file. Other than that you did a great job.

Thanks!


Failed to build iOS app: double-quoted include "SqfliteImportPublic.h" in framework header, expected angle-bracketed instead

Adding my build logs here:
Running pod install...                                           1,856ms
Running Xcode build...
Xcode build done.                                           151.6s
Failed to build iOS app
Error (Xcode): double-quoted include "SqfliteImportPublic.h" in framework header, expected angle-bracketed instead
/Users/adnitkamberi/Documents/GitHub/blue-esim/blue_esim_flutter/ios/Pods/Target%20Support%20Files/sqflite_darwin/sqflite_darwin-umbrella.h:12:8

Error (Xcode): 'Flutter/Flutter.h' file not found
/Users/adnitkamberi/.pub-cache/hosted/pub.dev/sqflite_darwin-2.4.1-1/darwin/sqflite_darwin/Sources/sqflite_darwin/include/sqflite_darwin/SqfliteImportPublic.h:14:8

Error (Xcode): (fatal) could not build module 'sqflite_darwin'
/Users/adnitkamberi/Library/Developer/Xcode/DerivedData/Runner-bjtkyvsfwetfungwwnieasbodziw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/sqflite_darwin.bu
ild/VerifyModule/sqflite_darwin_objective-c++_arm64-apple-ios12.0-simulator_gnu++20/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test'
/Users/adnitkamberi/Library/Developer/Xcode/DerivedData/Runner-bjtkyvsfwetfungwwnieasbodziw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/sqflite_darwin.bu
ild/VerifyModule/sqflite_darwin_objective-c++_arm64-apple-ios12.0-simulator_gnu++20/Test/Test.mm:0:8

Error (Xcode): (fatal) could not build module 'sqflite_darwin'
/Users/adnitkamberi/Library/Developer/Xcode/DerivedData/Runner-bjtkyvsfwetfungwwnieasbodziw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/sqflite_darwin.bu
ild/VerifyModule/sqflite_darwin_objective-c++_x86_64-apple-ios12.0-simulator_gnu++20/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test'
/Users/adnitkamberi/Library/Developer/Xcode/DerivedData/Runner-bjtkyvsfwetfungwwnieasbodziw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/sqflite_darwin.bu
ild/VerifyModule/sqflite_darwin_objective-c++_x86_64-apple-ios12.0-simulator_gnu++20/Test/Test.mm:0:8

Error (Xcode): (fatal) could not build module 'sqflite_darwin'
/Users/adnitkamberi/Library/Developer/Xcode/DerivedData/Runner-bjtkyvsfwetfungwwnieasbodziw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/sqflite_darwin.bu
ild/VerifyModule/sqflite_darwin_objective-c_arm64-apple-ios12.0-simulator_gnu17/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test'
/Users/adnitkamberi/Library/Developer/Xcode/DerivedData/Runner-bjtkyvsfwetfungwwnieasbodziw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/sqflite_darwin.bu
ild/VerifyModule/sqflite_darwin_objective-c_arm64-apple-ios12.0-simulator_gnu17/Test/Test.m:0:8

Error (Xcode): (fatal) could not build module 'sqflite_darwin'
/Users/adnitkamberi/Library/Developer/Xcode/DerivedData/Runner-bjtkyvsfwetfungwwnieasbodziw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/sqflite_darwin.bu
ild/VerifyModule/sqflite_darwin_objective-c_x86_64-apple-ios12.0-simulator_gnu17/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test'
/Users/adnitkamberi/Library/Developer/Xcode/DerivedData/Runner-bjtkyvsfwetfungwwnieasbodziw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/sqflite_darwin.bu
ild/VerifyModule/sqflite_darwin_objective-c_x86_64-apple-ios12.0-simulator_gnu17/Test/Test.m:0:8

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.```

_Originally posted by @adnit in https://github.com/flutter/flutter/issues/157694#issuecomment-2442793144_

adnitkamberi@Adnits-Mac-mini ~ % pod --version
1.15.2

adnitkamberi@Adnits-Mac-mini ~ % ruby --version
ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [arm64-darwin24]

adnitkamberi@Adnits-Mac-mini ~ % where ruby
/opt/homebrew/opt/ruby/bin/ruby
/usr/bin/ruby

adnitkamberi@Adnits-Mac-mini ~ % where pod
/opt/homebrew/bin/pod

I am running macOS 15.0.1, Xcode 16.0, flutter stable channel
adnitkamberi@Adnits-Mac-mini ~ % flutter --version
Flutter 3.24.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 603104015d (4 days ago) • 2024-10-24 08:01:25 -0700
Engine • revision db49896cf2
Tools • Dart 3.5.4 • DevTools 2.37.3

My Podfile is like this:
# Uncomment this line to define a global platform for your project
platform :ios, '13.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

Similarly here, we're completely blocked since this morning (Montreal time):
Building staging.health.braver.pro for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: LU9Z5SG9T7
Running Xcode build...
Xcode build done.                                           76.7s
Failed to build iOS app
Error (Xcode): double-quoted include "RecordPlugin.h" in framework header, expected angle-bracketed instead
/Users/mathieudamours/Development/braver/platform-copy/dart/apps/mobile/ios/Pods/Target%20Support%20Files/record/record-umbrella.h:12:8

Error (Xcode): 'Flutter/Flutter.h' file not found
/Users/mathieudamours/.pub-cache/hosted/pub.dev/record-4.4.4/ios/Classes/RecordPlugin.h:0:8

Error (Xcode): (fatal) could not build module 'record'
/Users/mathieudamours/Library/Developer/Xcode/DerivedData/Runner-cpjsmorunysewhbbcfkywlgigqvt/Build/Intermediates.noindex/Pods.build/Release-staging-iphoneos/record.build/VerifyModule/record_objective-c++_arm64-apple-ios13.0_gnu++20/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test'
/Users/mathieudamours/Library/Developer/Xcode/DerivedData/Runner-cpjsmorunysewhbbcfkywlgigqvt/Build/Intermediates.noindex/Pods.build/Release-staging-iphoneos/record.build/VerifyModule/record_objective-c++_arm64-apple-ios13.0_gnu++20/Test/Test.mm:0:8

Error (Xcode): (fatal) could not build module 'record'
/Users/mathieudamours/Library/Developer/Xcode/DerivedData/Runner-cpjsmorunysewhbbcfkywlgigqvt/Build/Intermediates.noindex/Pods.build/Release-staging-iphoneos/record.build/VerifyModule/record_objective-c_arm64-apple-ios13.0_gnu11/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test'
/Users/mathieudamours/Library/Developer/Xcode/DerivedData/Runner-cpjsmorunysewhbbcfkywlgigqvt/Build/Intermediates.noindex/Pods.build/Release-staging-iphoneos/record.build/VerifyModule/record_objective-c_arm64-apple-ios13.0_gnu11/Test/Test.m:0:8

Error (Xcode): (fatal) could not build module 'record'
/Users/mathieudamours/Library/Developer/Xcode/DerivedData/Runner-cpjsmorunysewhbbcfkywlgigqvt/Build/Intermediates.noindex/Pods.build/Release-staging-iphoneos/record.build/VerifyModule/record_objective-c_arm64-apple-ios13.0_gnu17/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test'
/Users/mathieudamours/Library/Developer/Xcode/DerivedData/Runner-cpjsmorunysewhbbcfkywlgigqvt/Build/Intermediates.noindex/Pods.build/Release-staging-iphoneos/record.build/VerifyModule/record_objective-c_arm64-apple-ios13.0_gnu17/Test/Test.m:0:8

Encountered error while building for device.

As mentioned by others, each time a build is run, a different pod fails to build.
In our case it stared when we tried to upgrade to Flutter 3.24.4, but even going back to earlier commits in the past where we were on Flutter 3.23.3 and builds worked properly, now show the same errors even on a clean git checkout.
Tried all that was mentioned by others: flutter clean, pod deintegrate, xcode clean, reinstall. Nothing worked. I also tried removing the entirety of the ios/ folder and rebuilt it to have a similar configuration as we currently have with entitlements, flavors and all, and came right back to the same issues.
❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.4, on macOS 14.6.1 23G93 darwin-arm64, locale en-CA)
[✗] Android toolchain - develop for Android devices
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.94.2)
[✓] Connected device (7 available)
[✓] Network resources

! Doctor found issues in 2 categories.

For me it was an issue with cocoapods, there is a new version released and after updating the issue is resolved.

This was driving me crazy, but hopefully https://github.com/CocoaPods/CocoaPods/releases/tag/1.16.0 fixes it.

This one works for me https://github.com/flutter/flutter/issues/157694
Downgrade xcodeproj from 1.26.0 to 1.25.0 by the following command.
sudo gem install xcodeproj  --version=1.25.0"

Oh, thank you! I thought I was going crazy; I tried everything but still have no idea how this annoying issue is happening, lol.
UPDATE: By upgrading CocoaPods to 1.16.0, everything works well. Here are the steps I followed:

Upgrade xcodeproj and cocoapods:

   sudo gem update xcodeproj      # this upgrades to 1.26.0
   sudo gem update cocoapods      # this upgrades to 1.16.0

Fully clean and re-install pods:

flutter clean
cd ios
rm -rf Pods/
rm -rf Podfile.lock
pod install --repo-update

Now you should be able to build your app successfully 🚀

As I can see, most of the logs above show that the error comes from 3rd party plugins but not from 1st party plugins or Flutter framework.

By upgrading CocoaPods to 1.16.0, everything works well

@adnit Does this also work for you?

I was having a nightmare yesterday's night. I can confirm updating cocoapods to 1.16.0 solved the issue.

In my case, I'm already using version 1.16.0, but it's still not working.
(base)  yunseongmun@yunseongmuns-MacBook-Air  ~/Golbang_FE/golbang_jb/ios  ↱ main ±✚  sudo gem update xcodeproj      # this upgrades to 1.26.0
sudo gem update cocoapods      # this upgrades to 1.16.0
Updating installed gems
Nothing to update
Gems already up-to-date: xcodeproj
Updating installed gems
Nothing to update
Gems already up-to-date: cocoapods

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/yunseongmun/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.12+1/ios/image_picker_ios/Sources/image_picker_ios/messages.g.m:11:8

@loading1031 could you share some more details?
Flutter version
xcode version
...
Have you cleaned your dependencies after updating cocoapods?
cd ios
pod deintegrate
rm Podfile.lock
rm -rf Pods
pod install
cd ..
flutter clean
flutter pub get
flutter run

In my case, I'm already using version 1.16.0, but it's still not working.
(base)  yunseongmun@yunseongmuns-MacBook-Air  ~/Golbang_FE/golbang_jb/ios  ↱ main ±✚  sudo gem update xcodeproj      # this upgrades to 1.26.0
sudo gem update cocoapods      # this upgrades to 1.16.0
Updating installed gems
Nothing to update
Gems already up-to-date: xcodeproj
Updating installed gems
Nothing to update
Gems already up-to-date: cocoapods

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/yunseongmun/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.12+1/ios/image_picker_ios/Sources/image_picker_ios/messages.g.m:11:8

Hi, sorry to hear that. I hope your nightmare is soon behind you...
Could you please provide more details about your installation ? (eg: flutter version and dart version)
Also:

make sure your packages are up-to-date (by exec flutter pub upgrade -> you shouldn't have breaking changes).
did you completely re-install your pods ?

Thankyou for your interest
@SebastianKlaiber
I attempted to work on it yesterday with SPM, but I had to stop as it wasn’t successful.
When I ran the code you sent, I encountered the following error:

Error Details
```
Uncategorized (Xcode): Exited with status code 127 Could not build the application for the simulator. Error launching application on iPhone 16 Plus
```
I’ll try to troubleshoot it this evening and give it another go.
But It didn’t work yesterday either, unfortunately…

@cyrilcolinet
Here it is..!

Flutter doctor
(base)  yunseongmun@yunseongmuns-MacBook-Air  ~/Golbang_FE/golbang_jb/ios  ↱ main ±✚  flutter doctor -v
[✓] Flutter (Channel main, 3.27.0-1.0.pre.286, on macOS 14.5 23F79 darwin-arm64, locale ko-KR)
    • Flutter version 3.27.0-1.0.pre.286 on channel main at /Users/yunseongmun/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ebc80f0164 (7 hours ago), 2024-10-29 11:51:26 -0400
    • Engine revision 4cb4478016
    • Dart version 3.7.0 (build 3.7.0-78.0.dev)
    • DevTools version 2.40.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/yunseongmun/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16A242d
• CocoaPods version 1.16.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
</details>

Xcode version 16.1 was my problem.
This worked for me.

Xcode 15.4 (Xcode CLT 16.0 or 16.1 did not work)
Pod 1.16.1
xcodeproj 1.26.0
cocoapods 1.16.1

and clearing cache as described above https://github.com/flutter/flutter/issues/157694#issuecomment-2443321940

Xcode 15.4 (Xcode CLT 16.0 or 16.1 did not work)
Pod 1.16.1
xcodeproj 1.26.0
cocoapods 1.16.1

As you suggested, I tried to update my Xcode version, but I found that my Xcode isn’t up-to-date. However, I’m running into storage issues, so I can’t install a new version or update the existing one. I’ll share the current process with other developers on the team and let them know about the Xcode version situation as well 😭
thank you for letting me know

This one works for me #157694 Downgrade xcodeproj from 1.26.0 to 1.25.0 by the following command.
sudo gem install xcodeproj  --version="1.25.0"

I downgrade my xocdeproj from 1.26.0 to 1.23.0
This is a tremendous success. A grateful heart. 🥳🥳🥳

Make sure that the dependencies of sqflite and Flutter are correctly added in your Podfile. You can try running pod install or pod update to update the dependencies.
If you have other packages to download,
you can try using servbay, which currently supports one-click deployment of mongoDB/php/nodejs/mariadb

@loading1031 maybe try to remove derived data from xcode ?
My side I use DevCleaner tool from app store by you can do it manually by completely close XCode and executing
rm -rf ~/Library/Developer/Xcode/DerivedData/*

We have the same problem and completely blocked with ios releases. Tried on 2 different machines.
Cocoapods are also the latest version - 1.16.1.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.4, on macOS 14.7 23H124 darwin-arm64, locale en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] IntelliJ IDEA Community Edition (version 2022.3.3)
[✓] VS Code (version 1.94.2)
[✓] Connected device (3 available)
[✓] Network resources
pod --version
1.16.1
I tried cleaning up everything as everyone here and in other issues suggested - no progress. Every time we have the same result - a random dependency with this error as original post here.
Even if I update every package that shows up in the error, at some point it starts showing the packages I've just updated.

@Tigls what is your xcodeproj gem version ?

@cyrilcolinet I am using xcodeproj version 1.26. Installing version 1.25 via gem does not downgrade it, as I previously didn't have xcodeproj installed via gem.
However, my colleague has xcodeproj 1.25 and CocoaPods 1.15.2, and he is experiencing the same issue. He upgraded CocoaPods to 1.16.1, but it still had no effect.

@Tigls you can try to upgrade Xcode Project Version like the following:

Click on the main target on project structure, and you'll be able to select project version on right side.
Lemme know

As you suggested, I tried to update my Xcode version, but I found that my Xcode isn’t up-to-date. However, I’m running into storage issues, so I can’t install a new version or update the existing one. I’ll share the current process with other developers on the team and let them know about the Xcode version situation as well 😭
thank you for letting me know

Hi @loading1031, maybe you can follow the step aboce and let us know if it works

It works on latest Xcode 16.1, cocoapods 1.16.1, xcodeproj 1.26.0. Marking the issue as closed

适用于最新的Xcode 16.1、cocoapods 1.16.1、xcodeproj 1.26.0。将问题标记为已关闭

I have already updated all the tools to match your versions, but I am still encountering similar errors when using the in_app_purchase plugin.

/Users/leo/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/in_app_purchase_storekit-0.3.18+3/darwin/Classes/FIAPRequestHandler.h:5:9 'FLTRequestHandlerProtocol.h' file not found with  include; use "quotes" instead

Then I made local code modifications to the in_app_purchase plugin, and the project ran successfully.

Before modification：
`
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <FLTRequestHandlerProtocol.h>
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface FIAPRequestHandler : NSObject

(instancetype)initWithRequest:(SKRequest *)request;
(void)startProductRequestWithCompletionHandler:(ProductRequestCompletion)completion;

@end
// The default request handler that wraps FIAPRequestHandler
@interface DefaultRequestHandler : NSObject
// Initialize this wrapper with an instance of FIAPRequestHandler

(instancetype)initWithRequestHandler:(FIAPRequestHandler *)handler;
@end
NS_ASSUME_NONNULL_END
`

After modification：
`
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "FLTRequestHandlerProtocol.h"
#import "Foundation/Foundation.h"
#import "StoreKit/StoreKit.h"
NS_ASSUME_NONNULL_BEGIN
@interface FIAPRequestHandler : NSObject

(instancetype)initWithRequest:(SKRequest *)request;
(void)startProductRequestWithCompletionHandler:(ProductRequestCompletion)completion;

@end
// The default request handler that wraps FIAPRequestHandler
@interface DefaultRequestHandler : NSObject
// Initialize this wrapper with an instance of FIAPRequestHandler

(instancetype)initWithRequestHandler:(FIAPRequestHandler *)handler;
@end
NS_ASSUME_NONNULL_END
`

Although the local code runs successfully, I don’t think this is a good solution, especially when using Jenkins for builds, as it may not resolve the issue effectively.

@Leo199206 had you tried this https://github.com/flutter/flutter/issues/157761#issuecomment-2447777827 ?

@cyrilcolinet I can also confirm that updated version of cocoapods to 1.16 solved the problem.
My problem was that the local environment was different from the fastlane environment. Fastlane "bundle install" command was still installing the cocoapods 1.15.2 even though the version in the gem file was not specified and supposed to be the latest.
After running "bundle update" fastlane updated its cocoapods to 1.16 - everything started to build successfully.
Thank you, guys!

@Tigls Oh yeah good point! Happy coding 🙃

@Leo199206您尝试过这个#157761 (评论)吗？

I’ve tried it, but it didn’t work for my project.

I’ve tried it, but it didn’t work for my project.

Looks like the solution given by @Tigls works for big majority of users, can you confirm that this solution don't work for you as well?

I'm building on XCode Cloud (suposed to use the lastest versions) and still don't work.
Error
`'Flutter/Flutter.h' file not found
OpenFilePlugin.h:1`

Xcode Project versio 16.0
Xcode 16.1 (16B40)
macOS Sequoia 15 (24A335)
Cocoapods 1.16.2
Dart SDK constrained to ^3.5.4 -> Flutter Version [3.24.4]

I’ve tried it, but it didn’t work for my project.

Looks like the solution given by @Tigls works for big majority of users, can you confirm that this solution don't work for you as well?
Confirm, my system version is macOS Sequoia 15.1.

Flutter Version Information
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.1 24B83 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Android Studio (version 2024.1)
[✓] Android Studio (version 2024.2)
[✓] Android Studio (version 2024.1)
[✓] Android Studio (version 2024.1)
[✓] IntelliJ IDEA Community Edition (version 2022.1.4)
[✓] Connected device (4 available)
    ! Error: Browsing on the local area network for 14 Pro Max. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

Argh, to be honest I don't have any other idea to help you there, sorry.
Hope someone (or God) will ear you and help you on that 🚀


Open popup with keyboard shortcut

Ability to activate the toolbar popup with a keyboard shortcut.
There's an option to set a hotkey on the Chrome version but it has no effect, while there's no option for it on the Firefox version.

Do you mean a hotkey that when pressed, opens the extensions popup window?

Yep, this saves time moving the cursor and clicking to access the extension.

I should be able to add that. I will add this with the features requested in #8 for the next update which should hopefully be ready soon.

Great, thank you.

This has been added in version 1.9.0, which has been released on Firefox, is pending approval on Chrome and is available on release candidate for snapcraft.


Regent: RDIR breaks on cross product accesses

This test case hits a validator assertion with RDIR (RDIR is turned off for this test at the moment):
https://gitlab.com/StanfordLegion/legion/blob/master/language/tests/regent/run_pass/region_partition_access_cross_product.rg
RDIR seems to emit the exact same declaration for every cross product access cp[c] when c is constant. Also, commenting out this line reproduces another bug, which may or may not be due to the same cause:
https://gitlab.com/StanfordLegion/legion/blob/master/language/tests/regent/run_pass/region_partition_access_cross_product.rg#L35

SCR is gone now.


Particle JS above text in div

Contact Details
No response
What do you need?
Hi umm,
So I needed to use particles in a div and have them appear above my text (the text is centered) on the page, i.e I dont want the particles to take up the entire screen but have them only appear in the herotext div like so:

Also note, I am using the 2.12.0 version because the anything thing after that does not seem to work even for the whole page, dont know why tho.
I tried wrapping them together in a 'container div' with the following css, but doing so gave me a full canvas and a 'tsparticles' container with no height. I tried this from issue number #1277.
html

Einstein Dots


Create skeleton user settings page

Summary
As the final tab of our application, we need to add a user settings page. This issue can encapsulate just creating the UI to be compliant with wireframes made by @BrianHHough

[ ] user can navigate to app by clicking settings tab
[ ] settings page looks similar to wireframe

Motivation
As we move this app closer to a done state, we need to ensure that all relevant features are there and clickable
Describe alternatives you've considered
No alternatives, we need this page

I was testing an idea, what do you think?

Nice! I like this a lot as a start. I definitely am a fan of the popup vs a fully separate page. I'd say keep going down this route, I'll assign you 👍


CLI not working with yarn 3.6.4 or yarn 4.0.1 on Windows

Describe the bug
Unable to run CLI when using latest stable versions of yarn 3 or 4
Tried with latest stable (4.0.1) and then 3.6.4 (https://github.com/supabase/cli/issues/1380)
Deleted yarn.lock/.yarn/.pnp.*
To Reproduce

Open terminal
Run yarn supabase -h

Full repro:
# yarn 3
mkdir test-yarn3 && cd test-yarn3 && yarn init -y && yarn set version 3.6.4 && yarn add -D supabase && yarn supabase -h
# yarn 4
mkdir test-yarn4 && cd test-yarn4 && yarn init -y && yarn set version 4.0.1 && yarn add -D supabase && yarn supabase -h

Expected behavior
CLI's help screen
Screenshots
$ node -v
v19.6.0
$ yarn -v
4.6.4
$ yarn supabase -h
G:\dev\proj-15-demo\.pnp.cjs:28556
  return Object.defineProperties(new Error(message), {
                                 ^

Error: Qualified path resolution failed: we looked for the following paths, but none could be accessed.

Source path: G:\dev\proj-15-demo\.yarn\unplugged\supabase-npm-1.110.2-8a9a0308b6\node_modules\supabase\bin\supabase
Not found:   G:\dev\proj-15-demo\.yarn\unplugged\supabase-npm-1.110.2-8a9a0308b6\node_modules\supabase\bin\supabase

    at makeError (G:\dev\proj-15-demo\.pnp.cjs:28556:34)
    at resolveUnqualified (G:\dev\proj-15-demo\.pnp.cjs:30328:13)
    at resolveRequest (G:\dev\proj-15-demo\.pnp.cjs:30369:14)
    at Object.resolveRequest (G:\dev\proj-15-demo\.pnp.cjs:30425:26)
    at resolve$1 (file:///G:/dev/proj-15-demo/.pnp.loader.mjs:1989:21)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:416:18)
    at ESMLoader.import (node:internal/modules/esm/loader:517:22)
    at node:internal/modules/run_main:56:28

Node.js v19.6.0

Desktop (please complete the following information):

OS: Windows 10
Version of CLI v1.106.1
Version of supabase-js v2.38.4
Version of Node.js  v19.6.0

Additional context
Works as expected on Linux with Docker (e.g. docker run --rm --workdir=/tmp -it node:slim bash)

NVM, forgot that PnP isn't supported.
yarn config set nodeLinker node-modules
yarn install

Works like a charm for me on OSX. Most likely something with the Windows env, but don't have a VM at hand to test this.

Thanks for the test.
After updating my issue with Docker and Linux and now macOS, clearly seems like an issue with Windows.
Repro available with CircleCI + Windows: https://app.circleci.com/pipelines/github/bre7/supabase-1624/3/workflows/7426761f-52b3-42c3-89fd-012f0145469c/jobs/3

Are there any updates to this issue ?

There a couple of issues that lead to this problem with yarn 4 on windows

Yarn 4 no longer looks up binaries in node_modules/.bin directory.
Node doesn't execute extensionless bin path in package.json on windows.

This is complicated to solve because we use the same package.json for Linux / macOS which support extensionless binary paths.
Previously we workaround no. 2 by adding a symlink to node_modules/.bin on windows but due to no. 1 this is no longer viable.
Until we find a way to update yarn's bin path from postinstall, you won't be able to use yarn supabase commands. Instead, you will have to invoke the binary directly from its installation directory. Powershell example:
& "$(yarn bin supabase).exe" --version

Note the leading & character.


Add "dotnext" assembly type

/hold
Name is not yet set in stone.

/unhold
"preview" is the name of the assembly type


Unregister/register service not working in beforeEach

Using the latest with new test style and attempting to stub out an existing service with a mock one for my acceptance/other tests doing the following:
<EMAIL_ADDRESS><EMAIL_ADDRESS>const setupLocalAcceptanceTest = function(hooks) {
  hooks.beforeEach(function() {
    this.owner.unregister('service:stream');
    this.owner.register('service:stream', STREAM_STUB);

module('Acceptance | test/stream-mixin', (hooks) => {
  setupApplicationTest(hooks);
  setupLocalAcceptanceTest(hooks);

This does not work and in my test the real service is used. Am I missing something or should this work? Also tried injecting the mock service as this.owner.inject('route', 'stream', 'service:stub-stream') which didn't work either. Ideally I can replace it via the registration method.

Can you provide a demo repo so we can try to help figure this out? Generally speaking, this type of thing is known to work...

will get to it this week, started playing with ember twiddle

I suspect the issue is that something eagerly looks up the service:stream in an instance-initializer. If this is the case, there is no way to register a stub (because the instance-initializers are ran before any user-land hooks in the new testing system).

I just checked and I only have 1 instance initializer which is for a mirage workaround... I do have an initializer for the stream service:
export function initialize(application) {
  application.inject('component', 'stream', 'service:stream');
  application.inject('controller', 'stream', 'service:stream');
  application.inject('route', 'stream', 'service:stream');
}

export default {
  name: 'stream',
  initialize,
};

and also it is used right away in the app route

Hmm, an initializer like this seems fine generally speaking. But anything that forces the service:stream to exist eagerly (the main place this can happen is via an instance-initializer) will mean that you cannot stub it. For example, if you have any instance-initializers that look up routes, controllers, or components eagerly you will be unable to stub service:stream.
One example that I ran into earlier this week is that ember-simple-auth adds an instance-initializer that looks up route:application, which would cause exactly the issues you are seeing.

interesting, we are using ember-simple-auth.. how could I check if that was the cause? I'll be honest I was able to get around it by doing this less ideal solution:
    // mock the stream service methods -- could not get straight up unregister/
    // register to replace the original for some reason so stubbed the methods
    // instead for now -- revisit later -- 2/10/2018.
    this.owner.lookup('service:stream').setProperties({
      connect() { return RSVP.resolve(); },
      disconnect() { return RSVP.resolve(); },
      getConnection() { return RSVP.resolve(); },
      reconnect() { return RSVP.resolve(); },
      register() {},
      subscribe() { return RSVP.resolve(); },
      unregister() {},
      unsubscribe() { return RSVP.resolve(); },
    });

just ran into same problem on same app when adding an integration test helper that mocks out services: ```export function setupIntegrationTest(hooks) {
hooks.beforeEach(function() {
this.owner.register('service:logger', Service.extend(STUB_BASE.logger));
this.owner.register('service:store', Service.extend(STUB_BASE.store));
this.owner.register('service:stream', Service.extend(STUB_BASE.stream));
this.owner.register('service:user', Service.extend(STUB_BASE.currentUser));
this.logger = this.owner.lookup('service:logger');
this.store = this.owner.lookup('service:store');
this.stream = this.owner.lookup('service:stream');
this.user = this.owner.lookup('service:user');
```module('Integration | Component | to-elsewhere/modals/foo', (hooks) => {
  setupRenderingTest(hooks);
  setupIntegrationTest(hooks);

So that would make impossible to stub store service?

Can you try the following?
test('my test', function(assert) {
    const owner = Ember.getOwner(this);
    // Your code with owner to get the service
    owner.lookup(‘service:stream’)
});

I run into the same issue on 3.1.
@rajneeshnagarro owner is undefined: Cannot read property 'lookup' of undefined

I am having the same issue and I also get Cannot read property 'lookup' of undefined when running the example in @rajneeshnagarro example using Ember 3.0

I also ran into this issue when attempting to mock service:store in a unit test.
Using unregister inside Ember.run seems to get around it for now:
  hooks.beforeEach(function() {
    run(() => {
      this.owner.unregister('service:store');
      this.owner.register('service:store', MockStore);

      this.mockstore = this.owner.lookup('service:store');
    });
  });

So I have run into this issue as well but it's only until @Bushjumper's comment. unregister does run loop stuff, is the intention that we use the runloop here?
Also, do I need to unregister something, in order to register it?

Still seeing this issue when mocking the service:router inside integrations tests.

We also encountered this issue. Would be nice to use beforeEach because it would make our testing code smaller :-)

Still seeing this issue when mocking the service:router inside integrations tests.

Don't do that 😈. Seriously though, why would you want to mock the router?

FWIW, I'm going to close this issue:

ember-cli-qunit is deprecated
the issue is fairly well known/understood

I'd totally be open to making an issue on emberjs/ember-test-helpers to warn/assert when someone attempts to register something that has already been instantiated. That would at least remove the WAT factor of "why isn't my fake service being used"...

I'd totally be open to making an issue on emberjs/ember-test-helpers to warn/assert when someone attempts to register something that has already been instantiated. That would at least remove the WAT factor of "why isn't my fake service being used"...

@rwjblue I've created https://github.com/emberjs/ember-test-helpers/issues/672 to implement a warn/assert as you suggested

Still seeing this issue when mocking the service:router inside integrations tests.

Don't do that 😈. Seriously though, why would you want to mock the router?

As for ☝, my use case is quite simple: I want my component to be aware of the router's currentRouteName. I don't really see why this would be a bad practice, but maybe you can enlighten me 🤩

Just to be clear my point wasn't: don't use the router service, it was: don't mock the router service. Mocking leads to extremely brittle tests and often times to tests that pass when "reality is broken". The router service is perfectly capable of being used in these types of test, it can be used directly.

Since discussing the mocking of the router service is a bit off topic here, I've opened https://discuss.emberjs.com/t/to-stub-or-not-to-stub-the-router-service-in-integration-tests/16742 for the discussion to continue

I made a helper:
https://github.com/emberjs/ember-test-helpers/pull/689/files
:-/

Still seeing this issue when mocking the service:router inside integrations tests.

Don't do that 😈. Seriously though, why would you want to mock the router?

Because sometimes we need to mock the currentRouteName
this.owner.unregister('service:router');
this.owner.register('service:router', routerServiceMock);

const routerServiceMock = Service.extend({
  currentRoute: {
    name: 'someRouteName'
  }
});

Not sure if there are better ways

Just to be clear my point wasn't: don't use the router service, it was: don't mock the router service. Mocking leads to extremely brittle tests and often times to tests that pass when "reality is broken". The router service is perfectly capable of being used in these types of test, it can be used directly.

I know I am a little late to respond but I wanted to respond to this point. Mocks are very useful in certain types of test because most of the time we are writing unit tests, which should only be testing the functionality of the unit in question, and mocking calls to methods in services (for example) is very useful if they have complicated functionality we don't want to handle in that particular test. In this particular thread we are talking about mocks in acceptance tests which is more of a grey area. If you really want to mock a method in the router I would suggest you use a mocking library like sinon to just stub the one method, rather than stubbing the whole service.
I am happy to be corrected on this though, I am always looking for the best ways of testing code.

Just to explain the dev experience here...
I found that following the canonical guides on "how to mock a service in a component" weren't working. I struggled with the issue for a few hours. I came here, and found there was no meaningful answer.
The docs/guides imply any service can be mocked to help test components, but that is not reality. I too want to stub basic behavior like "currentRoute.name", and it appears I can't

Just to give some context about the dev experience from my perspective...
I found that following the canonical guides on "how to mock a service in a component" wasn't working. I struggled with the issue for a few hours. I came here, and found there was no meaningful answer.
The docs/guides imply any service can be mocked to help test components, but that is not reality. I too want to stub basic behavior like router:currentRoute.name, and it appears I can't

Can you not just use Sinon to create a stub object or create an Ember object in the test and overwrite the router service in the component (passed in as an argument) or use Sinon to stub currentRoute in the router and set name on the stub?

Just to give some context about the dev experience from my perspective...
I found that following the canonical guides on "how to mock a service in a component" wasn't working. I struggled with the issue for a few hours. I came here, and found there was no meaningful answer.
The docs/guides imply any service can be mocked to help test components, but that is not reality. I too want to stub basic behavior like router:currentRoute.name, and it appears I can't

Can you not just use Sinon to create a stub object or create an Ember object in the test and overwrite the router service in the component (passed in as an argument) or use Sinon to stub currentRoute in the router and set name on the stub?

For sure. And the workaround above to use unregister works fine too.
But I guess my broader point is that the Testing Components article on ember.com has this text...

In cases where components have dependencies on Ember services, it is possible to stub these dependencies for rendering tests. You stub Ember services by using the built-in register() function to register your stub service in place of the default.

...which isn't always accurate. The taught Ember way for stubbing services has the gotchas described here by myself and others.
I should've amended my comment above from "..and it appears we can't" to "...it appears we can't as described by the docs".
Sorry to tack on to an old issue in a deprecated repo, but this is my first Google result for "ember stub service not working" so I thought it was worth calling it out here.

You are able to submit pull requests to update the ember guides and they do get approved quite quickly. You could add a warning to the guides saying that certain services, like router, should/can not be mocked.

The router can be mocked. At least in < 3.20.
The big stipulation around registering services in general is that if they are accessed before registration (such as in an initializer either in app or addon), the registration will silently fail.
The best DX I can think of for that is to add an assertion that alerts you to that behavior/situation.
That said, I'm also in the camp of 'it's not a good idea to stub things like the router's - it leads to over stubbing and tests that are overly tied to implementation details, making refactors annoying

https://github.com/ember-learn/guides-source/pull/1635


Can't install dependencies with yarn

Node: v16.4.2
Yarn: 1.22.10
1 - Clone git, run yarn
Get error:
[5/5] 🔨  Building fresh packages...
$ npm run build

><EMAIL_ADDRESS>build
> react-scripts build

Creating an optimized production build...
Failed to compile.

src/pages/accounting/index.tsx
  Line 25:101:  Replace `·useContext(⏎····BeeContext,⏎··` with `⏎····useContext(BeeContext`  prettier/prettier

Search for the keywords to learn more about each error.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Hi, thanks for the report. We do not officially support yarn, but I've created a fix for this issue (see #186). Please note that we have encountered issues with yarn v1.x so consider updating to v2.x


[FEATURE REQUEST] community support

"We could really use a feature to accept donations from users. I know plenty of folks who'd be up for it, and it'd help cover the bills for every Chibisafe owner. Feel free to add any payment method you can code—suggestions include Strike.me, PayPal, Coinbase Commerce, and more."
https://i.pics.rs/IIsOy.png

This is not something we'll be adding for now.
As an alternative, you can build chibisafe and implement these changes in your instance for your users.


Add extra info to verbose requests to PodSandboxStatus

What I did

I added version info in a JSON object to this response when verbose is set to true here.

How I did it

I added some tests to cover the functionality before changing it, these tests include some fixture that maybe could be good to move to some other place.

How to verify it

The tests should be enough, but if that grpc endpoing can be easilly called it should return the version info in a JSON object.
If PodSandboxStatusRequest.Verbose is true now we are returning the cri-o
version in a JSON object for debug purposes. In the future extra information
(to be defined) should be added to the response

Description for the changelog

Add extra info to verbose requests to PodSandboxStatus

Extra notes

We should probably add more info to that endpoint, but I don't know what should be shown there.
I know that adding an extra vendored dependency could be painful in a big project, but I strongly recommend this: https://github.com/stretchr/testify to don't duplicate asserts logic.
As I previously mentioned, some of the fixtures I added could be helpful in some other place (or maybe there are already there and I didn't know it).

The tests are failing on Travis because it seems the user running the test don't have permissions to chown on /tmp. I honestly don't know how to get around this issue, on my machine I am using a container as root.
I am also using vfs instead other option to avoid an error here: https://github.com/kubernetes-incubator/cri-o/blob/master/vendor/github.com/containers/storage/drivers/driver.go#L221
How this testing can be performed in some other way to make it pass on CI?

/ok-to-test

@agonzalezro We'll have to check if travis supports any tmp directory.

Apparently you can set TMPDIR=/tmp in .travis.yml file as environment variable.

@mrunalp I tried to change the test to use $TMPDIR but it didn't work.
Do you have any other idea about how to work this around? Do you have or can think on a better way to "mock" this?

I did the requested changes, however I don't know how to solve the issue
with the chown. If you are ok with tunning the tests as root, at leat tor
try, I can do the needed change.

--
@agonzalezro http://twitter.com/agonzalezro or my blog
http://agonzalezro.github.io/

Not sure how you can do a chown with out running as privileged, you need CAP_CHOWN, although I don't see where it is failing.  I did not understand the second part of your comment.

Sorry, I wrote the message from the email (I edited the previous comment).
Where I said "tunning" I meant "running", add a sudo to the make test instruction inside the .travis.yml file.

@agonzalezro I think you need to run tests as root.

I think you need to run tests as root.

I agree, see my sudo make testunit in .travis.yml suggestion.

With sudo everything becomes green :) Thanks to all!

LGTM
@mrunalp @runcom PTAL
Do we need to run e2e tests?

@agonzalezro I think you should rebase this PR>

@rhatdan done

/test all

I can only see the Jenkins results.
And what I see there seems like a timeout. Is that really related with my tests or is it a glitch in the integration tests?

Most likely the same issue we have been seeing on RHEL,  There seems to be a race condition bug in the kernel.  There is an issue talking about it.
/test integration_rhel

Passes all tests.
Merging.