How to know if a point exist at my mouseclick coordinates

Hi guys,
It is possible to know when i click with my mouse on the shapefile there is a point on my shapefile or not at the click coordinates ? I know how to get my click coordinates but how can i know if there is a point there ? Should i do something like : foreach(feature f in pointLayer.DataSet) { if(f.getOrdinate == map1.PixelToProj(e.Location) But it wont work because i don't know where are my features so foreach(feature f in pointLayer.DataSet) wont work.
If you can help me
Thank you.

First create an Envelope that contains your mouse click point and buffer it a little bit because selection doesn't work for points.
Coordinate c = Map.PixelToProj(e.Location);
Envelope env = new Envelope(c);
double tol = map1.MapFrame.ViewExtents.Width / 10000;
env.ExpandBy(tol);

Then use the envelope to get all the point features that intersect it.
Envelope affected;
pointLayer.Select(env, env, SelectionMode.Intersects, out affected); // select the points
List<IFeature> features = layer.Selection.ToFeatureList(); // get all selected points
layer.Selection.Clear(); // clear the selection so your points aren't drawn blue

Thank a lot ! I was searching for that since 4 days !
If i want to edit a selected point should i do that ? How can i get the point values ? :
Envelope affected; pointLayer.Select(env, env, SelectionMode.Intersects, out affected); // select the points List<IFeature> features = layer.Selection.ToFeatureList(); // get all selected points foreach( Feature f in features){ Array edit = f.DataRow.ItemArray; //? }

@Tisscl If you want to insert code please insert the code into the editor first and then select it and click on insert code. The editor will add 3 ` before and after your code and it will be easier readable.
Sorry it took so long to answer, but I had other problems to solve first ;)
You can edit the attributes of the feature by setting f.DataRow("{your field name}") = {your new value}.
If you want to have the X-, Y-Coordinates of your feature have a look at f.Geometry.Coordinates.

Thank for the tip ;),
I can't edit the atributes of the feature by setting f.DataRow("{your field name}") = {your new value}
It says : "feature.DataRow can't be call as a method" Did i mess something ?
Here is my code :
case "edit":
                    if(e.Button == MouseButtons.Left)
                    {
                        MessageBox.Show("edit");
                        Coordinate c = map1.PixelToProj(e.Location);
                        Envelope env = new Envelope(c);
                        double tol = map1.MapFrame.ViewExtents.Width / 10000;
                        env.ExpandBy(tol);
                        Envelope affected;
                        pointLayer.Select(env, env, DotSpatial.Symbology.SelectionMode.Intersects, out affected); // select the points
                        List<IFeature> features = pointLayer.Selection.ToFeatureList(); // get all selected points
                        foreach(IFeature f in features)
                        {
                            f.DataRow("{Référence}") = {"test"};

                        }
                        //pointLayer.Selection.Clear(); // clear the selection so your points aren't drawn blue
                        map1.Refresh();
                        map1.ResetBuffer();
                        map1.FunctionMode = FunctionMode.Pan;
                        map1.Cursor = Cursors.Default;
                        pointmouseClick = false;
                    }
                    break;

remove the { } around Référence and "test" it was just to indicate that {your new value} would have to be replaced by whatever your values are.

Even if i remove the { }, it says "feature.DataRow can't be call as a method"

Ah sorry. This is C# not VB, so it would have to be:
 f.DataRow["Référence"] = "test";

Ahah no problem ;)
And if i want to remove the point instead of editing it should i do like that : f.DataRow["Référence"] = ""; Set a null value ?

If you remember, I explained how to remove features in #922 in part 2 of my last post. So to delete your point use this:
pointLayer.DataSet.Features.Remove(f); // remove currentFeature directly, you can't be sure that your pointID belongs to currentFeature

pointLayer.DataSet.UpdateExtent(); //update the extent of the existing features
pointLayer.DataSet.InitializeVertices(); //updates the vertex array so it no longer contains the delete feature vertices
pointLayer.AssignFastDrawnStates(); //updates the FastDrawn states

Oh yes sorry,
Neither worked (editing and deleting) it's maybe due to my switch case, because i select only one point ?
When i click on a point nothing happend.
What do you think ?
My switch case :
private void map1_MouseDown(object sender, MouseEventArgs e)
        {
            auj = DateTime.Now;
            switch (shapeType)
            {
                case "Point":
                    if (e.Button == MouseButtons.Left)
                    {

                        if ((pointmouseClick))
                        {
                            frmValid f = new frmValid();
                            f.ShowDialog();

                            if (Passerrelle.pass.ann)
                            {
                                GeoAPI.Geometries.Coordinate coord = map1.PixelToProj(e.Location);
                                NetTopologySuite.Geometries.Point point = new NetTopologySuite.Geometries.Point(coord);

                                IFeature currentFeature = pointLayer.DataSet.AddFeature(point);

                                pointID = pointID + 1;
                                currentFeature.DataRow["Référence"] = fichier + Passerrelle.pass.reff;
                                currentFeature.DataRow["Date"] = auj;

                                if (Passerrelle.pass.hh)
                                {
                                    double v1 = Math.Pow(Passerrelle.pass.h1, 2);
                                    double v2 = Math.Pow(Passerrelle.pass.h2, 2);
                                    double v3 = Math.Pow(Passerrelle.pass.h3, 2);

                                    double Nhmoy = Math.Sqrt((v1+v2+v3)/3);
                                    MessageBox.Show(Nhmoy.ToString());

                                    currentFeature.DataRow["hmoy"] = Nhmoy;
                                    currentFeature.DataRow["h1"] = Passerrelle.pass.h1;
                                    currentFeature.DataRow["h2"] = Passerrelle.pass.h2;
                                    currentFeature.DataRow["h3"] = Passerrelle.pass.h3;
                                }
                                else
                                {
                                    currentFeature.DataRow["h2"] = Passerrelle.pass.h2;
                                    currentFeature.DataRow["hmoy"] = Passerrelle.pass.h2;
                                }

                            }
                        }
                            map1.Refresh();
                            map1.ResetBuffer();
                            map1.FunctionMode = FunctionMode.Pan;
                            map1.Cursor = Cursors.Default;
                            pointmouseClick = false;
                    }

                    else
                    {
                        map1.ResetBuffer();
                        map1.Cursor = Cursors.Default;
                        pointmouseClick = false;
                        map1.FunctionMode = FunctionMode.Pan;
                    }
                    break;
                case "Suppr":
                    if (e.Button == MouseButtons.Left)
                    {

                        Coordinate c = map1.PixelToProj(e.Location);
                        Envelope env = new Envelope(c);
                        double tol = map1.MapFrame.ViewExtents.Width / 10000;
                        env.ExpandBy(tol);
                        Envelope affected;
                        pointLayer.Select(env, env, DotSpatial.Symbology.SelectionMode.Intersects, out affected);
                        List<IFeature> features = pointLayer.Selection.ToFeatureList();

                        foreach (IFeature f in features)
                        {
                            pointLayer.DataSet.Features.Remove(f);

                            pointLayer.DataSet.UpdateExtent();
                            pointLayer.DataSet.InitializeVertices();
                            pointLayer.AssignFastDrawnStates();
                        }
                        pointLayer.Selection.Clear();
                        map1.Refresh();
                        map1.ResetBuffer();
                        map1.FunctionMode = FunctionMode.Pan;
                        map1.Cursor = Cursors.Default;
                        pointmouseClick = false;
                    }
                    break;
                case "edit":
                    if(e.Button == MouseButtons.Left)
                    {

                        Coordinate c = map1.PixelToProj(e.Location);
                        Envelope env = new Envelope(c);
                        double tol = map1.MapFrame.ViewExtents.Width / 10000;
                        env.ExpandBy(tol);
                        Envelope affected;
                        pointLayer.Select(env, env, DotSpatial.Symbology.SelectionMode.Intersects, out affected);
                        List<IFeature> features = pointLayer.Selection.ToFeatureList();
                        foreach(IFeature f in features)
                        {
                            f.DataRow["Référence"] = "test";
                        }
                        pointLayer.Selection.Clear();
                        map1.Refresh();
                        map1.ResetBuffer();
                        map1.FunctionMode = FunctionMode.Pan;
                        map1.Cursor = Cursors.Default;
                        pointmouseClick = false;
                    }
                    break;

            }
        }

When i press the edit button :
private void btnInfo_Click(object sender, EventArgs e)
        {
            shapeType = "edit";
            map1.Cursor = Cursors.Cross;
            pointmouseClick = true;

        }

When i press delete button :
private void btnSupPoint_Click(object sender, EventArgs e)
        {
            map1.Cursor = Cursors.Cross;
            shapeType = "Suppr";
            pointmouseClick = true;

        }

Ok try to replace
Coordinate c = map1.PixelToProj(e.Location);
Envelope env = new Envelope(c);
double tol = map1.MapFrame.ViewExtents.Width / 10000;
env.ExpandBy(tol);

by
Rectangle mouseRect = new Rectangle(e.X - 9, e.Y - 9, 18, 18);

Extent pix = map1.PixelToProj(mouseRect);
if (pix == null) return;
Envelope env = pix.ToEnvelope();

It seems as if the first code creates an envelope that is to small to find your point.

That was the problem thank you, it work only if I don't create a new point (if i create a new point i can only delete new created points not older points from an existing shapefile) i guess I have to create them on the same shapelayer i think, i have already done that you helped me for that on #929 but it seems not working at all (2 differents attribute table too) I can only edit and delete point on the last layer, is there a way to fix it ?

If you want to add the new points to your old layer, don't create a new layer ;)
If you want to create your points in a new layer but work with the layer you loaded to, you could switch between the layers.
Explain what you want exactly so I know what you need.

Oh ok my bad, i want to add new point on my old layer,but if you can explain me both it can be very instructive for me ;)

Post your whole code if you want me to check what you have to change to use the old layer instead of creating a new one.

Ok, thank for your help :
 public partial class frmCarte : Form
    {
        string shapeType;
        #region Point ShapeFile class level variable

        string fichier;
        FeatureSet pointF = new FeatureSet(DotSpatial.Data.FeatureType.Point);

        MapPointLayer pointLayer = new MapPointLayer();

        DataColumn colonneId = new DataColumn("id");
        DataColumn colonneRef = new DataColumn("Référence");
        DataColumn colonneDate = new DataColumn("Date");
        DataColumn colonneh1 = new DataColumn("h1");
        DataColumn colonneh2 = new DataColumn("h2");
        DataColumn colonneh3 = new DataColumn("h3");
        DataColumn colonnehmoy = new DataColumn("hmoy");
        DataColumn colonneBat = new DataColumn("Batiment");
        DataColumn colonneEta = new DataColumn("Etage");
        DataColumn colonneLat = new DataColumn("Latitude");
        DataColumn colonneLong = new DataColumn("Longitude");

        //
        DateTime auj = new DateTime();
        int pointID = 0;
        int modif = 0;
        int compt = 0;
        bool pointmouseClick = false;
        #endregion
        public frmCarte()
        {
            InitializeComponent();
        }

        private void btnChargerCarte_Click(object sender, EventArgs e)
        {

            map1.AddLayers();

            foreach (ILayer layer in map1.Layers)
            {
                fichier = layer.DataSet.Name;
            }
            //map1.AddLayers();
            map1.AddLayer("D:\\Stage2017\\charge\\bat400_et0_casa.shp");

            pointLayer = map1.Layers[1] as MapPointLayer;

            //btnChargerCarte.Enabled = false;
        }

        private void button2_Click(object sender, EventArgs e)
        {

            Passerrelle.pass.nbLay = map1.Layers.Count();
            Passerrelle.pass.tabLayer = pointLayer;
            InterfaceTableau.frmTab f = new frmTab();
            f.Show();

        }

        private void btnAddPoint_Click(object sender, EventArgs e)
        {
            if (compt == 0)
            {

                pointF.DataTable.Columns.Add(colonneId);
                pointF.DataTable.Columns.Add(colonneRef);
                pointF.DataTable.Columns.Add(colonneDate);
                pointF.DataTable.Columns.Add(colonneh1);
                pointF.DataTable.Columns.Add(colonneh2);
                pointF.DataTable.Columns.Add(colonneh3);
                pointF.DataTable.Columns.Add(colonnehmoy);
                pointF.DataTable.Columns.Add(colonneBat);
                pointF.DataTable.Columns.Add(colonneEta);
                pointF.DataTable.Columns.Add(colonneLat);
                pointF.DataTable.Columns.Add(colonneLong);

            }

            map1.Cursor = Cursors.Cross;
            shapeType = "Point";
            pointF.Projection = map1.Projection;
            compt++;
            pointLayer = (MapPointLayer)map1.Layers.Add(pointF);

            PointSymbolizer symbol = new PointSymbolizer(Color.Red, DotSpatial.Symbology.PointShape.Ellipse, 10);
            pointLayer.Symbolizer = symbol;
            pointLayer.LegendText = "point";
            pointmouseClick = true;
        }

        private void btnDeplacerCarte_Click(object sender, EventArgs e)
        {
            map1.FunctionMode = FunctionMode.Pan;
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            pointF.SaveAs("pointADP.shp", true);
            MessageBox.Show("Couche de point sauvegardé");
        }

        private void map1_MouseDown(object sender, MouseEventArgs e)
        {
            auj = DateTime.Now;
            switch (shapeType)
            {
                case "Point":
                    if (e.Button == MouseButtons.Left)
                    {

                        if ((pointmouseClick))
                        {
                            frmValid f = new frmValid();
                            f.ShowDialog();

                            if (Passerrelle.pass.ann)
                            {
                                GeoAPI.Geometries.Coordinate coord = map1.PixelToProj(e.Location);
                                NetTopologySuite.Geometries.Point point = new NetTopologySuite.Geometries.Point(coord);

                                IFeature currentFeature = pointLayer.DataSet.AddFeature(point);

                                pointID = pointID + 1;
                                currentFeature.DataRow["Référence"] = fichier + Passerrelle.pass.reff;
                                currentFeature.DataRow["Date"] = auj;

                                if (Passerrelle.pass.hh)
                                {
                                    double v1 = Math.Pow(Passerrelle.pass.h1, 2);
                                    double v2 = Math.Pow(Passerrelle.pass.h2, 2);
                                    double v3 = Math.Pow(Passerrelle.pass.h3, 2);

                                    double Nhmoy = Math.Sqrt((v1+v2+v3)/3);
                                    MessageBox.Show(Nhmoy.ToString());

                                    currentFeature.DataRow["hmoy"] = Nhmoy;
                                    currentFeature.DataRow["h1"] = Passerrelle.pass.h1;
                                    currentFeature.DataRow["h2"] = Passerrelle.pass.h2;
                                    currentFeature.DataRow["h3"] = Passerrelle.pass.h3;
                                }
                                else
                                {
                                    currentFeature.DataRow["h2"] = Passerrelle.pass.h2;
                                    currentFeature.DataRow["hmoy"] = Passerrelle.pass.h2;
                                }

                            }
                        }
                            map1.Refresh();
                            map1.ResetBuffer();
                            map1.FunctionMode = FunctionMode.Pan;
                            map1.Cursor = Cursors.Default;
                            pointmouseClick = false;
                    }

                    else
                    {
                        map1.ResetBuffer();
                        map1.Cursor = Cursors.Default;
                        pointmouseClick = false;
                        map1.FunctionMode = FunctionMode.Pan;
                    }
                    break;
                case "Suppr":
                    if (e.Button == MouseButtons.Left)
                    {

                        Rectangle mouseRect = new Rectangle(e.X - 9, e.Y - 9, 18, 18);

                        Extent pix = map1.PixelToProj(mouseRect);
                        if (pix == null) return;
                        Envelope env = pix.ToEnvelope();
                        Envelope affected;
                        pointLayer.Select(env, env, DotSpatial.Symbology.SelectionMode.Intersects, out affected);
                        List<IFeature> features = pointLayer.Selection.ToFeatureList();

                        foreach (IFeature f in features)
                        {
                            pointLayer.DataSet.Features.Remove(f);

                            pointLayer.DataSet.UpdateExtent();
                            pointLayer.DataSet.InitializeVertices();
                            pointLayer.AssignFastDrawnStates();
                        }
                        pointLayer.Selection.Clear();
                        map1.Refresh();
                        map1.ResetBuffer();
                        map1.FunctionMode = FunctionMode.Pan;
                        map1.Cursor = Cursors.Default;
                        pointmouseClick = false;
                    }
                    break;
                case "edit":
                    if(e.Button == MouseButtons.Left)
                    {

                        Rectangle mouseRect = new Rectangle(e.X - 9, e.Y - 9, 18, 18);

                        Extent pix = map1.PixelToProj(mouseRect);
                        if (pix == null) return;
                        Envelope env = pix.ToEnvelope();
                        Envelope affected;
                        pointLayer.Select(env, env, DotSpatial.Symbology.SelectionMode.Intersects, out affected);
                        List<IFeature> features = pointLayer.Selection.ToFeatureList();
                        foreach(IFeature f in features)
                        {
                            f.DataRow["Référence"] = "test";
                        }
                        pointLayer.Selection.Clear();
                        map1.Refresh();
                        map1.ResetBuffer();
                        map1.FunctionMode = FunctionMode.Pan;
                        map1.Cursor = Cursors.Default;
                        pointmouseClick = false;
                    }
                    break;

            }
        }

        private void frmCarte_Load(object sender, EventArgs e)
        {
            map1.FunctionMode = FunctionMode.Pan;
        }
private void btnInfo_Click(object sender, EventArgs e)
        {
            shapeType = "edit";
            map1.Cursor = Cursors.Cross;
            pointmouseClick = true;

        }
        private void btnSupPoint_Click(object sender, EventArgs e)
        {
            map1.Cursor = Cursors.Cross;
            shapeType = "Suppr";
            pointmouseClick = true;

        }

Change btnAddPoint and btnSave like this to get rid of pointF and the second layer.
 private void btnAddPoint_Click(object sender, EventArgs e)
        {
            if (compt == 0)
            {
                string[] columns = new string[]{"id","Référence","Date","h1","h2","h3","hmoy","Batiment","Etage","Latitude","Longitude"};

                foreach (var str in columns) //you don't have to do this if you know your layer contains the columns already
                {
                    if (!pointLayer.DataSet.DataTable.Columns.Contains(str))
                    {
                        pointLayer.DataSet.DataTable.Columns.Add(new DataColumn(str));
                    }
                }

//do this only if you want your points to be red ellipses
                PointSymbolizer symbol = new PointSymbolizer(Color.Red, DotSpatial.Symbology.PointShape.Ellipse, 10);
                pointLayer.Symbolizer = symbol;
                pointLayer.LegendText = "point";
                compt = 1;
            }

            map1.Cursor = Cursors.Cross;
            shapeType = "Point";
            pointmouseClick = true;
        }

 private void btnSave_Click(object sender, EventArgs e)
        {
            pointLayer.DataSet.SaveAs("pointADP.shp", true);
            MessageBox.Show("Couche de point sauvegardé");
        }

Now you only have to make sure that btnChargerCarte is clicked before any other button is used, so pointLayer is not null.
Alternatively you could call
map1.AddLayer("D:\\Stage2017\\charge\\bat400_et0_casa.shp");
pointLayer = map1.Layers[1] as MapPointLayer;

in the forms shown event. As long as the file exists, in this case the layer is definitely set when you click a button.
If you do this be aware that fichier in btnChargerCarte might end up something else than before.
 private void btnChargerCarte_Click(object sender, EventArgs e)
        {
            map1.AddLayers();

            foreach (ILayer layer in map1.Layers)
            {
                fichier = layer.DataSet.Name; //might not be the same layer (e.g. if no layer was added it becomes bat400_et0_casa)
            }
        }

Thank you very much for your help, it work, there is only one issue left, when i create a point, it does not appear on the map but it is register in the attributes table, new points appears on the map when i click on edit or delete button. Should I add ```
map1.Refresh();
map1.ResetBuffer();
in  `private void btnAddPoint_Click(object sender, EventArgs e)` ?

I think you'll have to update the following things so you don't cause errors down the line:
pointLayer.DataSet.UpdateExtent();
pointLayer.DataSet.InitializeVertices();
pointLayer.AssignFastDrawnStates();

If you still don't see anything then add either one or both of
map1.Refresh();
map1.ResetBuffer();

Ok that was the problem, thank you so much @jany-tenaj for all your help, i have learned a lot with your help !
A grateful student !

I found an other issue, if i load my point shapefile with existing point, if i want to delete a point before create a new one i get this error "ArgumentOutOfRange" for this line , pointLayer.DataSet.Features.Remove(f);
When i create a new point first i can remove any point without error.
it's belong to this part
 case "Suppr":
                    if (e.Button == MouseButtons.Left)
                    {

                        Rectangle mouseRect = new Rectangle(e.X - 9, e.Y - 9, 18, 18);

                        Extent pix = map1.PixelToProj(mouseRect);
                        if (pix == null) return;
                        Envelope env = pix.ToEnvelope();
                        Envelope affected;
                        pointLayer.Select(env, env, DotSpatial.Symbology.SelectionMode.Intersects, out affected);
                        List<IFeature> features = pointLayer.Selection.ToFeatureList();

                        foreach (IFeature f in features)
                        {
                            pointLayer.DataSet.Features.Remove(f);

                            pointLayer.DataSet.UpdateExtent();
                            pointLayer.DataSet.InitializeVertices();
                            pointLayer.AssignFastDrawnStates();
                        }
                        pointLayer.Selection.Clear();
                        map1.Refresh();
                        map1.ResetBuffer();
                        map1.FunctionMode = FunctionMode.Pan;
                        map1.Cursor = Cursors.Default;
                        pointmouseClick = false;
                    }
                    break;

Should i load my attribute table first ?

Yes add
 pointLayer.DataSet.FillAttributes();
after
 map1.AddLayer("D:\\Stage2017\\charge\\bat400_et0_casa.shp");
 pointLayer = map1.Layers[1] as MapPointLayer;

Thank you again for your help

Hi friends. I've been working with this DotSpatial for 1 month. I can't understand  what's wrong with my code?
Sorry my English Language isn't good.
please help me.
please send  me your answer to my<EMAIL_ADDRESS>Private Sub Map1_MouseClick(sender As Object, e As MouseEventArgs) Handles Map1.MouseClick
    If digitizingmode = True Then

        Dim c As New Coordinate
        Dim p As New System.Drawing.Point
        p.X = e.X
        p.Y = e.Y
        c = Map1.PixelToProj(p)>>>>>>>>coordinate cannot be converted to coordinate
        drawpointlists.Add(c)


Database unexpectedly closed after successful upsert

Database unexpectedly closed after successful upsert:

Try to get data from collection.  Collection is empty so null is returned.
Insert data into collection using upsert.  Write Result show 1 record affected.
Try to get data from collection.  Database is suddenly closed
Illegal State Exception: This store is closed

fun dbSave(key : String, data : Any)
{
    val doc = Document();
    doc.put(DB_COL_ID, key);
    doc.put(DB_COL_REC, data);
    var result = database.getCollection(DbTable.Singletons.tblName).update(eq(DB_COL_ID, key), doc, updateOptions(true));

}

fun <T> dbLoad(key : String) : T?
{
    return database.getCollection(DbTable.Singletons.tblName)
            .find(eq(DB_COL_ID, key))
            .map({x->
                if(x != null)
                {
                    x[DB_COL_REC] as T
                } else null})
            .firstOrNull();
}

I am not sure what was happening in your case, but I tried to reproduce your test as follows and it gives me expected results without any issues. Let me know if there are any changes need to be made to the below code to reproduce your issue

class DbTest {
    val DB_COL_ID = "col_id"
    val DB_COL_REC = "col_rec"
    val tableName = "test_28"
    lateinit var database: Nitrite

    @Test
    fun dbTest() {
        val dbFile = File("/tmp/test.db")
        if (dbFile.exists()) dbFile.delete()

        database = Nitrite.builder().filePath(dbFile).openOrCreate()
        // step 1
        println(dbLoad<Double>("myKey"))
        // step 2
        dbSave("myKey", 12.0)
        // step 3
        println(dbLoad<Double>("myKey"))
    }

    fun dbSave(key: String, data: Any) {
        val doc = Document()
        doc.put(DB_COL_ID, key)
        doc.put(DB_COL_REC, data)
        var result = database.getCollection(tableName).update(Filters.eq(DB_COL_ID, key), doc, UpdateOptions.updateOptions(true))
        println(result.affectedCount)
    }

    @Suppress("UNCHECKED_CAST")
    fun <T> dbLoad(key: String): T? {
        return database.getCollection(tableName)
                .find(Filters.eq(DB_COL_ID, key))
                .map({ x ->
                    if (x != null) {
                        x[DB_COL_REC] as T
                    } else null
                })
                .firstOrNull()
    }
}

I deleted the database file and tried again and now it’s working.  I can’t explain it.
Regards,
From: Anindya<EMAIL_ADDRESS>Sent: Thursday, October 5, 2017 9:57 PM
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: Re: [dizitart/nitrite-database] Database unexpectedly closed after successful upsert (#28)
I am not sure what was happening in your case, but I tried to reproduce your test as follows and it gives me expected results without any issues. Let me know if there are any changes need to be made to the below code to reproduce your issue
class DbTest {
val DB_COL_ID = "col_id"

val DB_COL_REC = "col_rec"

val tableName = "test_28"

lateinit var database: Nitrite

@Test

fun dbTest() {

    val dbFile = File("/tmp/test.db")

    if (dbFile.exists()) dbFile.delete()

    database = Nitrite.builder().filePath(dbFile).openOrCreate()

    // step 1

    println(dbLoad<Double>("myKey"))

    // step 2

    dbSave("myKey", 12.0)

    // step 3

    println(dbLoad<Double>("myKey"))

}

fun dbSave(key: String, data: Any) {

    val doc = Document()

    doc.put(DB_COL_ID, key)

    doc.put(DB_COL_REC, data)

    var result = database.getCollection(tableName).update(Filters.eq(DB_COL_ID, key), doc, UpdateOptions.updateOptions(true))

    println(result.affectedCount)

}

@Suppress("UNCHECKED_CAST")

fun <T> dbLoad(key: String): T? {

    return database.getCollection(tableName)

            .find(Filters.eq(DB_COL_ID, key))

            .map({ x ->

                if (x != null) {

                    x[DB_COL_REC] as T

                } else null

            })

            .firstOrNull()

}

}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dizitart/nitrite-database/issues/28#issuecomment-334645698, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMjRC-qHOu0Z7zYBNxMbEYo2zaQAmos0ks5spZcpgaJpZM4Pv6ZL.

Good to know it is working..


Create hooks for Lookup Tables API area

Problem statement
To fully move from rest-hooks to react query, we need to add the new hooks into every API area. This ticket is to add react-query hooks for Lookup Tables API area.
What you need to know

Creating the hooks and tests is the first step, followed by adding those hooked into the pages, which will be on a following ticket
Can refer to #6528 branch once merged for examples on hook implementation

Acceptance criteria

[ ] Create all necessary creation, read, update, deletion hooks in the Lookup Tables API area
[ ] Ensure every hook has a complimentary test to go with it

To do

[ ] ...

Superseded by #14341


feat!: Example rework

Example rework, changing to Typescript.
Previously it was using flow which is not existing anymore in this repo.
This will make it easier to contribute and write example code.
The further things we can do in the example project, and of course only if needed

Add more examples
Unit test improvement

Not sure how others feel about this but examples to me are throw-away. Almost all work on them - and certainly infrastructure work - is wasted time. Anything you do here will require maintenance going forward and you will be limiting your ability to provide real value by reducing time available since you are working on examples
So I strongly don't want this. I want this https://github.com/thebergamo/react-native-fbsdk-next/blob/beta/refresh-example.sh to be maintained instead, personally.
it serves as a demonstration of integration (frequently required when trying to get someone that logged an issue to actually demonstrate clean reproduction of the issue) and it also means there is no "upgrade" cost as react-native inevitably issues new releases, like 0.67 which will release shortly and require more work on these same files you are touching here
If touching anything inside the example directory can be avoided, it should be avoided I think.
If you really really want typescript in the example, I propose modifying the script to build off the community typescript template as a start, however that will actually harm the usefulness of the example as javascript people and typescript people don't overlap, but typescript people (myself included) are used to handling javascript - but the inverse is not true

@mikehardy I never think about what the example actually is before, thought it was a kind of place for demonstration or testing, but I got your concept, it's just for CI app build(correct me if I'm wrong).
I'll take a look at refresh-example.sh, closing this as well.

It is definitely for demonstration as one of it's purposes, and the refresh script does take the existing App.js and other files, save them on the side, then rebuild the whole scaffolding before dropping them back in. So some state is preserved across refreshes, and that state is used to demonstrate functionality
But! It's more than that yes, it is also for CI test compile purposes, the refresh script itself demonstrates how to integrate the module, step by step, and may be used to create a clean repro for people, and there are costs associated with the code simply existing, the primary cost being that keeping it up to date vs react-native updates can be time consuming
For all those reasons, I usually look for fully automated example app construction (reduce maintenance cost, demonstrate integration) and I usually look for the widest possible demonstration of functionality based on the most widely recognized template (so, javascript, based off the react-native default template)
In practice with this strategy in use for a couple years in various repos it has been really really useful - the example is still useful as an example of functionality but maintenance of the app and triage of issues is lower cost in practice

Got it. At the first, I saw some issues in the example(e.g. file path in package.json), and App.js is kind of outdated, but I'm definitely doing it overdesigned by driving it to REWORK, also changing it to TypeScript is not a good idea.
I'll manage to pick out the issues I saw previously and fix them individually, this will make things more reasonable, thank you @mikehardy for pointing this out.


error message  in instant repl,  importing namespace

im new in clojure, so maybe this  is  not important.
first an image

in niightcode 2.60  i get this  error  in  instant repl
but   it doesnt afect the  execution
i opened it in  nighlight editor, and  on it, is  working  good.

thats  all

Yep you're not doing anything wrong, it's just a limitation of Nightcode. The instarepl basically only works with clojure core because it is running separately from your project. Nightlight doesn't have this limitation because it is running inside your project so it has access to everything.


OpenOCD can't find Interface

It's unclear from this repo and the getting started documentation how to properly setup the launch and settings json files. I have PicoProbe running on one Pico with the correct wiring to the Pico I am flashin/debugging. I succeed on a Pi 4, but in Windows 11 I am missing something.

The downloads folder shows what following embedded system's (https://learnembeddedsystems.co.uk/133-2) method results in. The "raspberry-pi-swd" is missing from this repo as far as I can tell. Any guidance would be appreciated.

Try the new release available from Raspberry Pi: (OpenOCD is also available stand-alone in that release if you do not want the full installation)
https://github.com/raspberrypi/pico-setup-windows/releases/latest
OpenOCD and Picoprobe have been updated in the new release, please take a look at the tutorial and wiki.
Closing this issue for now but feel free to re-open it if there is still an issue.


Inputbox set minimum width entry field

V1.5.4 increased the default minimum width of the entry fields in inputbox to a sensible value of 100 pixels.  However, we sometimes need even wider fields  than this, but it would be weird to make the default any wider than 100 pixels.  This add a setter to increase the width when needed.

Usage example:
    form fm;

    // construct text input the expects long inputs
    inputbox::text test(
        "very very very very long prompt string",
        "very long default");

    // construct inputbox that provides especially wide input fields
    inputbox inbox(fm,"Enter");
    inbox.min_width_entry_field( 250 );

    //show 'em what we have
    if (inbox.show(test) )
    {
    }

Thanks for your PR!


Added Plot.template

Pull Request (PR) Template

https://github.com/aiqc/AIQC/issues/11

Put an x inside the applicable checkboxes [ ].

Primary type of change:

[x ] New feature.
[ ] Bug fix.
[ ] Refactor.
[ ] Documentation.
[ ] Build/ devops.
[ ] Test.
[ ] Other.

Checklist:

[x ] I have actually ran this code locally to make sure it works.
[x ] I have pulled and merged the latest main into my feature branch.
[x ] I have ran the existing tests, and inspected areas that my code touches.
[x ] I have updated the tests to include my changes.
[x] I have included updates to the documentation.
[ x] I have built the documentation files make html.

We talked about not changing the user-facing visualization.ipynb and seeing if the titles can be positioned top left so they don't overlap with legend.


Change VS Play button behavior

Wondering if it is possible to change play button behaviour, in which I can program it to run my node server with user-defined parameters.

Would be nice to change play to stop when the server is running.

@DeanKamali What play button is this?

In my VS code, I'm seeing a play button top right corner of the screen, when pressed it runs whatever code is open in active tab.
Now I'm wondering if it came with VS code, or one of the plugins I installed.

I think that play button comes with the Code Runner extension.

@DeanKamali yes, most likely this is the 'Code Runner' extension.
That proves that you create your own extension that adds a run button for starting your node server.


Breaking changes in easee_hass version 0.9.29

Due to the naming of variables and services this card can't dsiplay all the values.
Would you please update the card ?
Best regards
Martin

Hi,
Yes, I am aware. Update is coming in not too long I hope. Thanks for reporting, good to see that the card is in use by more people than me :)

Cool 👍
Thank you very much :)

