Backtrace exclusion doesn't work in RSpec 3.5.4

I have this part in my spec_helper.rb, starting with default configuration
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
# have no way to turn it off -- the option exists only for backwards
# compatibility in RSpec 3). It causes shared context metadata to be
# inherited by the metadata hash of host groups and examples, rather than
# triggering implicit auto-inclusion in groups with matching metadata.
config.shared_context_metadata_behavior = :apply_to_host_groups

puts "HERE!!!"

# removes too long exception backtrace messages
config.backtrace_exclusion_patterns = [
  /rspec/,
  /\/lib\d*\/ruby\//,
  /org\/jruby\//,
  /bin\//,
  /gems/,
  /spec\/spec_helper\.rb/,
  /lib\/rspec\/(core|expectations|matchers|mocks)/
]

All of these are ignored. I have even put rspec out of desperation. Backtrace is so long that I have to use mouse and scroll up every time. :(
Here is the output I get
$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
$ rspec -v
3.5.4
$ rspec
HERE!!!
/home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:724:in `method_missing': `get_property` is not available on an example group (e.g. a `describe` or `context` block). It is only available from within individual examples (e.g. `it` blocks) or from constructs that run in the scope of an example (e.g. `before`, `let`, etc). (RSpec::Core::ExampleGroup::WrongScopeError)
	from /data/sites/scripts/sw_scripts/ruby/gallery/spec/specs/specs_spec.rb:33:in `block (3 levels) in <top (required)>'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/shared_example_group.rb:36:in `class_exec'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/shared_example_group.rb:36:in `block in include_in'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:797:in `with_frame'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/shared_example_group.rb:35:in `include_in'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:373:in `find_and_eval_shared'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:341:in `include_examples'
	from /data/sites/scripts/sw_scripts/ruby/gallery/spec/specs/specs_spec.rb:68:in `block (3 levels) in <top (required)>'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:385:in `module_exec'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:385:in `subclass'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:258:in `block in define_example_group_method'
	from /data/sites/scripts/sw_scripts/ruby/gallery/spec/specs/specs_spec.rb:66:in `block (2 levels) in <top (required)>'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:385:in `module_exec'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:385:in `subclass'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:258:in `block in define_example_group_method'
	from /data/sites/scripts/sw_scripts/ruby/gallery/spec/specs/specs_spec.rb:14:in `block in <top (required)>'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:385:in `module_exec'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:385:in `subclass'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/example_group.rb:258:in `block in define_example_group_method'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/dsl.rb:43:in `block in expose_example_group_alias'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/dsl.rb:84:in `block (2 levels) in expose_example_group_alias_globally'
	from /data/sites/scripts/sw_scripts/ruby/gallery/spec/specs/specs_spec.rb:6:in `<top (required)>'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `load'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `each'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:100:in `setup'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:86:in `run'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:71:in `run'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:45:in `invoke'
	from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/exe/rspec:4:in `<top (required)>'
	from /home/marko/.gem/ruby/2.3.1/bin/rspec:22:in `load'
	from /home/marko/.gem/ruby/2.3.1/bin/rspec:22:in `<main>'

Is there a quick and dirty way to run with no backtrace at all? Would be more helpful to just read the message instantly even if I lost the line number which caused the error.

I believe you've configured RSpec to show the full backtrace.  This can be done in a few ways:

--backtrace or -b in .rspec
--backtrace or -b in ~/.rspec
--backtrace or -b in .rspec-local
config.backtrace = true in a Ruby file loaded as part of your suite

This option provides a way to easily see the full backtrace for a specific run (which is why it overrides the exclusion patterns you have set--no matter what exclusion you've set, there are occasions where you really need to see the entire backtrace).  In general, I recommend you only pass it via the command line, and do not commit it to a file as it sounds like must have happened for you.

From project directory.
$ cat .rspec
--color
--require spec_helper
$ cat .rspec-local
cat: .rspec-local: No such file or directory
$ cat .~/rspec
cat: .~/rspec: No such file or directory
$ grep -nir backtrace .
./spec/spec_helper.rb:20:  config.backtrace_exclusion_patterns = [
$

After re-reading your original issue, I see what the problem is now: at spec/specs/specs_spec.rb:33, you have get_property directly in an example group block (e.g. a describe or context) but this method is only available for individual examples and needs to be put in an example block (e.g. an it block).  The consequence of this is that this error is not happening while your specs are running--it's happening when your spec file is loaded, because the example group blocks are evaluated eagerly when the files are loaded.
In RSpec 3.5 and before, exceptions that occurred while loading spec files were not handled in anyway whatsoever--and ruby prints the entire backtrace (it has no reason to use RSpec's backtrace filtering...).  In RSpec 3.6 (of which 3.6.0.beta1 has been out for a bit), we now handle this much better: we rescue errors that occur while spec files are being loaded and filter the backtrace using the filtering options.
So, in summary:

The fact that you are seeing this for a load-time error does not indicate backtrace filtering is not working for example failures (the only place where it has ever worked for RSpec 3.5 and before).
If you want it to work for this situation, upgrade to RSpec 3.6.0.beta1.
Or, just fix this specific error. The backtrace filtering for failures in your examples should still work.

How do I use code in example groups? I don't want it to be in module Helper becaues it's local to that spec and it helps me clean up examples.
describe Specs::Specs do
  shared_context 'common' do
    def get_property(type)
      subject.send(type)
    end
  end

  describe 'attributes not needing conversion' do
    include_context 'common'
    get_property(:weight)
  end
end

How to make it so I can actually use get_property from within nested example groups?

get_property is available within nested example groups -- but it must be called from within examples in nested groups, and not within the body of the group itself.  This works, for example:
RSpec.describe 'Specs::Specs' do
  shared_context 'common' do
    def get_property(type)
      subject.send(type)
    end
  end

  describe 'attributes not needing conversion' do
    subject { [1, 2, 3] }
    include_context 'common'

    it 'works in an example in this example group' do
      expect(get_property(:length)).to eq 3
    end

    context "in a nested group" do
      subject { Time.now }

      it 'works in an example in a nested group, too' do
        expect(get_property(:year)).to eq 2016
      end
    end
  end
end

Notice I am calling get_property from within examples in the group and the nested group, not from the body of the nested group itself.  If you want to define a method that can be called from the body of a group, you can do that, too, but you have to define the method as a singleton method (or "class method"):
RSpec.describe 'Specs::Specs' do
  shared_context 'common' do
    def self.define_lets(lets)
      lets.each { |name, value| let(name) { value } }
    end
  end

  describe 'attributes not needing conversion' do
    include_context 'common'
    define_lets foo: 12, bar: "a"

    it 'works in an example in this example group' do
      expect(foo).to eq 12
      expect(bar).to eq "a"
    end

    context "in a nested group" do
      define_lets bazz: 19

      it 'works in an example in a nested group, too' do
        expect(bazz).to eq 19
      end
    end
  end
end

In general, example groups and examples have the same relationship as a class and an instance of the class.  The body of the example group (the describe block) defines a class, and individual examples are run within an instance of the class.  This is why methods defined via def method_name are available for use within examples but not within the group body (just like how methods defined via def method_name in a class body work) while methods defined via def self.method_name are available for use within the example group body but not the examples themselves (again, this is just like how class methods work in a class body).
For your specific example--get_property--it does not make sense to call it from within the group body.  There are two subject methods:

In the group body, it defines the subject, and does not return a meaningful value.  (It exists only for the side effect of defining the subject)
In an example it returns the subject

Since subject in a group exists only for the side effect and has no meaningful return value, subject.send(type) in that context is going to fail, and I'm not even sure what you would be trying to do with it in a group body.  But within an individual example it works just fine.

I think it makes perfect sense. I don't really need subject, just described_class.new
What I have is
  describe ':production' do
    include_examples 'single unit type', :production, 'units'
  end

  describe ':engine_volume' do
    include_examples 'single unit type', :engine_volume, 'liter'
  end

I am going to have a bunch of these and what I'd prefer is to just pass along type and to ruby read default unit for that type automatically instead of manually specifying 'liter' and 'units'.
All I need to do is access it is this code from example groups
def default_unit_for(type)
  #
end

This seems impossible without moving it into a module, but I need default_unit_for only in 1 spec file.

I don't understand what you are trying to accomplish.

shared_examples_for 'single unit type' do |type, default_unit|

Here I want to remove parameter default_unit and instead get it automatically.

Where would you like it to get default_unit from?  I don't understand that from what you've provided so I can't advise you.
Also, why is making it more implicit desirable?  Passing an argument is very explicit and easy to understand; having something default based on an implicit mechanism is harder to understand.

Code that would get me the unit would be this:
described_class.new.send(type).class.allowed_units[type]

This should work:
shared_examples_for 'single unit type' do |type|
  let(:default_unit) { described_class.new.send(type).class.allowed_units[type] }

  it "does something with default unit" do
    do_something_with(default_unit)
  end
end

Yes but it doesn't work in string description of example. What I have is:
it "allows setting #{type} in '#{default_unit}'" do
  ...
end

That's because let defines an instance method for use within examples, but isn't available to be called from the group itself.  After all, a big part of what let does is memoize the value for each example, but that can't be done when you aren't in an example.
If you want to access it from group context, as you are there, then do this:
shared_examples_for 'single unit type' do |type|
  default_unit = described_class.new.send(type).class.allowed_units[type]

  it "allows setting #{type} in '#{default_unit}'" do
    do_something_with(default_unit)
  end
end

It's just ruby, so you can create local variables anywhere and access them from that scope and also any blocks in the scope.
Be aware, however, that we usually recommend against instantiating the class you are testing within the body of the example group.  While it might work just fine in your case, the fact that it is instantiated at spec load time often has some significant downsides, and these may not be obvious:

When you are filtering to just one example (e.g. via line number or using focus filtering or whatever), you probably don't want it instantiating other classes that are only involved in specs you aren't running.  But since the group is evaluated eagerly (in order to define examples at load time) it'll happen regardless of whether or not any specs in that context are going to run.  If instantiation is slow, it can make loading your spec files really slow even if you aren't running the examples.
If the class interacts with any external state (e.g. the database) that is usually managed on a per-example basis (such as rolling back a transaction after every spec), then using it in the body has the potential to bypass your sandboxing mechanism.  For example, if instantiating the class causes a record to be put in the DB, it'll happen outside the context of your per-example transactions which could cause all sorts of problems.

 default_unit = described_class.new.send(type).class.allowed_units[type]

I could do this but I already have a function default_unit_for that does this for examples in that spec file so I'd like to avoid duplication by somehow reusing that function, or creating self.default_unit_for but that results in some errors like:
/home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/formatters/base_text_formatter.rb:69:in `write': Broken pipe @ io_write - <STDOUT> (Errno::EPIPE)
    from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/formatters/base_text_formatter.rb:69:in `puts'
    from /home/marko/.gem/ruby/2.3.1/gems/rspec-core-3.5.4/lib/rspec/core/formatters/base_text_formatter.rb:69:in `close'

It would be nice to be able to reuse functions in examples and example groups.
Thank you very much for your help. I have to leave for a meeting now.

That error is very odd.  Sounds like a bug in RSpec.  Defining a helper method (either via def foo or def self.foo) should not cause a broken pipe error.  Can you boil that down to a reproducible example an open an issue?

It would be nice to be able to reuse functions in examples and example groups.

The simplest way to do that is to put the method in a module and then you can both include and extend the module to make it available to both groups and examples:
module UnitHelpers
  def default_unit_for(type)
    # ...
  end
end

RSpec.describe MyClass do
  extend UnitHelpers
  include UnitHelpers

  # ...
end

Can you boil that down to a reproducible example an open an issue?
I don't have time today and code is deleted, but try creating default_unit_for(type) and self.default_unit_for(type). I don't remember if I did it in same context or one was nested.

I remember this piece of code
default_unit_for(type)
  self.default_unit_for(type)
end

I have called both of these in shared_examples_for and calling one or both of them crashed it.

Please put together a github repo with code that triggers this bug.  We need something we can clone and run to troubleshoot.  We generally don't have the time to put together such a thing ourselves for something like this.  In my experience, we generally can't reproduce if we try to put it together.

OK I'll try tomorrow. Code is deleted so I can try to fiddle with what  I wrote in post above.

I couldn't reproduce the issue.

Ok. Closing.


Added Codes for Binary Search

Hey 👋🏽😇 there i have added the codes for Binary search using iterative and recursive method.

👍😇


Consider using Redis as a memory backing store for VSecM Safe

Not by default, but optionally, as a plugin:
This will have the advantage of moving the state outside of Aegis Safe; so there can be more than one Aegis Safe instance behind a load balancer.
Creation of the Age Key secret need to be transactionalized so that Two pods do not try to create it at the same time; but Redis can be leveraged for that too.
The benefits of this approach: high availability.
Drawbacks of this approach: it will be mildly slower due to the data store being external to the Pod, and also due to the encryption overhead.

Use a plugin architecture
file / database / memory / etc.
if file, then you cannot use HA mode for VSEcm.


fix: Fixed stepfunction_Sync action

Thanks, Johannes Koch (@Lock128) for figuring out this!
Official docs are not correct on this.
StartExecution is for STANDARD StepFunctions, and StartSyncExecution is for EXPRESS StepFunctions.

This PR is included in version 4.0.1 :tada:


Release 0.1.1

Changed
Library
Api

Added getting the url.Values as a parameter of the callMethod method of the BasicMethod structure
in the api package. And, accordingly, it is now possible to add query parameters to the API method information.

Added
Library
Core

Added method PrepareRequestWithClient in the core package to specify user`s http.Client for requests to API.
Added test mod for working api system.

Api

Added test package to api package with tests of API methods.
Added methods of account management in the
api/user package.
Added methods of backup management in the
api/backup package.

Pkg

Added a function for cloning the map.

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


This plugin is not working

Hi I tried this plugin, but it is still not refreshing my gallery with the latest images stored. Any help, why it is not working?

me too

TypeError: cordova.plugins.MediaScannerPlugin is not a function  getting this

Have you declared cordova variable in component file. It works for me. I worked on an ionic project and declared the variable after the project imports
declare var cordova: any;

I have declared it, still no luck. I'm testing it on Android 9.


Determine value of records

object that cannot be modified and usually has some special creation syntax/shorthand e.g. var rec = {a=1, b=2};
Could simply be dynamics that then freeze if those features are implemented.

Having inline object creation syntax is highly desirable. Even if they are not actually records yet.

This might intertwine with #83

we have inline object creation, and readonly, this is now a const #73 problem.


pip install hnswlib fail on python 3.9

`Building wheels for collected packages: hnswlib
Building wheel for hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'hnswlib' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hnswlib
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects`
I have installed the latest Microsoft Visual C++ redistributions despite of that it is not installing

It seems like something is wrong with the environment. E.g. not running from the command line with MS VC paths set.

any solution to fix that problem

Can you check your path variables? Does cl.exe work?

I don't know if this is at all helpful to you all, but I (on a Mac) also got failures running
pip install hnswlib
and
python3.9 -m pip install hnswlib
but it worked when I used python 3.7:
python3.7 -m pip install hnswlib

I have this problem with Python 3.10.3 on macOS 13.2 (M1)
...
        /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:610:45: error: unknown type name 'nullptr_t'
        operator!=(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT
                                                    ^
        fatal error: too many errors emitted, stopping now [-ferror-limit=]
        20 errors generated.
        error: command '/usr/bin/clang' failed with exit code 1
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for hnswlib
  Failed to build hnswlib
  ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

I'm not using hnsw directly, but it's needed as a dependency of another package (https://github.com/chroma-core/chroma/issues/250)
Are there some instructions for how to install successfully?

more details around the error:
building 'hnswlib' extension
creating build
creating build/temp.macosx-12.3-arm64-cpython-310
creating build/temp.macosx-12.3-arm64-cpython-310/python_bindings
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/private/var/folders/w1/_vgkxyln4c7bk8kr29s1y1k00000gn/T/pip-build-env-tyw8alra/overlay/lib/python3.10/site-packages/pybind11/include -I/private/var/folders/w1/_vgkxyln4c7bk8kr29s1y1k00000gn/T/pip-build-env-tyw8alra/overlay/lib/python3.10/site-packages/numpy/core/include -I./hnswlib/ -I/Users/anentropic/Library/Caches/pypoetry/virtualenvs/experiments-langchain-FPovFLPB-py3.10/include -I/Users/anentropic/.pyenv/versions/3.10.3/include/python3.10 -c ./python_bindings/bindings.cpp -o build/temp.macosx-12.3-arm64-cpython-310/./python_bindings/bindings.o -O3 -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO=\"0.7.0\" -std=c++14 -fvisibility=hidden
In file included from ./python_bindings/bindings.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:41:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:841:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/copy.h:12:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/unwrap_iter.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/incrementable_traits.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/concepts:133:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:421:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/invoke.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/apply_cv.h:16:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:50:9: error: no member named 'nullptr_t' in the global namespace
using ::nullptr_t;
      ~~^

I know basically nothing about C++
but googling I have learned that nullptr_t was added to the standard in C++11
and we are calling clang with -stdlib=libc++ -std=c++14, which seems like it should work

no idea if this is relevant, but I found a similar looking issue here: https://github.com/chipsalliance/verible/issues/260
and they fixed it by adding #include <cstddef> at the top of one of their header files and prefixing as std::nullptr_t
https://github.com/chipsalliance/verible/commit/241da929600ea0e458580df6f8bfe95b288cff08

I have the same problem using  python 3.9
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

same is happening as @anentropic mentioned i was installing chromadb and got failure with python 3.9 , any solutions people have found on this ?

Hey all. I looked in the code and saw there’s a check for an environment variable. Try
export HNSWLIB_NO_NATIVE=1
and try install again.

UsingHNSWLIB_NO_NATIVE=1 I get a different error:
  Command ['/Users/anentropic/Library/Caches/pypoetry/virtualenvs/experiments-langchain-FPovFLPB-py3.10/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/anentropic/Library/Caches/pypoetry/virtualenvs/experiments-langchain-FPovFLPB-py3.10', '--no-deps', '/Users/anentropic/Library/Caches/pypoetry/artifacts/d2/32/ed/8674b10968a423c6f1b64821759e55a782ff3b28da34e2a886e85d54a9/hnswlib-0.7.0.tar.gz'] errored with the following return code 1, and output:
  Processing /Users/anentropic/Library/Caches/pypoetry/artifacts/d2/32/ed/8674b10968a423c6f1b64821759e55a782ff3b28da34e2a886e85d54a9/hnswlib-0.7.0.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'error'
    error: subprocess-exited-with-error

    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> [16 lines of output]
        Traceback (most recent call last):
          File "/Users/anentropic/Library/Caches/pypoetry/virtualenvs/experiments-langchain-FPovFLPB-py3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
            main()
          File "/Users/anentropic/Library/Caches/pypoetry/virtualenvs/experiments-langchain-FPovFLPB-py3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/Users/anentropic/Library/Caches/pypoetry/virtualenvs/experiments-langchain-FPovFLPB-py3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
            return hook(config_settings)
          File "/private/var/folders/w1/_vgkxyln4c7bk8kr29s1y1k00000gn/T/pip-build-env-29nj4h4p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
            return self._get_build_requires(config_settings, requirements=['wheel'])
          File "/private/var/folders/w1/_vgkxyln4c7bk8kr29s1y1k00000gn/T/pip-build-env-29nj4h4p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
            self.run_setup()
          File "/private/var/folders/w1/_vgkxyln4c7bk8kr29s1y1k00000gn/T/pip-build-env-29nj4h4p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
            exec(code, locals())
          File "<string>", line 74, in <module>
          File "<string>", line 91, in BuildExt
        ValueError: list.remove(x): x not in list
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

@dcydrob i did that , and added it in ~/.bashrc  file still the same error . did it worked for u . am i missing something .
this is how my bashrc looks like .
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi
export HNSWLIB_NO_NATIVE=1

Building wheels for collected packages: hnswlib
  Building wheel for hnswlib (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for hnswlib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      running bdist_wheel
      running build
      running build_ext
      creating tmp
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/engati/faq-indexer/venv/include -I/usr/local/include/python3.9 -c /tmp/tmpfi1kk7tb.cpp -o tmp/tmpfi1kk7tb.o -std=c++14
      gcc: error: unrecognized command line option '-std=c++14'
      error: command '/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for hnswlib
Failed to build hnswlib

Might be that gcc can't find cc1plus. I had the same problem on Amazon linux and this stackoverflow post fixed it.

HI.
The same issue occurred in Windows 10, Python 3.9, and VSCODE. I resolved the issue by installing Microsoft C++ Build Tools (selecting the C++ build package during installation).

HI. The same issue occurred in Windows 10, Python 3.9, and VSCODE. I resolved the issue by installing Microsoft C++ Build Tools (selecting the C++ build package during installation).

Hey @tourbut  , can you please advise which option from the vs installer exactly did u choose , thanks

For windows:

Download Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Open, and then in Workloads select "Desktop development with C++" to install:

I have the same problem using python 3.9
Failed to build hnswlib ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

I have the same error on MacOS 13.1 and python 3.10. Setting the environment variable HNSWLIB_NO_NATIVE did not work for me. I do not have this problem on Windows 11.

I have the same problem using python 3.9
Failed to build hnswlib ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

I have the same error on MacOS 13.1 and python 3.10. Setting the environment variable HNSWLIB_NO_NATIVE did not work for me. I do not have this problem on Windows 11.

I was able to resolve this by upgrading XCode. I then built hnswlib by running setup.py, which I was not able to do prior. Upgrading XCode may have upgraded or installed Clang, which is now at 14.0.3 for me.

@bgarza what was the initial environment?
I do not know a way to reproduce this error on my mac.

I have clang 14.0.3 and all the problems above:
$ clang --version
Apple clang version 14.0.3 (clang-14<IP_ADDRESS>.1)
Target: arm64-apple-darwin22.4.0

I have not tried cloning hnswlib repo and building from source though

@bgarza what was the initial environment? I do not know a way to reproduce this error on my mac.

I believe that XCode was out of date, but not sure at what version. Not sure why, but the XCode upgrade took a very long time via the App Store. After the upgrade I was able to build the project.

@anentropic I see. Do you use default system python or anaconda?
pip install hnswlibshould be pretty much the same thing as install from source (pip install git+https://github.com/nmslib/hnswlib.git)

@anentropic I see. Do you use default system python or anaconda? pip install hnswlibshould be pretty much the same thing as install from source (pip install git+https://github.com/nmslib/hnswlib.git)

I'm not using anaconda
I am using pyenv python with a poetry virtualenv, I think my pyenv is installed via homebrew

Was getting the same error while installing on Linux inside Docker Container:
In file included from ./python_bindings/bindings.cpp:6:
      ./hnswlib/hnswlib.h: At global scope:
      ./hnswlib/hnswlib.h:80:13: warning: ‘bool AVX512Capable()’ defined but not used [-Wunused-function]
         80 | static bool AVX512Capable() {
            |             ^~~~~~~~~~~~~
      gcc: fatal error: Killed signal terminated program cc1plus
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

It revealed that problem was in low RAM (1GB). As I created swap-file for another 1GB everything worked just fine.
I used this commands to create SWAP-memory, if anyone needs:
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

And deleted it afterwards with
sudo swapoff /swapfile
sudo rm /swapfile

how to set the environment var?
export HNSWLIB_NO_NATIVE=1
what should i type in the terminal?

export HNSWLIB_NO_NATIVE=1
export ARCHFLAGS="-arch x86_64"
and try again!!

Was getting the same error on mac using python 3.11 in a venv. Switching back to python 3.10 solved the problem

how to set the environment var on Windows? export HNSWLIB_NO_NATIVE=1
what should i type in the terminal?

set HNSWLIB_NO_NATIVE=1 is the equivalent on windows terminal.

MACOS installation is fixed in the develop branch
Could you try it?
pip install git+https://github.com/nmslib/hnswlib.git@develop

pip install git+https://github.com/nmslib/hnswlib.git@develop

This should also work without need for HNSWLIB_NO_NATIVE=1
Also please note that it seems like Windows problem is separate (unless you want to compile it for ARM) and should be solved by https://github.com/nmslib/hnswlib/issues/442#issuecomment-1519066101

@dyashuni it's still throwing an error about nullptr_t on MacOS M1.
>>pip install git+https://github.com/nmslib/hnswlib.git@develop

Collecting git+https://github.com/nmslib/hnswlib.git@develop
  Cloning https://github.com/nmslib/hnswlib.git (to revision develop) to /private/var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/pip-req-build-sl954f2b
  Running command git clone --filter=blob:none --quiet https://github.com/nmslib/hnswlib.git /private/var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/pip-req-build-sl954f2b
  Running command git checkout -b develop --track origin/develop
  Switched to a new branch 'develop'
  branch 'develop' set up to track 'origin/develop'.
  Resolved https://github.com/nmslib/hnswlib.git to commit a4c8b0b9e33a813d94477e7eee79e50c04c42577
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /Users/landon/.pyenv/versions/3.9.13/lib/python3.9/site-packages (from hnswlib==0.7.0) (1.23.5)
Building wheels for collected packages: hnswlib
  Building wheel for hnswlib (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for hnswlib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [158 lines of output]
      running bdist_wheel
      running build
      running build_ext
      creating var
      creating var/folders
      creating var/folders/v1
      creating var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn
      creating var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Users/landon/.pyenv/versions/3.9.13/include/python3.9 -c /var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/tmpzj2zqjmq.cpp -o var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/tmpzj2zqjmq.o -std=c++14
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Users/landon/.pyenv/versions/3.9.13/include/python3.9 -c /var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/tmps46akwk3.cpp -o var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/tmps46akwk3.o -fvisibility=hidden
      checking avalability of flag: -march=native
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Users/landon/.pyenv/versions/3.9.13/include/python3.9 -c /var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/tmp2q6ouw1f.cpp -o var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/tmp2q6ouw1f.o -march=native
      flag: -march=native is available
      building 'hnswlib' extension
      creating build
      creating build/temp.macosx-12.6-arm64-cpython-39
      creating build/temp.macosx-12.6-arm64-cpython-39/python_bindings
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/private/var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/pip-build-env-gszmyqny/overlay/lib/python3.9/site-packages/pybind11/include -I/private/var/folders/v1/d5cz0qq13gn2349x9tw2vy_r0000gn/T/pip-build-env-gszmyqny/overlay/lib/python3.9/site-packages/numpy/core/include -I./hnswlib/ -I/Users/landon/.pyenv/versions/3.9.13/include/python3.9 -c ./python_bindings/bindings.cpp -o build/temp.macosx-12.6-arm64-cpython-39/./python_bindings/bindings.o -O3 -march=native -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO=\"0.7.0\" -std=c++14 -fvisibility=hidden
      In file included from ./python_bindings/bindings.cpp:1:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:41:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:841:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/copy.h:12:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/unwrap_iter.h:13:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/incrementable_traits.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/concepts:133:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:421:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/invoke.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/apply_cv.h:16:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:13:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:50:9: error: no member named 'nullptr_t' in the global namespace
      using ::nullptr_t;
            ~~^
      In file included from ./python_bindings/bindings.cpp:1:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:41:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:841:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/copy.h:12:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/unwrap_iter.h:13:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/incrementable_traits.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/concepts:133:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:452:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_compound.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_fundamental.h:14:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:24:49: error: use of undeclared identifier 'nullptr_t'; did you mean 'nullptr'?
      template <>          struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
                                                      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:24:49: error: template argument for template type parameter must be a type
      template <>          struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
                                                      ^~~~~~~~~
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:23:17: note: template parameter is declared here
      template <class _Tp> struct __is_nullptr_t_impl       : public false_type {};
                      ^
      In file included from ./python_bindings/bindings.cpp:1:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:41:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:848:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:149:45: error: field has incomplete type 'std::exception_ptr'
          _LIBCPP_INLINE_VISIBILITY exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
                                                  ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:144:24: note: definition of 'std::exception_ptr' is not complete until the closing '}'
      class _LIBCPP_TYPE_VIS exception_ptr
                             ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:149:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
          _LIBCPP_INLINE_VISIBILITY exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:689:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
      #  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
                                          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:673:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
                __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_VERSIONED_IDENTIFIER))))
                               ^
      In file included from ./python_bindings/bindings.cpp:1:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:41:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:848:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:149:55: error: expected ';' at end of declaration list
          _LIBCPP_INLINE_VISIBILITY exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
                                                            ^
      In file included from ./python_bindings/bindings.cpp:1:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:41:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:860:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:28:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:173:3: error: non-static data member cannot be constexpr; did you intend to make it const?
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
        ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:728:31: note: expanded from macro '_LIBCPP_CONSTEXPR'
      #    define _LIBCPP_CONSTEXPR constexpr
                                    ^
      In file included from ./python_bindings/bindings.cpp:1:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:41:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:860:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:28:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:173:32: error: member 'nullptr_t' declared as a template
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
                                     ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:173:42: error: expected ';' at end of declaration list
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
                                               ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:262:25: error: unknown type name 'nullptr_t'
        unique_ptr& operator=(nullptr_t) _NOEXCEPT {
                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:3: error: non-static data member cannot be constexpr; did you intend to make it const?
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
        ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:728:31: note: expanded from macro '_LIBCPP_CONSTEXPR'
      #    define _LIBCPP_CONSTEXPR constexpr
                                    ^
      In file included from ./python_bindings/bindings.cpp:1:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:41:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:860:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:28:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:32: error: member 'nullptr_t' declared as a template
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
                                     ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:42: error: expected ';' at end of declaration list
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
                                               ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:484:25: error: unknown type name 'nullptr_t'
        unique_ptr& operator=(nullptr_t) _NOEXCEPT {
                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:14: error: unknown type name 'nullptr_t'
        void reset(nullptr_t = nullptr) _NOEXCEPT {
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:24: error: cannot initialize a parameter of type 'int' with an rvalue of type 'std::nullptr_t'
        void reset(nullptr_t = nullptr) _NOEXCEPT {
                             ^ ~~~~~~~
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:24: note: passing argument to parameter here
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:594:45: error: unknown type name 'nullptr_t'
      operator==(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT
                                                  ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:602:12: error: unknown type name 'nullptr_t'
      operator==(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT
                 ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:610:45: error: unknown type name 'nullptr_t'
      operator!=(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT
                                                  ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for hnswlib
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

MACOS installation is fixed in the develop branch
Could you try it?
pip install git+https://github.com/nmslib/hnswlib.git@develop

This solution worked for me in Apple M1 with clang 14.0.3 and python 3.10.5. I had the same problem as previous reporters above. Did not need to set HNSWLIB_NO_NATIVE flag either. Thank you!
Installed version was:
pip freeze|grep hnsw
hnswlib @ git+https://github.com/nmslib/hnswlib.git@a4c8b0b9e33a813d94477e7eee79e50c04c42577

This also makes it possible to install chromed without any issues.

I am having this issue with windows and it was not resolved by installing the build tools or any other suggestion I have found. It works on my windows 11 machine but not my windows 10.

I'm also getting a similar fail (although with latest Python = 3.11) with the error:-
C1083: Cannot open include file: 'crtdbg.h': No such file or directory
Installation command line was
python -m pip install hnswlib
This occurs with a fresh install of Visual Studio 2022 Community 17.6.2 and Python 3.11.
crtdbg.h is present in the VS include tree (as well as various other locations eg StrawberryPerl)
C:\Program Files\Microsoft Visual Studio\2022\Community\SDK\ScopeCppSDK\vc15\SDK\include\ucrt\crtdbg.h
  × Building wheel for hnswlib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'hnswlib' extension
      creating build
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\python_bindings
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\dgm55\AppData\Local\Temp\pip-build-env-1uoe3q4k\overlay\Lib\site-packages\pybind11\include -IC:\Users\dgm55\AppData\Local\Temp\pip-build-env-1uoe3q4k\overlay\Lib\site-packages\numpy\core\include -I./hnswlib/ -IC:\Users\dgm55\AppData\Local\Programs\Python\Python311\include -IC:\Users\dgm55\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" /EHsc /Tp./python_bindings/bindings.cpp /Fobuild\temp.win-amd64-cpython-311\Release\./python_bindings/bindings.obj /EHsc /openmp /O2 /DVERSION_INFO=\\\"0.7.0\\\"
      bindings.cpp
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include\yvals.h(17): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for hnswlib
Failed to build hnswlib
ERROR: Failed to build one or more wheels

My environment is :
Apple clang version 14.0.3 (clang-14<IP_ADDRESS>.1)
Target: x86_64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
MAC  2018:
processor: 2.3 GHz Quad-Core Intel Core i5

I have the same problem when I install by
pip install git+https://github.com/nmslib/hnswlib.git@develop
error: no member named 'nullptr_t' in the global namespace       using ::nullptr_t;             ~~^

python3.9 macos13.4.1  worked export HNSWLIB_NO_NATIVE=1

@armalko solution worked thanks!!!

In case it helps, I was able to make it build under Windows with these two packages:

MSVC v143 - VS 2022 C++ x64/x86 build tools
Windows 10 SDK

So you don't need to install the full "Desktop development with C++" workload.

Hey all. I looked in the code and saw there’s a check for an environment variable. Try export HNSWLIB_NO_NATIVE=1 and try install again.

thnx... now I need to know why that worked

The following solution was of help to me resolving this after attempting every thing to install or uninstall ( sometimes that work ,sometimes no matter what you install SDK, .... ) , the main thing MS Windows have two Diffrent paths to play with , one which is the C:\Program Files (x86)\Microsoft Visual Studio\ , the other track is C:\Program Files (x86)\Windows Kits\10\bin\ , that is problametic ( at least how I see it ) , any ways I did the following if it would be of help to any one , thanks to Stackoverflow guys :  https://stackoverflow.com/questions/14372706/visual-studio-cant-build-due-to-rc-exe/
Add this to your PATH environment variables:
C:\Program Files (x86)\Windows Kits\8.0\bin\x86
Copy these files:
rc.exe
rcdll.dll
From
C:\Program Files (x86)\Windows Kits\8.0\bin\x86  ( should be in your Path of course )
To
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin

Solution for the problem:
https://gist.github.com/ashmalvayani/ab3f4a8469fe3a2e9904c3a2674ea947

For Linux users.
sudo apt-get install python3.11-dev
if chromadb is needed then sudo apt-get install chromadb

I got this error along with pipenv even after setting up export HNSWLIB_NO_NATIVE=1
Python 3.11.2
Failed case😡
pipenv install chromadb

Worked case🥰
pipenv shell && pip install chromadb

export HNSWLIB_NO_NATIVE=1 export ARCHFLAGS="-arch x86_64" and try again!!

Thanks for your help. This worked for me: ARCHFLAGS="-arch x86_64" pip install hnswlib. I have an Mac with Intel hardware, not M1.

Hi, I'm also seeing hnswlib install issues with the following environment and install output
Environment:
Python 3.9.6 under RHEL 9, with pip v23.3.1
gcc v11.4.1, g++ v11.4.1
Output from pip:
(.venv) [XXXXXXX]$ pip3 install hnswlib
Collecting hnswlib
Using cached hnswlib-0.7.0.tar.gz (33 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in ./.venv/lib/python3.9/site-packages (from hnswlib) (1.26.2)
Building wheels for collected packages: hnswlib
Building wheel for hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
running bdist_wheel
running build
running build_ext
creating tmp
gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/home/xxxxxxxx/.venv/include -I/usr/include/python3.9 -c /tmp/tmpsdn20l8t.cpp -o tmp/tmpsdn20l8t.o -std=c++14
gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/home/xxxxxxxx/.venv/include -I/usr/include/python3.9 -c /tmp/tmpzeh61qro.cpp -o tmp/tmpzeh61qro.o -fvisibility=hidden
building 'hnswlib' extension
creating build
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/python_bindings
gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/tmp/pip-build-env-0h0zx8s6/overlay/lib/python3.9/site-packages/pybind11/include -I/tmp/pip-build-env-0h0zx8s6/overlay/lib64/python3.9/site-packages/numpy/core/include -I./hnswlib/ -I/home/xxxxxxxx/.venv/include -I/usr/include/python3.9 -c ./python_bindings/bindings.cpp -o build/temp.linux-x86_64-cpython-39/./python_bindings/bindings.o -O3 -fopenmp -DVERSION_INFO="0.7.0" -std=c++14 -fvisibility=hidden
In file included from /tmp/pip-build-env-0h0zx8s6/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
from /tmp/pip-build-env-0h0zx8s6/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-build-env-0h0zx8s6/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-build-env-0h0zx8s6/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/functional.h:12,
from ./python_bindings/bindings.cpp:2:
/tmp/pip-build-env-0h0zx8s6/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory
266 | #include <Python.h>
|          ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hnswlib
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

choose these 2 components and ，it works well on windows11

Interesting, thanks for the note. I'll continue to look to see if something similar works for RHEL, as I'm not using Windows in this case.

Hey all. I looked in the code and saw there’s a check for an environment variable. Try export HNSWLIB_NO_NATIVE=1 and try install again.

It works for me on python3.7 ubuntu16.04 ! Thank you~

I'm a mac user and I switched from Python 3.12.xx to Python 3.11.xx and it works fine.

For those who are still struggling, hope this would help: try install chroma-hnswlib instead.
My case: I can install hnswlib without issue on my macbook, however, it kept failing on the remote server. Somehow I found out I could actually install chroma-hnswlib successfully on the server, so I just comment out the hnswlib in pyproject.toml 😹
python3 -m pip install chroma-hnswlib
python3 -c "import hnswlib; print('hnswlib imported successfully')"

https://pypi.org/project/chroma-hnswlib/


[test-triage] kmac_shadow_reg tests failing

Hierarchy of regression failure
Block level
Failure Description
* `UVM_ERROR (csr_utils_pkg.sv:466) [csr_utils::csr_rd_check] Check failed obs == exp (* [*] vs * [*]) Regname: kmac_reg_block.status.alert_recov_ctrl_update_err reset value: * Check_csr_read
_clear_staged_val task: check update_err status` has 1 failures:
    * Test kmac_shadow_reg_errors_with_csr_rw has 1 failures.
        * 0.kmac_shadow_reg_errors_with_csr_rw.37351378394608352040777255684192131175685792135976954976323269401727040107622\
          Line 872, in log /home/adrianl/integrated/scratch/HEAD/kmac_masked-sim-vcs/0.kmac_shadow_reg_errors_with_csr_rw/latest/run.log

                UVM_ERROR @ 174561530 ps: (csr_utils_pkg.sv:466) [csr_utils::csr_rd_check] Check failed obs == exp (1 [0x1] vs 0 [0x0]) Regname: kmac_reg_block.status.alert_recov_ctrl_update_
err reset value: 0x0  Check_csr_read_clear_staged_val task: check update_err status

Steps to Reproduce

GitHub Revision: 83d08c404b
dvsim invocation command to reproduce the failure, inclusive of build and run seeds:
util/dvsim/dvsim.py hw/ip/kmac/dv/kmac_masked_sim_cfg.hjson -i kmac_shadow_reg_errors_with_csr_rw --tool vcs --build-seed<PHONE_NUMBER>7980121648949789282063322266496016209500883225240730864920651071561 --fixed-seed<PHONE_NUMBER>4608352040777255684192131175685792135976954976323269401727040107622 -v m

Tests with similar or related failures
All shadow reg-related tests appear to be impacted by that commit, in a seed-dependent manner with pass rates dropping into 80's and 90's from 100%.
V2S 	shadow_reg_update_error 	kmac_shadow_reg_errors 	1.480s 	97.999us 	17 	20 	85.00
V2S 	shadow_reg_read_clear_staged_value 	kmac_shadow_reg_errors 	1.480s 	97.999us 	17 	20 	85.00
V2S 	shadow_reg_storage_error 	kmac_shadow_reg_errors 	1.480s 	97.999us 	17 	20 	85.00
V2S 	shadowed_reset_glitch 	kmac_shadow_reg_errors 	1.480s 	97.999us 	17 	20 	85.00
V2S 	shadow_reg_update_error_with_csr_rw 	kmac_shadow_reg_errors_with_csr_rw 	3.240s 	130.481us 	20 	20 	100.00

It's probably worth to investigate this one as the pass rate for this test keeps oscillating between 95% and 75%. But I am lowering the priority to P3. I expect this to be a DV issue, honestly.


feat(expo): update to SDK 52

This PR is part of https://github.com/facebook/react-strict-dom/issues/236 [action items](Update to SDK 52)
Test Plan:

IOS & Android

I verified that the mark element issue in ios still exists:

Thanks, looks good. Can confirm this has turned on features previously missing, like support for position:static.


Update installing-nsx-t.html.md.erb

NSX -> NSX-T (except page titles)
Which other branches should this be merged with (if any)?
Since 1.5

Submitted by mistake


Collaboration Service - Implement a video call feature for matched users to communicate

This is not something thats needed


Can't make updateMask work

I am trying o use the updatemask found at the example page, but it doesn't work. Only works with longest value. The short one never works.
< input v-mask="mask" @input="_updateMask" >
 methods: {       _updateMask (ev) {         console.log(ev.target.value)         if (ev.target.value.length > 14) {           this.mask = '99.999.999/9999-99'         } else {           this.mask = '999.999.999-999'         }       }     }

It's working at the example example page, if it is not working with you, probably it's not a problem with the mask itself.
You can check the example code at: https://github.com/moip/awesome-examples/blob/master/src/App.vue


EarSpeaker spatial processing

Hi,
first of all - thank for the great project!
Sound is great while using headphones. But using an amplifier with speakers 4 meters away from each other stereo sound is not very good. Compared to my web radio on the phone I was a little bit disappointed.
Checking the data sheet  for the VS1053 I think I found the reason:
"For the best headphone listening experience the VS1053 includes EarSpeaker spatial processing which accurately simulates how a room with stereo loudspeakers would sound. This option can naturally be turned off when required."
So my question is: Is there an option to turn this feature on / off? Would be great!
Second question: Has anybody a solution for running ESP / VS1053 and an amplifier with grounded audio input on same power ground?
Regards,
Bernd

The problem is that the VS1053 have not GND related outputs. I think the best solution is a preamplifier with differential inputs or use a small NF transformer betwen the VS1053 and your amplifier.
In default (see 3.6.1) is the spartial prcessing is on (default 0x4800). But the SW do switch off that in line 568. ( write_register ( SCI_MODE, _BV ( SM_SDINEW ) | _BV ( SM_LINE1 ) ) ; in VS1053::begin() )

Tahnks. So how should the line look like to turn spartial prcessing on?

First has to define first the new used bits: (add after line 333)
const uint8_t SM_EARSPEAKER_LO          = 4 ;        // Bitnumber in SCI_MODE for spatial processing L
const uint8_t SM_EARSPEAKER_HI           = 7 ;        // Bitnumber in SCI_MODE for spatial processing H
Then in line 469 ( 3 possibilities)
minimal spatial processing:
( write_register ( SCI_MODE, _BV ( SM_SDINEW ) | _BV ( SM_LINE1 ) | _BV (SM_EARSPEAKER_LO) ) ;
normal spatial processing:
( write_register ( SCI_MODE, _BV ( SM_SDINEW ) | _BV ( SM_LINE1 ) | _BV (SM_EARSPEAKER_HI)  ) ;
extreme spatial processing:
( write_register ( SCI_MODE, _BV ( SM_SDINEW ) | _BV ( SM_LINE1 ) | _BV (SM_EARSPEAKER_LO) | _BV (SM_EARSPEAKER_HI ) ) ;
But I doesn't think that this is your problem.

Sounds like this is a problem of the amplifier.  Note that the VS1053 has no grounded common for the output signals.  So you have to supply a separate power supply or use audio  transformers, 40 cents a piece on aliexpress.

Thanks. I know that VS1035 has no grounded common. For now I am using separated power supplies.
I thought there might be an easy way like putting a capacitor between the output common and the amplifiers grounded input.
First  "problem" was the (stereo) sound compared to another webradio / source. Sounds a little bit like one reverse polarity speakers and I thought this might be the spatial processing. The headphone sound was so good, the amplifier / speaker combination also when using a different source.
So I will have to make some more comparison.

I was a problem of the speakers and the distance between them. And the basement is no a good place to do a sound check.

Sorry to hijack this thread, but I have a sound problem when connecting to a class D amplifier as well, even using separated power supplies it comes out very distorted and seems to be somewhat slowed as well. Is there a recommended way to connect the jack output from the VS1053 to a class D amplifier?
Thanks.

Make sure that it works correctly with earphones.  Then make sure that the ground of the VS1053 is NOT connected to the ground of the amplifier or its power supply.  Th "middle" connection of the analog output of the VS1053 must be connected to the ground of the amplifier an its power supply.


Question: Will there be an updated Version for Android?

Will be there also an updated version for Android???

Who knows!
See https://github.com/jedisct1/dnscrypt-proxy/issues/41


Emergency Morse Code Recognition: Model for Audio Communication Analysis

Train a model to recognise Morse code sequences from audio inputs for improved communication in emergencies. Collect diverse Morse code audio datasets, preprocess data, select appropriate architecture, train, evaluate, deploy within the existing system, and iterate based on feedback for enhanced performance.
One could consider using machine learning models like Hidden Markov Models.
reference material: https://github.com/f4exb/morseangel
kindly write the approach you would follow.

Intresting would like to work on this. what is the progress until now?

Hi @TAHIR0110 i am a contributor from GSSOC'24 and i want to contribute in this project I have requested to you to assign me this. Here are the some points mention below in which i focuses on mainly,
I can propose a Morse code recognition model for Kai using diverse audio data and machine learning (HMM or deep learning). I'll focus on data collection, model training, integration with Kai, and ongoing improvement through user feedback. This can enhance Kai's communication and emergency response capabilities.
I would like to tell you i am already working on similar kind of project it is my personal project so definitely i will eagerly contribute in this
Thank You, Let's discuss how I can contribute! for this you can assign me this project

@NandiniJaiswal05 assigned!


Undesired behavior on files with # isort: skip_file

Diagnostic Data

Python version: 3.11.7
venv: poetry
Operating system (and version): MacOS Sonoma 14.5
Version of tool extension you are using: ms-python.isort-2023.10.11

Behavior
Expected Behavior
When I save a file with a # isort: skip_file comment, I expect the isort extension to:

ignore the file and
tell me why it ignored it with a simple warning such as Skipping file with 'skip_file' comment: <filename>.

Actual Behavior

I get an unhelpful warning message with a nearly-illegible traceback.

... and isort encounters a separate failure under the hood

Reproduction Steps:

Ensure your isort extension is running in the current workspace and configured to organize imports on save.
Create a .py file with the comment # isort: skip_file anywhere in the file. Anywhere is good. The file doesn't need code, even.

# tmp.py
# isort: skip_file

Save the file to trigger a request to the isort extension.
You will see an unhelpful warning message if your notifications are on and an UnboundLocalError in the isort logs.

Logs:

Click here for detailed logs
2024-07-04 23:46:22.559 [info] [Trace - 11:46:22 PM] Received notification 'window/logMessage'.
2024-07-04 23:46:22.559 [info] Params: {
    "type": 4,
    "message": "~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/bin/python -m isort - --check --filename ~/tmp/base/_typing.py"
}

2024-07-04 23:46:22.559 [info] ~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/bin/python -m isort - --check --filename ~/tmp/base/_typing.py
2024-07-04 23:46:22.560 [info] [Trace - 11:46:22 PM] Received notification 'window/logMessage'.
2024-07-04 23:46:22.560 [info] Params: {
    "type": 4,
    "message": "CWD Linter: ~/tmp"
}

2024-07-04 23:46:22.560 [info] CWD Linter: ~/tmp
2024-07-04 23:46:22.560 [info] [Trace - 11:46:22 PM] Received notification 'window/logMessage'.
2024-07-04 23:46:22.560 [info] Params: {
    "type": 2,
    "message": "Traceback (most recent call last):\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py\", line 210, in sort_stream\n    changed = core.process(\n              ^^^^^^^^^^^^^\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/core.py\", line 162, in process\n    raise FileSkipComment(\"Passed in content\")\nisort.exceptions.FileSkipComment: Passed in content contains a file skip comment and was skipped.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_server.py\", line 644, in _run_tool_on_document\n    result = utils.run_module(\n             ^^^^^^^^^^^^^^^^^\n  File \"~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_utils.py\", line 147, in run_module\n    return _run_module(module, argv, use_stdin, source)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_utils.py\", line 132, in _run_module\n    runpy.run_module(module, run_name=\"__main__\")\n  File \"<frozen runpy>\", line 229, in run_module\n  File \"<frozen runpy>\", line 88, in _run_code\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/__main__.py\", line 3, in <module>\n    main()\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/main.py\", line 1132, in main\n    incorrectly_sorted = not api.check_stream(\n                             ^^^^^^^^^^^^^^^^^\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py\", line 264, in check_stream\n    changed: bool = sort_stream(\n                    ^^^^^^^^^^^^\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py\", line 218, in sort_stream\n    raise FileSkipComment(content_source)\nisort.exceptions.FileSkipComment: ~/tmp/base/_typing.py contains a file skip comment and was skipped.\n"
}

2024-07-04 23:46:22.560 [info] [Warn  - 11:46:22 PM] Traceback (most recent call last):
  File "~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py", line 210, in sort_stream
    changed = core.process(
              ^^^^^^^^^^^^^
  File "~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/core.py", line 162, in process
    raise FileSkipComment("Passed in content")
isort.exceptions.FileSkipComment: Passed in content contains a file skip comment and was skipped.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_server.py", line 644, in _run_tool_on_document
    result = utils.run_module(
             ^^^^^^^^^^^^^^^^^
  File "~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_utils.py", line 147, in run_module
    return _run_module(module, argv, use_stdin, source)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_utils.py", line 132, in _run_module
    runpy.run_module(module, run_name="__main__")
  File "<frozen runpy>", line 229, in run_module
  File "<frozen runpy>", line 88, in _run_code
  File "~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/__main__.py", line 3, in <module>
    main()
  File "~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/main.py", line 1132, in main
    incorrectly_sorted = not api.check_stream(
                             ^^^^^^^^^^^^^^^^^
  File "~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py", line 264, in check_stream
    changed: bool = sort_stream(
                    ^^^^^^^^^^^^
  File "~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py", line 218, in sort_stream
    raise FileSkipComment(content_source)
isort.exceptions.FileSkipComment: ~/tmp/base/_typing.py contains a file skip comment and was skipped.

2024-07-04 23:46:22.561 [info] [Trace - 11:46:22 PM] Received notification 'window/showMessage'.
2024-07-04 23:46:22.561 [info] Params: {
    "type": 2,
    "message": "Traceback (most recent call last):\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py\", line 210, in sort_stream\n    changed = core.process(\n              ^^^^^^^^^^^^^\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/core.py\", line 162, in process\n    raise FileSkipComment(\"Passed in content\")\nisort.exceptions.FileSkipComment: Passed in content contains a file skip comment and was skipped.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_server.py\", line 644, in _run_tool_on_document\n    result = utils.run_module(\n             ^^^^^^^^^^^^^^^^^\n  File \"~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_utils.py\", line 147, in run_module\n    return _run_module(module, argv, use_stdin, source)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_utils.py\", line 132, in _run_module\n    runpy.run_module(module, run_name=\"__main__\")\n  File \"<frozen runpy>\", line 229, in run_module\n  File \"<frozen runpy>\", line 88, in _run_code\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/__main__.py\", line 3, in <module>\n    main()\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/main.py\", line 1132, in main\n    incorrectly_sorted = not api.check_stream(\n                             ^^^^^^^^^^^^^^^^^\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py\", line 264, in check_stream\n    changed: bool = sort_stream(\n                    ^^^^^^^^^^^^\n  File \"~/Library/Caches/pypoetry/virtualenvs/puerto-rico-Ip6tKJaL-py3.11/lib/python3.11/site-packages/isort/api.py\", line 218, in sort_stream\n    raise FileSkipComment(content_source)\nisort.exceptions.FileSkipComment: ~/tmp/base/_typing.py contains a file skip comment and was skipped.\n"
}

2024-07-04 23:46:22.561 [info] [Trace - 11:46:22 PM] Received notification 'window/logMessage'.
2024-07-04 23:46:22.561 [info] Params: {
    "type": 1,
    "message": "isort check failed with error:\r\nTraceback (most recent call last):\n  File \"~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_server.py\", line 106, in _linting_helper\n    result = _run_tool_on_document(document, use_stdin=True, extra_args=[\"--check\"])\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_server.py\", line 657, in _run_tool_on_document\n    if result.stderr:\n       ^^^^^^\nUnboundLocalError: cannot access local variable 'result' where it is not associated with a value\n"
}

2024-07-04 23:46:22.561 [info] [Error - 11:46:22 PM] isort check failed with error:
Traceback (most recent call last):
  File "~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_server.py", line 106, in _linting_helper
    result = _run_tool_on_document(document, use_stdin=True, extra_args=["--check"])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_server.py", line 657, in _run_tool_on_document
    if result.stderr:
       ^^^^^^
UnboundLocalError: cannot access local variable 'result' where it is not associated with a value

Outcome When Attempting Debugging Steps:

Did running it from the command line work?
A SkipFileComment exception occurs, as expected.
...
isort.exceptions.FileSkipComment: tmp.py contains a file skip comment and was skipped.

But the UnboundLocalError obviously does not occur, as this is an error in the LSP server itself, not isort.

Extra Details
The UnboundLocalError in the LSP servier is easy to fix, just add a return None here.
For my actual concern, the unhelpful error message, I recommend that FileSkipComment print a helpful message.
        except isort.exceptions.SkipFileComment:
            log_warning(f"Skipping file with 'skip_file' comment: {document.path}")
            return None
        except isort.exceptions.FileSkipped:
            log_warning(traceback.format_exc(chain=True))
            # Ignore file skipped.
        ...

I've provided a PR with my suggested fix. Feel free to make changes.


[CI] Add ignore paths for notify providers

Signed-off-by: Suryashankar Das<EMAIL_ADDRESS>Description
Prevents Notify Providers workflow from running on merge of mesheryctl or docs changes.
This PR fixes #2905
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Codecov Report

Merging #3521 (b118032) into master (bbc309f) will decrease coverage by 6.91%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3521      +/-   ##
==========================================
- Coverage   17.38%   10.47%   -6.92%
==========================================
  Files          37       37
  Lines        3209     3209
==========================================
- Hits          558      336     -222
- Misses       2509     2806     +297
+ Partials      142       67      -75

Flag
Coverage Δ

gointegrationtests
?

unittests
10.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

mesheryctl/internal/cli/root/system/start.go
1.27% <0.00%> (-51.28%)
:arrow_down:

mesheryctl/internal/cli/root/system/stop.go
0.93% <0.00%> (-39.26%)
:arrow_down:

mesheryctl/internal/cli/root/system/check.go
1.49% <0.00%> (-22.10%)
:arrow_down:

Continue to review full report at Codecov.

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

Does this also prevent running:

on pull request open?
on push of commit to an open PR?

There may have been changes to the file that have already solved those issues. Right now it is not supposed to run on pull requests as far as I understand.

Ok, good deal. Thanks for this @iamsdas ✔


canonicalize protobufs somehow.

It would be nice if we could canonicalize typed objects somehow, so that logically identical values produce byte-for-byte identical blobs, allowing them to be correctly de-duped. I don't know if there's a standard way of canonicalizing protobufs? I wasn't able to find anything after a bit of searching.
Relatedly: @bobg, how wedded are you to protobufs in particular? If there is indeed no standard canonicalization algorithm, it may be worth considering other formats (I'm somewhat partial to capnproto).

Can't believe I've gotten this far without having heard about (a) capnproto or (b) the non-determinism of protobuf encoding.
I am now educating myself on these subjects. Thanks, and stay tuned.

I'm finally back to looking at this.  That makes it a non-starter as far as I'm concerned.
There are proposals out there for making protobuf encoding deterministic; e.g. https://docs.cosmos.network/master/architecture/adr-027-deterministic-protobuf-serialization.html. Maybe that's the way to go?

type-unsafe Go produced by the capnproto Go compiler - everything is a capn.Struct

Not sure what your referring to? It should generate typed wrappers? I will grant that having to use getters & setters is less ergonomic than being able to just use struct literals though...
But if there is a canonicalization algorithm for pb out there that does what is needed, then that solves the problem too.

I have done away with the idea of typing blobs, and so protobufs are no longer first-class objects in BS. There are convenience functions for putting and getting them, and some structures (hashsplit trees, maps, etc) are defined using them, but they are no longer intrinsic to the BS data model.


Please add initialValue prop

I need to set the initial value of the rating, for example when user go back to the dialog in order update their rating, the stars show up with the initial value of their former rating. Thank you.

you can set that from your code
and then you can get the value from onsubmitted function and set your variable as you please

Version 2.0.0 is now published with a way to set initial rating value.


Colors faded in code editor

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.63.2 ( 899d46d82c4c95423fb7e10e68eba52050e30ba3  x64)
OS Version: Archlinux 5.16.1

Steps to Reproduce:

(Re)Install VsCode
2.Default code font is faded / pale / transparent / greyed

I tried with many themes, installing the insiders version, with options in https://github.com/microsoft/vscode/issues/111460, and https://github.com/microsoft/vscode/issues/110807 but still the same...

Thanks,
Have a great day

Can you add a screenshot?

Is this issue still present with latest insiders https://code.visualstudio.com/insiders/ ?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


read training strategy from config

Summary:

Read training strategy from config file
Add strategy: ddp to all existing config files
Can also pass in strategy from the terminal by python train.py config=configs/pretraining/debug.yaml training.lightning.strategy=ddp
Priority: terminal argument > config

Test plan:

logged self.trainer.strategy in FLAVAPreTrainingLightningModule
test 1

command: python train.py config=configs/pretraining/debug.yaml
config: strategy: ddp
result: DDPStrategy

test 2

command: python train.py config=configs/pretraining/debug.yaml training.lightning.strategy=deepspeed
config: strategy: ddp
result: DeepSpeedStrategy

The changes look good to me. Since it's hard to add a unit test to test these changes, it would be good to provide more detail in the test plan though. Can you share commands you ran and the resulting outputs for a few different cases? (e.g. changing the default value or passing a command-line arg and demonstrating it results in the expected value in the trainer)

updated description

thanks for the changes. after u try out my suggestions, can u paste the logs from lightning in the test plan instead of relying on prints.

Updated

Codecov Report

Merging #66 (f01e2a5) into main (13e60d9) will increase coverage by 0.31%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #66      +/-   ##
==========================================
+ Coverage   88.56%   88.88%   +0.31%
==========================================
  Files          30       30
  Lines        1504     1502       -2
==========================================
+ Hits         1332     1335       +3
+ Misses        172      167       -5

Impacted Files
Coverage Δ

torchmultimodal/modules/layers/codebook.py
100.00% <0.00%> (ø)

torchmultimodal/modules/encoders/cnn_encoder.py
100.00% <0.00%> (ø)

...dal/modules/encoders/weighted_embedding_encoder.py
100.00% <0.00%> (ø)

torchmultimodal/models/flava.py
87.56% <0.00%> (+1.35%)
:arrow_up:

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 13e60d9...f01e2a5. Read the comment docs.


build: Use latest Poetry

1.5.0 has fixed https://github.com/python-poetry/poetry/issues/7589.

Looks like it is still failing though...

Looks like it is still failing though...

Yep, Poetry still doesn't work on Windows. Reporting upstream…


Sync makefile and default deployment CRDs versions

What does this PR do?
It's just a quick fix to update default deployment to the desired, but we would need to rework how we define devfile CRDs to avoid such desync in future.
What issues does this PR fix or reference?
No issue is created but it fixes:
error: error validating "samples/plugins/theia-next.yaml": error validating data: ValidationError(DevWorkspaceTemplate.spec.components[1].volume): unknown field "ephemeral" in io.devfile.workspace.v1alpha2.DevWorkspaceTemplate.spec.components.volume; if you choose to ignore these errors, turn validation off with --validate=false

when you try to create devworkspace with ephemeral volume used on the default deployment.
Is it tested? How?

/test v5-devworkspaces-operator-e2e


Let user know when there are warnings

In the same vein fo #14, It is annoying when It compiles successfully but, because there are warnings, it remains silent and lefts the user wondering if it's done compiling or not.
So let the user know with a Compiled with warnings message :)

I forgot this change!!!
Thanks so much :smile:

@alx741 Sorry, I temporary reverted this commit, because this does echomsg 'Compiled with warnings' for each warnings :joy:
For example, if two warnings occured, the echomsg executed twice.
I thought this is not your intention.
Would is this right? :flushed:

because this does echomsg 'Compiled with warnings' for each warnings

oh! didn't thought about that, will check it out


Use actions/checkout@v4 for wiki generation

Recently the wiki generation started failing with the following error:
Determining the default branch
  Retrieving the default branch name
  Not Found
  Waiting 18 seconds before trying again
  Retrieving the default branch name
  Not Found
  Waiting 10 seconds before trying again
  Retrieving the default branch name
  Error: Not Found

I was able to reproduce the issue in a fork with checkout@v2, while checkout@v4 works.  However, I don't see exactly what changed to cause this to break (v2 was working until recently) or why v4 is different.  This seems to fix the issue but would require more digging to understand what broke.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 55.5%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1983

Relevant Lines:
3573

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 55.5%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1983

Relevant Lines:
3573

💛  - Coveralls


Update mark_as_accessed to match cairo-rs

Codecov Report

Merging #197 (19286d3) into main (5d6bb1e) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #197   +/-   ##
=======================================
  Coverage   95.23%   95.23%
=======================================
  Files          14       14
  Lines         713      713
=======================================
  Hits          679      679
  Misses         34       34

Impacted Files
Coverage Δ

src/cairo_runner.rs
96.46% <100.00%> (ø)

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


Support for dynamic modules configurations for cloud-init and ignition

WIP
References:

https://cloudinit.readthedocs.io/en/latest/reference/modules.html#apt-configure
https://cloudinit.readthedocs.io/en/latest/reference/modules.html#mounts

/remove-lifecycle rotten

/remove-lifecycle stale

/reopen


Support TTS cache parameter in ITextToSpeechService

The TTS service supports a cache parameter that isn't exposed via ITextToSpeechService: https://www.home-assistant.io/integrations/tts/

Fix is not merged and released


Add a flag to disable garbage collection in runtime

Used to generate the "no-gc" lines in https://github.com/dfinity/motoko/issues/2033#issuecomment-842379468

This is an old do-not-merge PR, closing.


TTY Object builder property navigation doesn't take into account hidden state

Cursor will incorrectly attempt to select hidden properties

Fixed


Unused local variable inside Factories

Unused local variable inside Factories that can make CI findbug hooks complain:
public AndroidAccountIntents createInstance(Scope scope) {
     scope = getTargetScope(scope);
     AndroidAccountIntents androidAccountIntents = new AndroidAccountIntents();
     return androidAccountIntents;
}

Only happens when scope is not used. Can we avoid that?

for documentation: this is how to suppress for now:
<Match>
    <!-- AUTO-GENERATED FILE -->
    <Class name="~.*\$\$Factory" />
    <Bug pattern="DLS_DEAD_LOCAL_STORE" />
</Match>

Thx for the workaround @dpreussler, but we are gonna fix this.

Will be part of RC10


LTD-3028-Filter out blank users

Workflow

[x] Ticket exists in Jira https://uktrade.atlassian.net/browse/LTD-3028
[x] Jira ticket has the correct status.

Reviewing help

[ ] Explains how to test locally, including how to set up appropriate data

Housekeeping

[ ] Added all new environment variables to Vault.
[ ] Cleaned up old feature flags
[ ] Upgraded any vulnerable dependencies.
[ ] I have updated security dependencies
[ ] Python requirements have been re-compiled.
[ ] Frontend assets have been re-compiled.

Merging

[x] This PR can be merged by reviewers. (If unticked, please leave for the author to merge)

There are other bits of code that are using user.first_name to check whether the user was pending or not. Could we also update those?

By the way. Feel free to split that out in a separate PR if you want to but I think we should make sure we make that change as part of this ticket overall.