See latest version released just now, and let me know if it seems to be working.

Just tested, but can't see the limits and the cable lock status.

Hm, that's the ones that have been changed and were the ones I tested for. Sure you have updated cache etc? Sometimes lovelace can be a bit picky, normally CTRL+F5 in Google Chrome works (hard refresh).

Hi, yes the card was still in the cache. I deinstalled it. After installing again, I don't get the charger card in as a custom card in the list.
Using version 0.0.3 that works. It seems that version 0.0.4 doesn't load.

That's strange, I'll check more.

There is no charger-card.js in the v0.0.4 release.

You're right, look at that! Sorry, I've added it now.

It works now.
Thank you very much.


Create a room on gitter.im?

I recently had some questions about the release schedule because I'm interested in the new GitHub templates integration which has recently been added and is only available in a prerelease. But I didn't know where to ask.
Would it be a bad idea to create a room on gitter.im? What do you guys think?

We will consider adding a community chat room for support and other misc. questions. In the meantime, opening an issue like this is fine.
Regarding release schedule: there is none, but I'm working slowly towards the next stable release. The reason why it's taking so long is that I'm the only person at the moment working on this fairly large project. In the meantime, feel free to download the prereleases, since they're of good quality and have tons of new features.

Thanks for the answer. Just figured that pre-releases can be installed via homebrew like so:
brew install --devel hub

@mareksuscak Nice! I didn't know that.


Tab selected prop doesn't work

I'm trying to set tab's selected prop programmatically on state change. It works on click but if I wish to initialize a certain tab to be selected, it always sets the first tab as the selected one.
I only set the selected and not used value in Tabs and tab component.
Am I doing something wrong?
Am I missing something?
Could you lighten up the usage of it?

I think you answered your own question. Please see the Controlled example in the docs.


Graves bug fix and extra feature

Fixed graves disappearing when robbed and added the option for them to be spawned at the top of water and lava instead of inside.

Thanks! This will be included in v1.6.13 🙂


Cannot invoke an expression whose type lacks a call signature when --strictNullChecks enabled

TypeScript Version:  2.1.5 and 2.1.6
Code
With --strictNullChecks enabled.
interface Foo {
  foo(): void
}

class A<P extends Partial<Foo>> {
  props: Readonly<P>
  doSomething() {
    this.props.foo && this.props.foo()
  }
}

Expected behavior:
I should be able to invoke this.props.foo() as I have proven to the typechecker that this.props.foo is not undefined† and it cannot be any other value.
Actual behavior:
Throws the following compiler error:
test.ts(12,23): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type '(() => void) | undefined' has no compatible call signatures.

This issue was introduced in TypeScript 2.1.5 and is present in TypeScript 2.1.6. The above code compiles just fine in TypeScript 2.1.4.
This issue does not present itself if A.props is P instead of Readonly<P>. You are unable to circumvent this error by using !, so this is probably not an error with null checking, despite it only being present while strictNullChecks are enabled.
Without wanting to make myself sound more intelligent than I am, I suspect the issue has something to do with the interaction between readonly and a potentially undefined value.
† Technically this code proves to the typechecker that this.props.foo is not falsey, however the same issue is found when comparing this.props.foo explicitly to undefined or doing typeof this.props.foo === 'function'.

Since there is a generic type, the type of this.props.foo is P["foo"]. and currently narrowing does not work on generic types. what we need is a new type operator, call it !, so that the type of this.props.foo after the check would be P["foo"]!, which is guaranteed to not be undefined or null.

Hey @mhegazy, regardless of discussions of feature implementations - I submitted this as a bug because it's a regression; this was working perfectly fine in TS 2.1.4. What has changed?

I'm pretty sure that I have the same problem with the newest React definitions that define this.props as Readonly<P>. A lot of my code breaks because narrowing from P["foo"] doesn't work and I'm not ready to rewrite some perfectly valid code, so I'm sticking with the older definitions where this.props is mutable.

@JabX Yes, this is where I got the issue from. I just simplified the example into something that was, well, simpler.

So, is this the only workaround or it can be prettier?
export interface FormBaseProps {
  onInitForm?: (f: FormBase<any, any>) => any
  onDestroyForm?: (f: FormBase<any, any>) => any
}
abstract class FormBase<T extends FormBaseProps, S> extends Component<T, S> {
  componentWillMount() {
    this.props.onInitForm && (this.props as FormBaseProps).onInitForm!(this)
  }

  componentDidUnmount() {
    this.props.onDestroyForm && (this.props as FormBaseProps).onDestroyForm!(this)
  }
}


Fix an incorrect Tlv append operation and Dump output JOIN_FIN.req

It fixes two issues introduced by #949, which broken Certification test 8.x:

Fix an incorrect Tlv append operation in Joiner::SendJoinerFinalize()

Dump output JOIN_FIN.req for certification test

Current coverage is 74.37% (diff: 50.00%)

Merging #978 into master will increase coverage by 0.09%

@@             master       #978   diff @@
==========================================
  Files           123        123
  Lines         17720      17724     +4
  Methods        2483       2483
  Messages          0          0
  Branches       2133       2133
==========================================
+ Hits          13163      13182    +19
+ Misses         3882       3876     -6
+ Partials        675        666     -9

Powered by Codecov. Last update 208c4d3...1fa8ce8


Cast away

I believe these to be UB.

Scott, please change the README to describe not the UB but rather the expectation the programmer had when they wrote your test code.

Okay, should be fixed now.


Documentation Update

Some suggestions for the documentation

[ ]  Use a more open layout like gitbook docs does
[ ]  Show a tutuorial to make a prject like a simple blog api so that they can reference it for a bigeer project
[ ]  Start a discord and slack channel
[ ]  Post code on gitlab apart from github as well so that people from gitlab can help you too..

Start a discord and slack channel
We have a Gitter integration: https://gitter.im/tiangolo/fastapi. But personally I'd like to have a discord instead/also. @tiangolo what do you think?
Show a tutuorial to make a prject like a simple blog api so that they can reference it for a bigeer project
We already have it on the documentation.
Use a more open layout like gitbook docs does
I have no idea what you're talking about.
Post code on gitlab apart from github as well so that people from gitlab can help you too..
I have no idea what you're talking about.

Hi, by open layout i mean something like this:
https://docs.masoniteproject.com/
Tutorial about making a small project. Where's the url? Also can some official screen casts be made so that we can use them as reference. People understand better from videos.
By posting code on gitlab as well as github, I mean that committhe same framework code to gitlab.com as well.
This will increase the community

And having a community on slack and discord is absolutely essential for the framework community to grow.

Docs aside, here's a +1 for discord integration. It's very helpful for getting (near) real-time support and getting up-to-date on notifications.

Thanks for the interest and the discussion here, everyone.
About the docs, the preference is quite personal. I like how they are now.
About the tutorial, the docs are made in the style of a tutorial. If the original idea was to make a full course, yeah, that would be great, the same for the videos... I would just have to find the time and resources. :shrug:
Discord is here thanks to @Kludex: https://fastapi.tiangolo.com/help-fastapi/#join-the-chat :rocket:
About GitLab, no thanks. That would mean even more work for me. :sweat:
...now, given the original poster's account was deleted (it's a @ghost now), I'm gonna close this issue.


Flyout IsOpen Not Working

Describe the bug
When setting the IsOpen property in XAML, the following error occurs:
System.MethodAccessException: 'Attempt by method 'FlyoutTest.Views.MainWindow.!XamlIlPopulate(System.IServiceProvider, FlyoutTest.Views.MainWindow)' to access method 'Avalonia.Controls.Primitives.FlyoutBase.set_IsOpen(Boolean)' failed.'
To Reproduce
Steps to reproduce the behavior:
Create new project.
Add following Xaml to MainWindow:
  <TextBlock Text="{Binding Greeting}" HorizontalAlignment="Center" VerticalAlignment="Center">
    <FlyoutBase.AttachedFlyout>
      <Flyout IsOpen="true">
        <TextBlock Text="This is some text in a flyout."  />
      </Flyout>
    </FlyoutBase.AttachedFlyout>
  </TextBlock>

Expected behavior
Screenshots

Desktop (please complete the following information):

OS: [e.g. Windows, Mac, Linux (State distribution)] WIndows 10
Version [e.g. 0.10.0-rc1 or 0.9.12] 0.10.6

Additional context
Add any other context about the problem here.

https://github.com/AvaloniaUI/Avalonia/blob/453610836f00198e4f3738ae7aa2484e8be155d2/src/Avalonia.Controls/Flyouts/FlyoutBase.cs#L62 - the property seems to be readonly.
Compiler not complaining about it being readonly is definitely a bug though.

You need to use ShowAttachedFlyout or ShowAt.
IsOpen is readonly. Having it settable does not makes much sense since flyout is often shared between controls/different targets.


Why is ViewProjection.ProjectEvent<> accepting a ProjectionEvent instead of just IEvent?

Why is ViewProjection.ProjectEvent<> accepting a ProjectionEvent instead of just IEvent?
Hello,
I ran into a use-case where my ViewProjection handler requires the StreamId/StreamKey of an event; unfortunately, those are not available on ProjectionEvent.
Is there a technical reason why ViewProjection.ProjectEvent<> was made to accept a ProjectionEvent rather than just vanilla IEvent (as implemented in Event)?
Why it can't just be:
viewProjection.ProjectEvent<Event<CharacterKilled>>(idOrIdsGenerator, projectionMutator);

instead of
viewProjection.ProjectEvent<ProjectionEvent<CharacterKilled>>(idOrIdsGenerator, projectionMutator);

?
I was able to create a working ViewProjection.ProjectEvent<> that's compatible with both ProjectionEvent and IEvent (so tests won't break).
Can I send a pull request for this?
Thanks for the awesome work you guys are doing with Marten!  As a developer coming from NEventStore/LiquidProjection playground, Marten saves a whole lot of time and stress, and it's highly maintainable.

See #894.


Set the scripts path

I want to create the production build process but i have a problem with the scripts path:

config.devtool = 'cheap-module-source-map';
config.debug =  false;
config.output.filename = "build/[hash].js";
config.output.publicPath = "";

new HtmlWebpackPlugin({
    filename: "build/index.html",
    template: "index.ejs",
    inject: 'body'
  })

The main script are in the root of the build folder but the script tag is:
<script src="/build/157c67faf5af956c0653.js"></script>

I need this to be:
<script src="157c67faf5af956c0653.js"></script>

Set the output path to build not config.output.filename = "build/[hash].js";

You mean config.output.filename = 'build'?

https://webpack.github.io/docs/configuration.html#output-path
config.output.path = __dirname+'build'; // needs to be absolute path to output directory
config.output.filename = '[hash].js'; // filename within output path directory

Correct :+1:  :)

Thanks!


Add a vdom api based on scalajs-react's approach

Copied David Barri's tag implementation over to sri's primitives

Diff's:

I removed the callback code, which is his more fp approach
Removed the OptionLike class which again was more fp and less vanilla

Caveat's

This was pulled from my project so I have to go back through it and figure out if I messed up anything.

Closed since @chandu0101 merged his version.


Add .vscode directory to .gitignore

Add .vscode directory to .gitignore and delete folder from the version control.

Hey can you please assign this to me , ??

yep, @sid172014  - go ahead.

Hey i've made a pull request can you please check @jischr ..


Backport "HBASE-28187 NPE when flushing a non-existing column family (#5692)" to branch-2.6

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 57s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
hbaseanti
0m  0s

Patch does not have any anti-patterns.

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 10s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
3m  7s

branch-2.6 passed

+1 :green_heart:
compile
3m 42s

branch-2.6 passed

+1 :green_heart:
checkstyle
1m  0s

branch-2.6 passed

+1 :green_heart:
spotbugs
2m 28s

branch-2.6 passed

+1 :green_heart:
spotless
0m 47s

branch has no errors when running spotless:check.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 16s

Maven dependency ordering for patch

-1 :x:
mvninstall
1m 27s
/patch-mvninstall-root.txt
root in the patch failed.

-1 :x:
compile
0m 31s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

-0 :warning:
javac
0m 31s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 54s

the patch passed

-1 :x:
spotbugs
0m 31s
/patch-spotbugs-hbase-server.txt
hbase-server in the patch failed.

-1 :x:
hadoopcheck
1m 28s

The patch causes 24 errors with Hadoop v2.10.2.

-1 :x:
hadoopcheck
3m 11s

The patch causes 24 errors with Hadoop v3.3.6.

-1 :x:
hadoopcheck
4m 55s

The patch causes 24 errors with Hadoop v3.4.0.

+1 :green_heart:
spotless
0m 42s

patch has no errors when running spotless:check.

_ Other Tests _

+1 :green_heart:
asflicense
0m 19s

The patch does not generate ASF License warnings.

25m  6s

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6292

Optional Tests
dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless

uname
Linux c885032ca18d 5.4.0-195-generic #215-Ubuntu SMP Fri Aug 2 18:28:05 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / 7e23a08022c61f1914903dcdd37534a45b430960

Default Java
Eclipse Adoptium-11.0.23+9

hadoopcheck
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-general-check/output/patch-javac-2.10.2.txt

hadoopcheck
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-general-check/output/patch-javac-3.3.6.txt

hadoopcheck
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-general-check/output/patch-javac-3.4.0.txt

Max. process+thread count
78 (vs. ulimit of 30000)

modules
C: hbase-client hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/console

versions
git=2.34.1 maven=3.9.8 spotbugs=4.7.3

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m 10s

Docker mode activated.

-0 :warning:
yetus
0m  6s

Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck

_ Prechecks _

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 11s

Maven dependency ordering for branch

-1 :x:
mvninstall
3m 34s
/branch-mvninstall-root.txt
root in branch-2.6 failed.

+1 :green_heart:
compile
1m 12s

branch-2.6 passed

+1 :green_heart:
javadoc
0m 55s

branch-2.6 passed

+1 :green_heart:
shadedjars
6m 11s

branch has no errors when building our shaded downstream artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 13s

Maven dependency ordering for patch

-1 :x:
mvninstall
1m 20s
/patch-mvninstall-root.txt
root in the patch failed.

-1 :x:
compile
0m 32s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

-0 :warning:
javac
0m 32s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

+1 :green_heart:
javadoc
0m 52s

the patch passed

-1 :x:
shadedjars
4m 53s

patch has 24 errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
8m  9s

hbase-client in the patch passed.

-1 :x:
unit
0m 29s
/patch-unit-hbase-server.txt
hbase-server in the patch failed.

31m 26s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6292

Optional Tests
javac javadoc unit compile shadedjars

uname
Linux 50b42d4ee2c6 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / 7e23a08022c61f1914903dcdd37534a45b430960

Default Java
Temurin-1.8.0_412-b08

shadedjars
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-jdk8-hadoop2-check/output/patch-shadedjars.txt

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/testReport/

Max. process+thread count
355 (vs. ulimit of 30000)

modules
C: hbase-client hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m  8s

Docker mode activated.

-0 :warning:
yetus
0m  6s

Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck

_ Prechecks _

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 11s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
4m 30s

branch-2.6 passed

+1 :green_heart:
compile
1m 36s

branch-2.6 passed

+1 :green_heart:
javadoc
0m 59s

branch-2.6 passed

+1 :green_heart:
shadedjars
7m 11s

branch has no errors when building our shaded downstream artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 21s

Maven dependency ordering for patch

-1 :x:
mvninstall
1m 59s
/patch-mvninstall-root.txt
root in the patch failed.

-1 :x:
compile
0m 40s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

-0 :warning:
javac
0m 40s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

+1 :green_heart:
javadoc
0m 49s

the patch passed

-1 :x:
shadedjars
4m 59s

patch has 24 errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
8m 17s

hbase-client in the patch passed.

-1 :x:
unit
0m 32s
/patch-unit-hbase-server.txt
hbase-server in the patch failed.

35m  8s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6292

Optional Tests
javac javadoc unit compile shadedjars

uname
Linux 5d4bdd25e863 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / 7e23a08022c61f1914903dcdd37534a45b430960

Default Java
Eclipse Adoptium-11.0.23+9

shadedjars
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-jdk11-hadoop3-check/output/patch-shadedjars.txt

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/testReport/

Max. process+thread count
372 (vs. ulimit of 30000)

modules
C: hbase-client hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m 19s

Docker mode activated.

-0 :warning:
yetus
0m  5s

Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck

_ Prechecks _

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 11s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
4m 47s

branch-2.6 passed

+1 :green_heart:
compile
1m 47s

branch-2.6 passed

+1 :green_heart:
javadoc
1m  7s

branch-2.6 passed

+1 :green_heart:
shadedjars
7m  1s

branch has no errors when building our shaded downstream artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 15s

Maven dependency ordering for patch

-1 :x:
mvninstall
2m  5s
/patch-mvninstall-root.txt
root in the patch failed.

-1 :x:
compile
0m 53s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

-0 :warning:
javac
0m 53s
/patch-compile-hbase-server.txt
hbase-server in the patch failed.

+1 :green_heart:
javadoc
1m  6s

the patch passed

-1 :x:
shadedjars
5m  7s

patch has 24 errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
8m 32s

hbase-client in the patch passed.

-1 :x:
unit
0m 51s
/patch-unit-hbase-server.txt
hbase-server in the patch failed.

36m 59s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6292

Optional Tests
javac javadoc unit compile shadedjars

uname
Linux e4bd4606ab9e 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / 7e23a08022c61f1914903dcdd37534a45b430960

Default Java
Eclipse Adoptium-17.0.11+9

shadedjars
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/artifact/yetus-jdk17-hadoop3-check/output/patch-shadedjars.txt

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/testReport/

Max. process+thread count
378 (vs. ulimit of 30000)

modules
C: hbase-client hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/1/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 45s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
hbaseanti
0m  0s

Patch does not have any anti-patterns.

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m  9s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
3m  8s

branch-2.6 passed

+1 :green_heart:
compile
3m 49s

branch-2.6 passed

+1 :green_heart:
checkstyle
1m  2s

branch-2.6 passed

+1 :green_heart:
spotbugs
2m 30s

branch-2.6 passed

+1 :green_heart:
spotless
0m 47s

branch has no errors when running spotless:check.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 17s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
3m  3s

the patch passed

+1 :green_heart:
compile
3m 44s

the patch passed

+1 :green_heart:
javac
3m 44s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 56s

the patch passed

+1 :green_heart:
spotbugs
2m 46s

the patch passed

+1 :green_heart:
hadoopcheck
15m 57s

Patch does not cause any errors with Hadoop 2.10.2 or 3.3.6 3.4.0.

+1 :green_heart:
spotless
0m 47s

patch has no errors when running spotless:check.

_ Other Tests _

+1 :green_heart:
asflicense
0m 23s

The patch does not generate ASF License warnings.

42m  5s

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6292

Optional Tests
dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless

uname
Linux 7f87a4645cee 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / 71c6888c891faafa1bfeab4b4933cdbcca7c9bb7

Default Java
Eclipse Adoptium-11.0.23+9

Max. process+thread count
79 (vs. ulimit of 30000)

modules
C: hbase-client hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/console

versions
git=2.34.1 maven=3.9.8 spotbugs=4.7.3

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 46s

Docker mode activated.

-0 :warning:
yetus
0m  5s

Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck

_ Prechecks _

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 10s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
2m 33s

branch-2.6 passed

+1 :green_heart:
compile
0m 59s

branch-2.6 passed

+1 :green_heart:
javadoc
0m 41s

branch-2.6 passed

+1 :green_heart:
shadedjars
5m 20s

branch has no errors when building our shaded downstream artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 12s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
2m 25s

the patch passed

+1 :green_heart:
compile
0m 59s

the patch passed

+1 :green_heart:
javac
0m 59s

the patch passed

+1 :green_heart:
javadoc
0m 39s

the patch passed

+1 :green_heart:
shadedjars
5m 17s

patch has no errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
7m 55s

hbase-client in the patch passed.

+1 :green_heart:
unit
211m 30s

hbase-server in the patch passed.

244m  1s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6292

Optional Tests
javac javadoc unit compile shadedjars

uname
Linux 813bd0d8599c 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / 71c6888c891faafa1bfeab4b4933cdbcca7c9bb7

Default Java
Temurin-1.8.0_412-b08

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/testReport/

Max. process+thread count
4474 (vs. ulimit of 30000)

modules
C: hbase-client hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m 10s

Docker mode activated.

-0 :warning:
yetus
0m  5s

Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck

_ Prechecks _

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 12s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
4m 37s

branch-2.6 passed

+1 :green_heart:
compile
1m 47s

branch-2.6 passed

+1 :green_heart:
javadoc
1m  7s

branch-2.6 passed

+1 :green_heart:
shadedjars
6m 48s

branch has no errors when building our shaded downstream artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 15s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
4m 22s

the patch passed

+1 :green_heart:
compile
1m 37s

the patch passed

+1 :green_heart:
javac
1m 37s

the patch passed

+1 :green_heart:
javadoc
1m  0s

the patch passed

+1 :green_heart:
shadedjars
6m 50s

patch has no errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
8m 15s

hbase-client in the patch passed.

-1 :x:
unit
295m 16s
/patch-unit-hbase-server.txt
hbase-server in the patch failed.

339m 41s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6292

Optional Tests
javac javadoc unit compile shadedjars

uname
Linux 2806798d2c8c 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / 71c6888c891faafa1bfeab4b4933cdbcca7c9bb7

Default Java
Eclipse Adoptium-17.0.11+9

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/testReport/

Max. process+thread count
4354 (vs. ulimit of 30000)

modules
C: hbase-client hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m 13s

Docker mode activated.

-0 :warning:
yetus
0m  5s

Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck

_ Prechecks _

_ branch-2.6 Compile Tests _

+0 :ok:
mvndep
0m 12s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
4m 42s

branch-2.6 passed

+1 :green_heart:
compile
1m 39s

branch-2.6 passed

+1 :green_heart:
javadoc
1m  4s

branch-2.6 passed

+1 :green_heart:
shadedjars
7m  0s

branch has no errors when building our shaded downstream artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 18s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
4m 41s

the patch passed

+1 :green_heart:
compile
1m 36s

the patch passed

+1 :green_heart:
javac
1m 36s

the patch passed

+1 :green_heart:
javadoc
1m  2s

the patch passed

+1 :green_heart:
shadedjars
7m  5s

patch has no errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
8m 51s

hbase-client in the patch passed.

+1 :green_heart:
unit
306m 33s

hbase-server in the patch passed.

351m 27s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6292

Optional Tests
javac javadoc unit compile shadedjars

uname
Linux f1530cbe84ef 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.6 / 71c6888c891faafa1bfeab4b4933cdbcca7c9bb7

Default Java
Eclipse Adoptium-11.0.23+9

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/testReport/

Max. process+thread count
4420 (vs. ulimit of 30000)

modules
C: hbase-client hbase-server U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6292/2/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.


Unable to get Hot Module Replacement working in plain React App.

Description
I'm trying to integrate hmr-brunch into my own React app based on a brunch simple skeleton
Expected behavior
Editing and saving a component will show the updates in current page/state without error.
Actual behavior
I receive the following errors:

Uncaught TypeError: Cannot set property 'updated' of undefined
at runtime.js:94
at Array.forEach ()
at createMarkGraph (runtime.js:93)
at performUpdate (runtime.js:239)
at Function.wrap [as hmr] (runtime.js:386)
at runtime.js:438

Uncaught TypeError: Cannot read property 'disposeHandlers' of undefined
at runDisposeHandlers (runtime.js:267)
at Array.forEach ()
at handleRemoved (runtime.js:371)
at performUpdate (runtime.js:225)
at Function.wrap [as hmr] (runtime.js:386)
at runtime.js:438

Environment

Brunch: 2.10.10
Node.js: 6.11.3
NPM: 3.10.10
Operating system: OS X 10.12.6
Code editor: NVim

package.json contents
"dependencies": {
    "babel-polyfill": "^6.26.0",
    "react": "^15.6.1",
    "react-dom": "^15.6.1",
    "whatwg-fetch": "^2.0.3"
},
"devDependencies": {
    "auto-reload-brunch": "^2",
    "babel-brunch": "^6.1.1",
    "babel-plugin-transform-async-to-generator": "^6.24.1",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-preset-env": "^1.6.0",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-3": "^6.24.1",
    "brunch": "^2",
    "clean-css-brunch": "^2",
    "hmr-brunch": "^0.1.1",
    "snazzy": "^7.0.0",
    "standard": "^10.0.3",
    "stylus-brunch": "^2.10.0",
    "uglify-js-brunch": "^2"
}

brunch config contents
// See http://brunch.io for documentation.
exports.files = {
  javascripts: {
    joinTo: 'app.js'
  },
  stylesheets: {joinTo: 'app.css'}
}

exports.plugins = {
  babel: {
    presets: ['env', 'react', 'stage-3'],
    plugins: ['transform-class-properties', 'transform-async-to-generator']
  }
}

exports.hot = true

Other useful files, when present (log, bower.json etc.)
my initialize.js:
import 'babel-polyfill'
import 'whatwg-fetch'
import React from 'react'
import ReactDOM from 'react-dom'å
import App from 'components/App/App'

//const render = () => {
document.addEventListener('DOMContentLoaded', function () {
  ReactDOM.render(<App />, document.querySelector('#app'))
})

//document.addEventListener('DOMContentLoaded', function () {
//  render()
//})

//if (module.hot) {
  //module.hot.accept('./components/App/App', () => {render()})
// module.hot.accept()
//}

Note: the commented out lines are other options I have been trying to make this work.
When I first run brunch w -ns the app loads fine, and I get the message:

[HMR] All updated

In the console, but the errors appear as soon as I make a change to a file and save.
Any ideas?

I have the same problem, but in vue, using the plain skeleton for vue.


macOS Insiders zip contains resources with bash/zsh auto completion files

Repro:

Download latest Insiders on macOS
Unzip

@joaomoreno Seems to be caused by https://github.com/microsoft/vscode/pull/66181

branch here produces sane macOS bits https://github.com/microsoft/vscode/tree/sbatten/fixcompletions


Terminal Token name: nt not found

Hi, i have the following error in execution time when i'm trying to run my Angular app.
I have the following Service created grammar.service.ts
And the video running compiled files with the http-sever library Video Proofs
So, i found some documentation related about this error:

https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#TERMINAL_NAME_NOT_FOUND
https://sap.github.io/chevrotain/docs/FAQ.html#WEBPACK
https://github.com/SAP/chevrotain/blob/master/examples/parser/minification/README.md
[Question that i did in SOes] https://es.stackoverflow.com/questions/236000/duda-angular-6-excluir-archivos-de-minificacion
In resume i think is a problem with the minification that webpack did, so i would to know if exist another way o clear example to about this error or how to fix it, because my search in google wasn't productive.

I'll appreciate any help receive, and thanks

Hello @vdsancheza
I am not familiar with angular or its CLI tools.
I assume that your code works properly when it is un-minified?
A good place to start searching would be for the term "mangling" in angular-cli.

https://github.com/angular/angular-cli/issues?q=is%3Aissue+mangling+is%3Aclosed

There seems to be multiple issues regarding modifying the webpack optimization options.
It looks like angular-cli does not provide a way to modify only some of the config
and that you need to "eject" the whole config to modify a small parameter.
Another Option.
Since version 3.6 there is an option to serialize the grammar and thus avoid the dependency on
Function.protoype.toString. This means you could safely bundle your grammar with webpack without modifying any of the bundling options.
See: https://github.com/SAP/chevrotain/tree/master/examples/parser/serialized_grammar

I am keeping this open to remember to update the webpack example (and maybe FAQ too) to point the the serialization example as well.

@bd82 Thanks for the answer!

I assume that your code works properly when it is un-minified?
And the answer is Yes.

BTW I'll try the options that you give to me and update the issue if i found any solution.

BTW I'll try the options that you give to me and update the issue if i found any solution.

Great 👍


fix: anchor tag for Initializer isn't customized

All of the anchor tags generated within the MarkdownRenderer class should be updated if a custom anchorFormatter is specified, but we forgot to call anchorFormatter when generating the struct initializer header.

@Chriscbr does this break when linking to types in a different package?

@MrArnoldPalmer good question, it shouldn't. By default the anchor formatter will just return the entire id back, but the customization hooks can let you choose what happens if the linked type is in a different package.
So in this PR a snapshot got updated for a test case where we give a custom formatter (https://github.com/cdklabs/jsii-docgen/blob/c5fa457ca332863a2384522f46fca3bf6fb99979/test/docgen/view/markdown.test.ts), but none of the other snapshots updated, which seems appropriate.
This change is pretty minor since we don't currently link to initializers much anyways, but still seemed worth fixing


Improve Interest Calculation Gas Costs

BEFORE:
    InterestImpl
	InterestCalculation gas cost (small): 47039 (25659 pure)
	InterestCalculation gas cost (small): 47039
	InterestCalculation gas cost (small): 52391
	InterestCalculation gas cost (small): 52455
	InterestCalculation gas cost (large): 49777
	InterestCalculation gas cost (large): 55193 (33813 pure)

AFTER:
	InterestCalculation gas cost (small): 43381 (22001 pure)
	InterestCalculation gas cost (small): 43381
	InterestCalculation gas cost (small): 47650
	InterestCalculation gas cost (small): 47714
	InterestCalculation gas cost (large): 44989
	InterestCalculation gas cost (large): 49322 (27942 pure)

closing for now


Litestream from a directory of sqlite files

Litestream from a directory of sqlite files, only keeping recently modified DBs in active replication mode
This only supports S3 right now and has a lot of polishing that needs done but it technically works

For testing, build litestream and start it with:
$ export AWS_ACCESS_KEY_ID={key_id}
$ export AWS_SECRET_ACCESS_KEY={access_key_secret}
$ go build -ldflags "-s -w -X 'main.Version=${LITESTREAM_VERSION}' -extldflags '-static'" -tags osusergo,netgo,sqlite_omit_load_extension ./cmd/litestream
$ ./litestream replicate-dir dbs/ https://{s3_compatible_host}/{bucket}

Then start the test script which generates 100 sqlite DBs and updates them every 5 seconds. It updates 10 DBs for 3 minutes and then moves onto another set of 10, simulating active/passive users so you can see litestream closing the inactive replicas until the next time they become active.
$ go run test/test.go

Did some more reading into inotify and this will definitely run into max_watcher limits. The directory watchers are cheap since you only need one per directory but since we want to watch for modifications on each file in the directory, we need to have an inotify watcher registered in the kernel for each sqlite which will hit the 8192 default limit pretty quickly. We can raise the limit a bunch if we want, just something to be aware of.

There may be a performance showstopper in terms of memory usage at certain scales.
When trying to track 10,000 active SQLites I OOM'd blowing way past the 16GB I had set aside for it:

^ the above heap dump didn't show the total resident memory for some reason
Also litestream ended up with > 10,000 threads active on my system which was maybe not great.
When only 1,000 DBs are active at once, we peak around 6.7GB of memory usage and it's a lot more manageable. CPU sits at >300% though (3 logical cores of a AMD Epyc 7302P) which is pretty intense, spiking to >700% CPU when shifting between active sets of DBs (2k active DBs during the shift):

CPU Profile with 1,000 changing DBs for 120 seconds capturing the "switchover":

I ran into some system limits which caused the following error:
{"time":"2023-11-01T16:00:40.421177913-07:00","level":"ERROR","msg":"watcher error","source":"watcher","error":"fsnotify: queue or buffer overflow"}

Digging into fsnotify source I found this snippet so I've bumped two system params to help deal with it:
$ sudo sysctl fs.inotify.max_queued_events=65536 # bump the inotify queue max size by 4x to 2^16
$ sudo sysctl fs.inotify.max_user_watches=524288 # bump the inotify max user watches to 2^19

This most recent commit hasn't been tested yet because of the CloudFlare outages but I'll run through it once things are stable.


Better errors

Errors should be structures to have more context.

sql: Scan error on column index 18: unsupported Scan, storing driver.Value type <nil> into type *string
we can write normal index value =)

In that case we can't, it comes from database/sql, not from reform.


add local spooling for s3 createWriteStream

Fixes #531

Pull Request Test Coverage Report for Build 1756

10 of 11 (90.91%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.003%) to 66.799%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

util/abstract_fs.js
10
11
90.91%

Files with Coverage Reduction
New Missed Lines
%

routes/my_conversation.js
1
62.83%

Totals

Change from base Build 1752:
-0.003%

Covered Lines:
6828

Relevant Lines:
9616

💛  - Coveralls


About faster-rcnn C++ version

I want to use c++ code detection the object. I think is faster python code.
my question is :
Is there a c++ version  of faster-rcnn?
if not, how can i do?
thanks for u help!

Hello,
I too have run into this issue.  I've discovered that the proposal_target operator is only implemented in python https://github.com/dmlc/mxnet/blob/master/example/rcnn/rcnn/symbol/proposal_target.py#L14 and thus is holding me back from running my network in C++.
I will probably be looking into implementing this in C++ soon.

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


[NEW ICON] Reaper

Skill Name
Reaper
Why?
Reaper is a DAW (Digital Audio Workstation) used for music production, sound design, and other audio related activities.
Reference Image

Would be nice to have! I've been looking for it and couldn't find a good source anywhere


Service Bus live tests create resource with static name

When looking through live test runs I noticed that Service Bus live tests was creating a resource named testingpythontestcasequeue in its dynamically allocated resource group. Since live tests are run in parallel against many platforms this statically defined name looks like it will introduce a race condition in live testing.
Where possible we should be avoiding statically defined names so we can run the live test matrix in parallel.

Thanks Daniel.  Noting to myself from brief investigation that it's arising from the mgmt. tests having a hardcoded namespace and only consuming the ResourceGroupPreparer at the top level.  Need to briefly sync with someone in the know re: test recordings to ensure there wasn't some intent there that mandates a fixed name, and otherwise it should be a straightforward fix. (add the new preparers used within the core SB tests on top of those as well)

Should be dealt with per #10082 feel free to reopen/shout if any issues; hopefully this mitigation will also allow other management tests to utilize the same functionality going forward. (We broadcasted this advice in standup as well, that management tests in the future with hardcoded resource names should plumb through get_replayable_random_resource_name)


[MLIR][DISC] bugfix: mismatch result type of tf2mhlo pattern for BiasAdd

hi @wyzero @joker-eph ，see many PRs here for DISC. May I quickly ask what's the status here now? Is the paper "DISC : A Dynamic Shape Compiler for Machine Learning Workloads" fully implemented?
Thanks~


Pass CommonName to x509::write::name as Option<&str>

Suggested by @tarcieri. This would enable CommonName to be omitted from a certificate. However, before exposing this in x509::write::tbs_certificate (making either issuer or subject optional), we should ensure that we are still generating valid certificates. It appears that an empty Subject is valid under RFC 5280, but is not guaranteed to be compatible (and e.g. a non-empty CN is currently required under CA/B rules).

My understanding is a certificate with an empty subject also needs a critical SAN to be valid.
The alternative to an empty subject which my understanding is more compatible is including something in the subject to make it non-empty. I believe dnQualifier has been (ab)used for this purpose (set to e.g. a random nonce).

Recent updates:

As of #4 we now take a &[] instead of &str, so it is now possible to serialize a certificate with empty subject or issuer fields.
As of #3 we support certificate extensions, but we don't yet have built-in support for SANs.

So the remaining work is to either add SAN support (and then require either a subject or SAN), or translate an empty subject into a non-empty field.

Recent updates:

As of #4 we now take a &[] instead of &str, so it is now possible to serialize a certificate with empty subject or issuer fields.
As of #3 we support certificate extensions, but we don't yet have built-in support for SANs.

So the remaining work is to either add SAN support (and then require either a subject or SAN), or translate an empty subject into a non-empty field.


Roll Flutter Engine from 1b3fd80812c3 to 9c4250333c09 (1 revision)

https://github.com/flutter/engine/compare/1b3fd80812c3...9c4250333c09
2023-11-14<EMAIL_ADDRESS>Roll Skia from b7d581997f2b to a811132be321 (1 revision) (flutter/engine#48019)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Handle case for download() where no peers are present.

Should fix download() stalling out if you have no peers but have the content locally already.
Related to https://github.com/beakerbrowser/beaker/issues/1153 and https://github.com/tswast/dat-pin-box/issues/10 (cc @pfrazee )
Some questions:

How should I test that this works?
Should we throw an error if there are no peers and it isn't downloaded?

@RangerMauve

You should be able to test this by having one feed you append data to and the tell it to download the same data you just appended
No don't throw. Current behaivor looks good (same a .get)

Other that missing test LGTM

Fixed in latest


Disabled e2e load test on Jenkins

The reason is that the test is failing all the time

Thanks - LGTM

Shippable is green. Merging.


OLS-998: Enable attach events functionality for additional k8s resource types

Enabled for the same set of resource types that have the attach YAML functionality (Pod, Job, CronJob, Deployment, DaemonSet, ReplicaSet and StatefulSet).

Override failing test not related to this change:
/override "Red Hat Konflux / ols-enterprise-contract / lightspeed-console"


Mock improvements to avoid false negatives

I noticed that the mock has potential false negatives, for example, if I store the number 0 or an empty string. This PR is a small tweak to address this.

Thanks!


Catch poll errors and retry them

Related Issues
Fixes <link_to_github_issue>
Related PRs

branch
PR

service a PR
Link to PR

service b PR
Link to PR

Description
A few sentences describing the overall goals of the pull request's commits.
Must

[ ] Tests
[ ] Documentation (if applicable)

Is there an issue?


[Spike] Review documentation for event bindings on devfile.io and devfile schema

/area documentation
Which area is this documentation change related to?
/area library
Issue details
It would be nice to review once more the event bindings page (https://devfile.io/docs/2.2.2/adding-event-bindings) on devfile.io. We could make more explicit any validation rules that the preStart & postStart fields have etc.
Other than the documentation at devfile.io we could also review the related fields on the devfile schema as they're might be implementation specific.
What mistake did you find / what is missing in the documentation?
N/A just a suggestion for improvement.
Acceptance Criteria

[ ] The https://devfile.io/docs/2.2.2/adding-event-bindings has been reviewed and it explicitly mentions any rules regarding the postStart / preStart fields.
[ ] The devfile schema description has been updated in order not to be impletantion specific for devworkspaces.

If there is a change to documentation we need to ensure we test it out to make sure everything is okay


Board doc updates and improvements

Changes to board doc style and added images to up_squared board.

Codecov Report

Merging #13231 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #13231   +/-   ##
=======================================
  Coverage   48.75%   48.75%
=======================================
  Files         319      319
  Lines       46871    46871
  Branches    10835    10835
=======================================
  Hits        22850    22850
  Misses      19394    19394
  Partials     4627     4627

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 0e4ff80...09125b3. Read the comment docs.


How to include all labeled examples as part of unlabeled data?

The FixMatch paper said that "In practice, we include all labeled examples as part of unlabeled data without using their labels when constructing U". I'm curious about how to include all labeled examples as part of unlabeled data.
Did you repeat the labeled examples or just concatenate them with the unlabeled data?
In semi-supervised learning, if you just use 1% samples of ImageNet as labeled data and concatenate them with the remaining 99% samples as unlabeled data, would it really affect the final results?

In our dataset creation scrips, we just initialize the unlabeled dataset to be all of the images that we have. The labeled images are then subsetted from the unlabeled dataset.
The reason this is important isn't that we get to add a few percent more images to the unlabeled images, but because the unlabeled images have much stronger augmentations applied. So an image being in the unlabeled dataset means that it sees strong augmentation, whereas if it wasn't then it would only see weak augmentation.

From what I understand, if I apply strong augmentation to labeled images for training one-hot classification loss, then there would not exist much differences.

It wouldn't quite be completely identical because the labeled examples appear much more frequently in minibatch updates than the unlabeled examples. It may end up working out---it would be interesting to see---but it's not mathematically identical.


Basmach School of computer sciences

@phself I am sorry, this domain seems to represent an umbrella institution, not a specific single university or a college.
Moreover, the domain is an umbrella domain for many military organizations in Israel, and JetBrains does not provide free educational licenses to non-educational organizations.
Please apply for free educational license with an official document which proves that you are a student. You can do it using "OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students.
I have to close the request without merging.
Thank you for the understanding!


TypeError: list indices must be integers or slices, not NoneType

 Traceback (most recent call last):
revolut-stocks-calc_1  |   File "stocks.py", line 51, in <module>
revolut-stocks-calc_1  |     main()
revolut-stocks-calc_1  |   File "stocks.py", line 41, in main
revolut-stocks-calc_1  |     process(
revolut-stocks-calc_1  |   File "/usr/src/stocks/libs/process.py", line 62, in process
revolut-stocks-calc_1  |     statements[parser_name] = supported_parsers[parser_name](parser_input_dir).parse()
revolut-stocks-calc_1  |   File "/usr/src/stocks/libs/parsers/revolut.py", line 188, in parse
revolut-stocks-calc_1  |     statements = sorted(statements, key=lambda k: k[self.get_first_non_ssp_activity_index(k)]["trade_date"])
revolut-stocks-calc_1  |   File "/usr/src/stocks/libs/parsers/revolut.py", line 188, in <lambda>
revolut-stocks-calc_1  |     statements = sorted(statements, key=lambda k: k[self.get_first_non_ssp_activity_index(k)]["trade_date"])
revolut-stocks-calc_1  | TypeError: list indices must be integers or slices, not NoneType

Executed with docker-compose command.

Please, provide more information about the issue. Refer to bug reporting remplate for the required information.

One of the exported pdf files was causing the issue. I've excluded it from the process and everything went well.
Unfortunately I can't give it to you because there is a lot of personal information in the file.

I'm closing the issue as there is no additional information.


Preserve relationships if foreign key or principal key properties are ignored

:shipit:

Blocked on #1741.


RAG/retriever tool not working for both RAG and assistant

Tried txt and pdf files smaller than 10MB. In all cases, at first retrieval action i get this error:
File "/usr/local/lib/python3.11/site-packages/langchain_community/vectorstores/pgvector.py", line 656, in _handle_field_filter raise ValueError( ValueError: Invalid operator: in. Expected one of {'$between', '$in', '$ne', '$lte', '$ilike', '$gt', '$eq', '$or', '$and', '$gte', '$lt', '$like', '$nin'}
Extra quirk after assistant creation, the retrieval tool has vanished from "save" assistant. However, with the right question the retrieval will still initiate and fail.
fyi - running with docker on Apple silicon

I believe this was fixed in this PR: https://github.com/langchain-ai/opengpts/pull/252 - have you tried the latest version?

Yes, it was literally what the error said:). Tnx for the headsup @akira!

Do I need to need to close this myself? Let me try

Thanks for the issue @weipienlee. Seems you could not close it => closing.


add generate_maven_metadata post plugin

This plugin will run on orchestrator to collect maven metadata
from fetch-artifacts-koji and fetch-artifacts-url files
This is an accompanying change for https://github.com/containerbuildsystem/atomic-reactor/pull/1602
Main epic - MMENG-829
Story - MMENG-1275
Signed-off-by: Harsh Modi<EMAIL_ADDRESS>Maintainers will complete the following section

[x] Commit messages are descriptive enough
[x] Code coverage from testing does not decrease and new code is covered
[x] JSON/YAML configuration changes are updated in the relevant schema
[x] Changes to metadata also update the documentation for the metadata
[x] Pull request has a link to an osbs-docs PR for user documentation updates

rn updated


Real World examples not working

Browser: Safari
Full items in and are verified correct, however the items are not submitted successfully

@adrian-the-git I think this is not taking in input.

Added a missing 404 response to the API. The correct endpoints are ...intake/resource-suggestion and ...intake/real-world-examples


ImportError: cannot import name 'save_virtual_workbook' from 'openpyxl.writer.excel'

I have installed the rossum client via:
pip install rossum
When I try to run it, I get the following error:

ImportError: cannot import name 'save_virtual_workbook' from 'openpyxl.writer.excel'

The cause is that module rossum.schemas.xlsx includes the following import:
from openpyxl.writer.excel import save_virtual_workbook
However, 'save_virtual_workbook' is not present in a new versions of openpyxl.writer.excel, see the docs, it has been deprecated for some time.
Either fixing the openpyxl dependency is required (to a version <3.1) or a code upgrade for the recent openpyxl version.

Duplicate to https://github.com/rossumai/rossum/issues/42.


The Problem about GetRegion

In lab3b, we meet a confusing problem. In TestSplitConfChangeSnapshotUnreliableRecoverConcurrentPartition3B, we will sometimes meet no region. There is such a case, the oldRegion is splitted, but the newRgion now doesn't have a Leader, then the PD won't know the info of newRegion. If a getRegion msg is sent at that time, it may reply no region. The sleep time of your code is 20ms, but many students' computer may not perform well enough.

We change the sleep time to 50ms then it does not appear now, but I think you may let PD know the region while starting it but not the heartbeat.

"let PD know the region while starting it" that's what your impl should consider

"let PD know the region while starting it but not the heartbeat" that's what your impl should consider

However, in the 3B test, I encountered a situation:
The old leader is partitioned by the network, but it does not stop the leadership and will continue to send heartbeat to PD
Newleader will also send heartbeat to PD
This causes the cache in PD to change constantly, which slows down the performance of the system, and log replication becomes very slow. I solved this problem by adding leader detection