TypeError: '<=' not supported between instances of 'NoneType' and 'NoneType'

Rasa Open Source version
current main
Python version
3.7
What operating system are you using?
OSX
What happened?
This error shows up when I run rasa test for a model with a Response Selector.
Traceback (most recent call last):
  File "/opt/anaconda3/envs/new_env/bin/rasa", line 5, in <module>
    main()
  File "/Users/sabasturua/Desktop/rasa/rasa/__main__.py", line 117, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/Users/sabasturua/Desktop/rasa/rasa/cli/test.py", line 264, in test
    run_nlu_test(args)
  File "/Users/sabasturua/Desktop/rasa/rasa/cli/test.py", line 255, in run_nlu_test
    vars(args),
  File "/Users/sabasturua/Desktop/rasa/rasa/utils/common.py", line 299, in run_in_loop
    result = loop.run_until_complete(f)
  File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
  File "/Users/sabasturua/Desktop/rasa/rasa/cli/test.py", line 236, in run_nlu_test_async
    test_nlu(model_path, data_path, output, all_args)
  File "/Users/sabasturua/Desktop/rasa/rasa/model_testing.py", line 217, in test_nlu
    run_evaluation(nlu_data, nlu_model, output_directory=output_directory, **kwargs)
  File "/Users/sabasturua/Desktop/rasa/rasa/nlu/test.py", line 1411, in run_evaluation
    report_as_dict=report_as_dict,
  File "/Users/sabasturua/Desktop/rasa/rasa/nlu/test.py", line 471, in evaluate_response_selections
    title="Response Selection Prediction Confidence Distribution",
  File "/Users/sabasturua/Desktop/rasa/rasa/nlu/test.py", line 340, in plot_attribute_confidences
    plot_utils.plot_paired_histogram([pos_hist, neg_hist], title, hist_filename)
  File "/Users/sabasturua/Desktop/rasa/rasa/utils/plotting.py", line 68, in inner
    return func(*args, **kwargs)
  File "/Users/sabasturua/Desktop/rasa/rasa/utils/plotting.py", line 259, in plot_paired_histogram
    y_pad_fraction=y_pad_fraction,
  File "/Users/sabasturua/Desktop/rasa/rasa/utils/plotting.py", line 173, in _extract_paired_histogram_specification
    min_data_value = np.min(np.concatenate(histogram_data))
  File "<__array_function__ internals>", line 6, in amin
  File "/opt/anaconda3/envs/new_env/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2793, in amin
    keepdims=keepdims, initial=initial, where=where)
  File "/opt/anaconda3/envs/new_env/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 90, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
TypeError: '<=' not supported between instances of 'NoneType' and 'NoneType'

When a response selector output is created, the selector_key is assigned RESPONSE_SELECTOR_DEFAULT_INTENT if self.retrieval_intent is None.
https://github.com/RasaHQ/rasa/blob/954107f4c6e84e506d387b65dc978452421e2acd/rasa/nlu/selectors/_response_selector.py#L543
However, during the evaluation of a response selector, when we need to extract value attached to the selector key, the key is chosen differently.
https://github.com/RasaHQ/rasa/blob/954107f4c6e84e506d387b65dc978452421e2acd/rasa/nlu/test.py#L1286
More specifically, if the target intent is a retrieval intent, then the key becomes the target intent. This is wrong because the above-defined selector_key is still RESPONSE_SELECTOR_DEFAULT_INTENT.
As a result, we can't extract predicted responses during the evaluation and we have this error.
I propose changing the logic behind determining this key
https://github.com/RasaHQ/rasa/blob/954107f4c6e84e506d387b65dc978452421e2acd/rasa/nlu/test.py#L1286
which will need just a few lines.

Tried to reproduce the issue using the latest 2.8.x. with your config
language: en

pipeline:
- name: WhitespaceTokenizer
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
  analyzer: char_wb
  min_ngram: 1
  max_ngram: 4
- name: RegexFeaturizer
- name: LexicalSyntacticFeaturizer
- name: DIETClassifier
  epochs: 25
- name: ResponseSelector
  epochs: 25
- name: EntitySynonymMapper

policies:
- name: MemoizationPolicy
  max_history: 5
- name: TEDPolicy
  max_history: 5
  epochs: 50
- name: RulePolicy

with / without retrieval_intent : chitchat and the data for the example/responseselectorbot. But it works fine :/ Am I missing something there?
Since the issue came up with the main branch and not 2.8.6 - Can you reproduce the issue on the current 2.8.x?  Meanwhile, I'll try main :)

@ka-bu, works fine on the 2.8.x branch.
On the 2.8.x branch, it's fixed because available response selector intents are only those who have their own response selector.
https://github.com/RasaHQ/rasa/blob/5420b848b9da006164dbea19cde2668d3fb5f72e/rasa/nlu/test.py#L1264
This is incorrectly calculated in the current main.
https://github.com/RasaHQ/rasa/blob/954107f4c6e84e506d387b65dc978452421e2acd/rasa/nlu/test.py#L1282
Where it contains every retrieval intent disregarding if they have a separate response selector (in which case selector_key would not be "default") or not.

Perfect, thanks for comparing and posting the findings :) Should be resolved on 2.8.7. Shall we close this issue then?


Countdown displays incorrectly when timer is reset using setTime(val) and duration exceeding 100 days

I was able to reproduce the issue by modifying the following in samples:
countdown-from-new-years.html
as of 11/3/2014 it shows 306 days since new years. (306:MM:HH:SS)
if you try to reset and call
clock = $('.clock').FlipClock(0, {clockFace: 'DailyCounter'});
clock.setTime(diff);
it shows correct duration however formatting is skewed.
30:6MM:HH:SS

This should be fixed in the dev branch. Note, this branch is breaking to the API. clock.setTime is now clock.setFaceValue and `clock.setCountdown()

INSERT THIS SCRIPT
$('.clock.flip-clock-wrapper>span:eq(1)').insertAfter($('.clock.flip-clock-wrapper>ul:eq(2)'));
$('.clock.flip-clock-wrapper>span:eq(2)').insertAfter($('.clock.flip-clock-wrapper>ul:eq(4)'));
$('.clock.flip-clock-wrapper>span:eq(3)').insertAfter($('.clock.flip-clock-wrapper>ul:eq(6)'));


Response interceptor is not working if you define a custom plugin

In the following example, I added a request interceptor, a response interceptor and a plugin. However, the response interceptor is not working as long as here is the plugin. Remove the plugin and the response interceptor is working again. Request interceptor is not affected.
import xior from "xior";

xior.interceptors.request.use((request) => {
  document.getElementById("request").textContent =
    "Request Interceptor Is Working!";
  return request;
});

xior.interceptors.response.use((response) => {
  document.getElementById("response").textContent =
    "Response Interceptor Is Working!";
  return response;
});

xior.plugins.use((adaptor) => async (request) => ({
  status: 200,
  statusText: "OK",
  data: {
    foo: "bar",
  },
}));

xior.get("/");

https://codesandbox.io/p/sandbox/xior-plugin-interceptor-24xfhk

Work now:
https://codesandbox.io/p/sandbox/xior-plugin-interceptor-forked-l2ptr8?file=%2Fpackage.json%3A18%2C1-19%2C1


Unable to compile with Android Studio 2.0

Could you give any hint how to compile the project with Android studio 2.0 and latest gradle plug-in?

You have to unpack the firmware and add -Lpath/to/nflasha16/lib to ldFlags in app/build.gradle (I have to document that somewhere). Otherwise, it should work fine with Android studio (except for jni code highlighting, which is broken atm).

Thanks for the quick response. I'm probably doing something very wrong way. 2.0 return me the following after i've added ldFlags.add("-Llocal:\windows\path")
Gradle 'OpenMemories-Tweak-master' project refresh failed
Error:For input string: ""

Escape the backslashes?

Yes. But it looks like it's not possible to do anything on Windows due to luck of support of 2.3.3 :(

It works fine for me on windows. Can you run gradlew build outside of android studio (you have to have the gradle wrapper somewhere in your path)?

It works fine for me on windows.
I'm surprised. I could not download api 10 platform. I mentioned that it's incompatible with windows

Root folder returns the following for me: http://pastebin.com/Wdjam2HT

I've got the following http://pastebin.com/Wdjam2HT

I found one problem for me. I've downloaded zip but need to clone repository instead. With the cloned repository it returns me already known 10 platform problem
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':app'.

Exception thrown while executing model rule: BaseComponentModelPlugin.Rules#cr
eateAndroidComponents
failed to find target with hash string 'android-10' in: C:\Android\sdk2

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED
Total time: 4.753 secs

Then install platform 10 with the SDK manager. Oh, and you'll need the NDK as well.

I'd like but sdk manager say it's incompatible with windows

Use this answer or simply increase the compileSdkVersion (this should work as long as you don't use any new features) http://stackoverflow.com/a/36392576

Thanks! I'm able to build it from command line. Unfortunately it's not possible to emulate the camera but it's very different option. Hopefully this issue will help not only to me.


request help: support replace service binary

When I want to update mds or metaser, I can only redeploy the entire cluster. It is recommended to add the function of upgrading the module separately.

@Cyber-SiKu This is a necessary feature, I will support it in a next version, thank you for your suggestion.

good

closing it


Decentraland + Gnosis Safe: Create test cases for a failed flow

That flow isn't working because of the highlighted situation:
I) Pre conditions:

Gnosis safe wallet is funded with enough mana to buy some parcels/estates.
Gnosis safe wallet is funded with enough ethers to transfer to ephemeral account.

II) On boarding:

Ephemeral account will be funded with some ethers to pay for gas (from Gnosis safe wallet).
Gnosis safe approves ephemeral account to spend their mana tokens.
Ephemeral account approves Marketplace to spend their mana tokens (actually tokens from Gnosis Safe). Not sure if this allowance-of-allowance will work.

III) Buy operation:

Ephemeral account executes an open order from Marketplace
The asset bought will go to the ephemeral account balance.

A test case should be created to cover this case.
The step II.3 doesn't work. The marketplace executes erc20.transferFrom(msg.sender, ...) so the ephemeral account should have balance.
MANAToken
// msg.sender here is the marketplace contract

 function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
   var _allowance = allowed[_from][msg.sender];

   // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
   // require (_value <= _allowance);

   balances[_to] = balances[_to].add(_value);
   balances[_from] = balances[_from].sub(_value);
   allowed[_from][msg.sender] = _allowance.sub(_value);
   Transfer(_from, _to, _value);
   return true;
 }

@marcelomorgado I wonder if we should create an issue on Decentraland's marketplace-contracts repo to create a version of _executeOrder that doesn't hardcode the from account as msg.sender
https://github.com/decentraland/marketplace-contracts/blob/3b044b12db28a4201e066a21beb97a88c6f449bf/contracts/marketplace/Marketplace.sol#L343

@marcelomorgado I wonder if we should create an issue on Decentraland's marketplace-contracts repo to create a version of _executeOrder that doesn't hardcode the from account as msg.sender
https://github.com/decentraland/marketplace-contracts/blob/3b044b12db28a4201e066a21beb97a88c6f449bf/contracts/marketplace/Marketplace.sol#L343

Yes, It'll be nice.

Remaining task. Make asserts instead of skip failed test cases.
Refes: https://github.com/tasitlabs/TasitSDK/pull/274#discussion_r266482366

I'm reopen that because of my last comment.


Push Notifications unpackaged sample

Files worth reviewing at this time are:

Samples/PushNotifications/cpp-console-unpackaged/cpp-console-unpackaged.cpp, which contains the actual code of the sample
Samples/PushNotifications/README.md, which contains the instructions for this sample.

There's a new PR for this sample


TS2367 must accout for await inside of an async function.

Bug Report

🔎 Search Terms
TS2367 await async this condition will always return since the types have no overlap
🕗 Version & Regression Information

This is the behavior in every version I tried

⏯ Playground Link
https://stackoverflow.com/questions/54019195/incorrect-conclusion-that-this-condition-will-always-return-false
💻 Code
public async transitionA() {
    this.state = State.TWO
    await sleep(1000)
    if (this.state === State.ONE) { // <-- TS2367 error
      this.state = State.TWO
    }
}

Typescript thinks that this.state could not possibly be equal to State.ONE inside of the if statement. In reality, anything could happen during the await inside of other methods.
🙁 Actual behavior
Static analysis complains that an instance variable could not possibly have been reassigned inside of an asynchronous function, where it has no guarantee that other methods that happen during the await could end up reassigning the variable or not.
🙂 Expected behavior
Inside of async functions where there is an await between the initial assignment and the variable check, TS2367 should not apply.

Another duplicate of #9998.

Hm. I don't agree. The buried comment in StackOverflow mentions "this is a similar issue".
That issue does not mention at all await/async in its summary. It is undiscoverable. It's not even clear besides from people complaining in a few replies that it would tackle this.

Search terms
TS2367 await async this condition will always return since the types have no overlap

Did you put all of that into a single search?  Searching just for await async this condition will always return since the types have no overlap returns at least 3 other duplicates specifically about await: #31009 #31429 #42295.  Looks like many of the threads don't contain "TS2367" in them, so now there's one that does! :tada:

That issue does not mention at all await/async in its summary.

Because it's irrelevant. The same behaviour applies to sync and async methods.
Let me give you a brief example:
async function doNothing(): Promise<void> {}

class Example {
  private state: string | undefined

  public async example() {
    this.state = "test";
    await doNothing();

    // Error here?
    console.log(this.state.toLocaleLowerCase());
  }
}

Should the line with the console.log statement result in an error, or not? Because what you're asking for in your issue is exactly that: It should result in an error. It would be a massive breaking change, and it would just result in people raising bug issues about this new behaviour.

No, this is a different problem. The issue isn't that the "doNothing" function itself could modify state, and whether or not to analyze that function and its call chain. The issue is that "doNothing" causes a pause in execution, which leads to the fact that any line of code of Javascript loaded on the page, 3rd party (outside of Typescript) or otherwise, that's not even inside of the execution chain of "doNothing", could modify state.

class Example {
  private state: string | undefined

  constructor() {
    setInterval(() => {
      this.state = Math.random() > 0.5 ? 'foo' : undefined;
    }, 100);
  }

  public async example() {
    this.state = "test";
    await doAnything();
    console.log(this.state.toLocaleLowerCase()); // Of course there should be an error here!
  }
}

I don't care what the function that's awaited does, await should always result in Typescript assuming that the "state" variable could be any value as defined by its type. TS2367 should not be enforced after an await in any scenario. It should work similar to how it works reading a value from inside a closure.
class Example {
  private state: string | undefined

  public async example() {
    this.state = "test";
    setTimeout(() => {
      // This causes an error saying this.state could be undefined, which is a correct assumption.
      // Same should happen after an await.
      console.log(this.state.toLowerCase());
    }, 100);
  }
}

The async case is not fundamentally different from this one:
class Example {
  private state: string | undefined

  public example() {
    this.state = "test";
    this.foo();
    this.state;  // string - but actually, undefined
  }

  public foo() {
    this.state = undefined;
  }
}

This is a duplicate of #46439, and therefore of #9998.

You missed my entire point. I'm not sure how to communicate it clearly without retreading.
The synchronous case is deterministic, you could reasonably expect to be able to predict the behavior if you were willing to dedicate enough computing power.
The asynchronous case is non-deterministic. Depending on how you design your component, you would expect the state to change from external calls. Thus Typescript should not assume the value of the state after asynchronous calls. Typescript could never hope to be able to determine this, even if you had a supercomputer at your disposal. It is ultimately up to the design of the program, as well as user input.

I definitely would not expect the state of all properties to change whenever I await on something

Typescript is meant to be a guarantee that your production code does not break due to mistyped variables at runtime. From a methodology standpoint, it should work the way I'm saying. Even if it's a 5.0 release.

Typescript is meant to be a guarantee that your production code does not break due to mistyped variables at runtime.

This is not correct. The Design Goals clearly state this as a non-goal:

Apply a sound or "provably correct" type system. Instead, strike a balance between correctness and productivity.

Well, this is hindering my productivity :)

And the opposite would hinder the productivity of many other, when the variables that just have been narrowed suddenly require narrowing again. Again: There is no right solution. And I provided you a valid workaround.
Anyway, I'll unsubscribe from this issue now. Duplicates have been linked and reasons for this behaviour have been given. I expect the TypeScript team to close this issue or let the bot close it.

The crux of this issue is that the asynchronous case is fundamentally different from the synchronous case. Similar to how function closures reset narrowing. I'll find some practical examples to the team can decide.

Devil's advocate just for completeness: The OP's argument seemed to be that during await, other in-flight asynchronous operations may have side effects on the one that's paused (i.e. casually unrelated to the call being awaited), which can't happen in the sync case.

Thank you, pretty much the only person who read what I was saying. It is not about the function that's called or its effects.
During development of an advanced application that makes a ton of use of simultaneous async calls, Typescript is actively hindering by assuming the state couldn't possibly have changed, when many times that is the case or even an intended side effect.

Why would a syntactic sugar for promises have different expectations from using promises?

On a weekly basis we get a "bug report" that code inside a callback doesn't get narrowing from its parent scope; see inbound links on #11498. What you're saying is that we should get more of those reports -- I don't find that compelling.
We thought about this plenty when we designed control flow /  async and are satisfied with the trade-offs the current approach takes.

So you can see how the current design is inconsistent.
Since this seems to be such a hot topic, would probably make sense to make it a configurable part of the compiler.

I would tend to agree. The one size fits all approach never works out for large popular projects like typescript. Many companies will want to lean on the side of safety in their code rather than convenience.

We don't think this makes sense to be configurable because in the vast majority of situations, pessimistically resetting narrowings causes many more problems than it solves, and any given codebase would be extremely unlikely to change such a configuration away from the default. It doesn't make sense to do a large amount of work to enable that setting just for effectively no one to turn it on.

Given you've just stated you get weekly issues about this, and this topic I've opened has already been opened several times, I think you're mistaken in thinking that no one will use this configuration.
Would you accept a PR?


Remove supported check for audio

Previously, we had to check whether or not audio was of a supported
format, since most of our audio files were ogg only (which wouldn't work
on Safari and other browsers). Since we are now using mp3s for
everything, we no longer need these checks.

Deployed to: http://staging.quran.com:32808

rebuild

rebuild

Deployed to: http://staging.quran.com:32809

this is good to merge once @mmahalwy approves - the "failing check" is the previous build which messed up because i had a typo in the jenkins config.

ty!


Selection in MacOS don't work

I try use hotkey for fast translate but not working, in log I just see
"Passing output '' to Script Filter". But Using "MacOS Clipboard Contents" Works!
Any can help with this?
Thnks

it maybe caused by your Alfred doesnt has the Accessibility privacy. please have a check.

I had already checked Alfred on Accessibility Privacy Menu, but I re-check again and now works! Thnks!!

haha, If you find that it is still unavailable, you need to click to cancel and reselect it. Just tested.

haha, If you find that it is still unavailable, you need to click to cancel and reselect it. Just tested.

It worked, thank you!!


Adding Comment Comments Out All Code

Challenge http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code has an issue.
If I create a new line at the top of the code block and add my comment tag () at the end of the code block, thus commenting out the entire code block.

Typing in the requisite statement will then produce a success message, but when you go to the next lesson the comment is restricted to the single line (as I believe this lesson intends.)
Additionally, after typing the comment tag, the cursor moves to the first character at the top of the page, which is inconsistent with other tag character generation.
So, in my opinion, the done statement would include:

Fix comment tags such that the end tag is automatically placed one space after the open tag (on the same line) (may be a problem with comment tags in general)
Fix comment tags such that the cursor remains immediately following the open comment tag.  (may be a problem with comment tags in general)
(May not be necessary if 1 and 2 are fixed) Add another task such that all original code must remain uncommented.

https://github.com/FreeCodeCamp/FreeCodeCamp/issues/2115
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/2075

Closing as duplicate
Please see https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Searching-for-Your-Issue-on-Github


get zip code data through excel

This is the same as another item that is being done though Python script but this will do the same through the use of Excel  it will associate census FIPS code  with ZIP and remove any non Seattle Zip codes from the city of Seattle pet licenses database.


Rename devices

Is it possible to rename my devices? Possible enhancement?

I am having trouble finding this feature. Where can I find it?

This has been implemented.


Notify the user when lesshint can't check a file

I'm not sure if there was a good reason why this exception was being swallowed, but if not, this should fix #17.

I didn't notice this originally, but there were some waitForPromise calls missing in the tests that I took the liberty of fixing to make this build correctly on AppVeyor. Sorry for the twofer!

I guess this is more helpful than just throwing an error 😄
Thanks for contributing and the test fixes!


test: no label to check

This issue doesn't have one of the labels to check, so information will not be requested.

Adding a label to check after the fact can request more information, depending on which github event types are set.

If I provide any one requested item the label will be removed for manual review.
https://codesandbox.io/s/calcite-template-p95kp

Expected Behavior
The maintainer can add back the need info label manually and ask for any additional required items.
Actual Behavior

success


PREVIEW: draft 0.3 roadmap (do not merge)

Description of your changes
Initial draft 0.3 roadmap updates, will be iterating on this later today.
Checklist
I have:

[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Ensured this PR contains a neat, self documenting set of commits.
[ ] Updated any relevant [documentation], [examples], or [release notes].
[ ] Updated the RBAC permissions in [clusterrole.yaml] to include any new types.

[skip ci]

switching over to a PR that is not rebased from upstream/master per @suskin


Add Drupal.t() in DS Validation package

The following validation messages need to be wrapped in the Drupal.t() function for the time being until the Validation package is update to allow customizing the messages from within the main project that pulls in the Validation dependency.

[ ] "Looks good!"
[ ] "That doesn't match."
[ ] "Did you mean {$suggestion}? Fix it!"

This should be good now in v0.2.2, pending new translations.

Re-assigning to you, @weerd, for the translationz.


Flexget: 2.17.14 -> 2.17.20 & Python: 2.7 -> 3.6

Motivation for this change
Flexget fails on current master because of Cherrypy for python 2.7, so updated flexget to using python 3.6 and updated it to v2.17.20
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

And what exactely there?

For example, I don't find pathlib anywhere.

Building with python27 removed yields
$ nix-build -A flexget
these derivations will be built:
  /nix/store/bam7hlz4av1jh39m4npfmkvx3gc77p0s-FlexGet-2.17.20.drv
building '/nix/store/bam7hlz4av1jh39m4npfmkvx3gc77p0s-FlexGet-2.17.20.drv'...
unpacking sources
unpacking source archive /nix/store/s7nzc484r5hqxh207cr481c3x3m61ss2-FlexGet-2.17.20.tar.gz
source root is FlexGet-2.17.20
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file FlexGet-2.17.20/setup.cfg
patching sources
configuring
building
Failed to import the site module
Traceback (most recent call last):
  File "/nix/store/vprk5i2jrlc0q7g3ip4xd4al51p6ydyg-python2.7-setuptools-40.6.2/lib/python2.7/site-packages/site.py", line 73, in <module>
    __boot()
  File "/nix/store/vprk5i2jrlc0q7g3ip4xd4al51p6ydyg-python2.7-setuptools-40.6.2/lib/python2.7/site-packages/site.py", line 26, in __boot
    import imp  # Avoid import loop in Python 3
  File "/nix/store/gawjnyhb54aq4qby8vk9glh3pn1iyaqn-python3-3.6.7/lib/python3.6/imp.py", line 27, in <module>
    import tokenize
  File "/nix/store/gawjnyhb54aq4qby8vk9glh3pn1iyaqn-python3-3.6.7/lib/python3.6/tokenize.py", line 33, in <module>
    import re
  File "/nix/store/gawjnyhb54aq4qby8vk9glh3pn1iyaqn-python3-3.6.7/lib/python3.6/re.py", line 142, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
builder for '/nix/store/bam7hlz4av1jh39m4npfmkvx3gc77p0s-FlexGet-2.17.20.drv' failed with exit code 1
error: build of '/nix/store/bam7hlz4av1jh39m4npfmkvx3gc77p0s-FlexGet-2.17.20.drv' failed

which tells us that somehow, python27 still gets in there and is mixed up with python36. That's why I wanted to avoid having two Python versions in the first place.
Maybe this is caused by deluge being built with python27. Do we really need deluge in propagatedBuildInputs? Can we build it with python36?

Then feel free to fix it with python 2.7

According to https://github.com/Flexget/Flexget/pull/2102, Flexget only uses deluge-client nowadays, which is also supported on Python 3.
Do you actually use the deluge plugin and could you test this?

I could try to update this myself in the next few days so you can test it, if you have the time to wait.

I don't use deluge but a lot of people do.

Superseded by #52681.


Set up automatic testing

So far, we've been testing everything manually and it's becoming very tedious. Set up some automatic testing - either some unit tests that will run locally with our personal data or CI testing using some dummy data.

👁👁

Create dummy data


uninitialized constant Tipax::ClientApi::DataSyncRepresenter

Hi,
I have a representer in a rails engine with the following code:
module Tipax::ClientApi
  module GeoLocationRepresenter
    include Roar::JSON

    property :title
  end
end

and the controller that use representer :
require_dependency "tipax/application_controller"
require "#{Rails.root}/engines/client_api/app/representers/tipax/client_api/geo_location_representer"

module Tipax::ClientApi
  class DataSyncController < ApplicationController
    include Roar::Rails::ControllerAdditions
    respond_to :json
    # include Roar::Rails::ControllerAdditions::Render
    # represents :json, :entity => Tipax::ClientApi::GeoLocationRepresenter

    def get_all_data
      geo_locations = Tipax::GeoLocation.all
      respond_with geo_locations
    end
  end
end

when loading action of controller this error raised.
NameError (uninitialized constant Tipax::ClientApi::DataSyncRepresenter):
activesupport (4.2.4) lib/active_support/inflector/methods.rb:263:in const_get'   activesupport (4.2.4) lib/active_support/inflector/methods.rb:263:in block in constantize'
activesupport (4.2.4) lib/active_support/inflector/methods.rb:259:in each'   activesupport (4.2.4) lib/active_support/inflector/methods.rb:259:in inject'
activesupport (4.2.4) lib/active_support/inflector/methods.rb:259:in constantize'   activesupport (4.2.4) lib/active_support/core_ext/string/inflections.rb:66:in constantize'
roar-rails (1.0.1) lib/roar/rails/formats.rb:55:in infer_representer'   roar-rails (1.0.1) lib/roar/rails/formats.rb:41:in collection_representer'
roar-rails (1.0.1) lib/roar/rails/formats.rb:34:in name_for'   roar-rails (1.0.1) lib/roar/rails/formats.rb:18:in for'
roar-rails (1.0.1) lib/roar/rails/controller_additions.rb:47:in representer_for'   roar-rails (1.0.1) lib/roar/rails/controller_additions.rb:41:in prepare_model_for'
roar-rails (1.0.1) lib/roar/rails/responder.rb:55:in prepare_model_for'   roar-rails (1.0.1) lib/roar/rails/responder.rb:8:in display'
responders (2.1.0) lib/action_controller/responder.rb:212:in api_behavior'   responders (2.1.0) lib/action_controller/responder.rb:191:in rescue in to_format'
responders (2.1.0) lib/action_controller/responder.rb:185:in to_format'   responders (2.1.0) lib/action_controller/responder.rb:163:in respond'
responders (2.1.0) lib/action_controller/responder.rb:156:in call'   responders (2.1.0) lib/action_controller/respond_with.rb:203:in respond_with'
engines/client_api/app/controllers/tipax/client_api/data_sync_controller.rb:13:in get_all_data'   actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in send_action'
actionpack (4.2.4) lib/abstract_controller/base.rb:198:in process_action'   actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in process_action'
actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in block in process_action'   activesupport (4.2.4) lib/active_support/callbacks.rb:88:in run_callbacks'
activesupport (4.2.4) lib/active_support/callbacks.rb:778:in _run_process_action_callbacks'   activesupport (4.2.4) lib/active_support/callbacks.rb:81:in run_callbacks'
actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in process_action'   actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in process_action'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in block in process_action'   activesupport (4.2.4) lib/active_support/notifications.rb:164:in block in instrument'
activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in instrument'   activesupport (4.2.4) lib/active_support/notifications.rb:164:in instrument'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in process_action'   activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in process_action'
actionpack (4.2.4) lib/abstract_controller/base.rb:137:in process'   actionview (4.2.4) lib/action_view/rendering.rb:30:in process'

Hi Abolfazl, I'm sorry to tell you that I don't support this gem anymore, as I find everything about the Rails Way is wrong, even this gem is only a fix on a pile of rubbish. Your problem is an autoloading issue with Rails, which is one of the many reasons I want to get away from Rails as soon as possible.
Try to always use require_dependency instead of require and have a look at Trailblazer, which is my successor to Rails and its mess.


Bitwise data / groups

Currently there is no example showcasing the use of bitwise data. Technically this datatype is applicable to both DPP and DPS.

It is also technically feasible for bitwise DPS to be utilised as group definition, rather than a list of indices. This would only reduce requisite space for groups that select more than 1/32 of streamlines, and unlike a list of indices it would mean that the number of elements cannot be inferred without reading the data, but it's nevertheless worth discussing the prospect, and explicitly rejecting if that's the consensus.

That's an interesting point that brings back an idea from the original thread (except it was a DPS in uint8 and required a LUT for meaning).
We just have to mention what would be the extension for binary data type? just .bool?
It is a simple idea that allows for quite a lot of liberty. I don't see how it could be misused, I would add it immediately unless anyone has a counter-argument.

We just have to mention what would be the extension for binary data type? just .bool?

I'd probably advocate for .bit rather than .bool. Over and above being consistent with existing MRtrix3 parlance, I think it's a more direct reference to storage, whereas "boolean" to me conveys either an internal interpretation of data or the logic surrounding such.


Make all font awesome names valid admonitions by default

Could you make it so that all valid font awesome names work as admonitions with just black color by default - without having to add custom ones?

Unfortunately this would require registering 1000+ post-processors into Obsidian. I don't like the idea of doing that by default, sorry.


dart obfuscation has stopped working

The previous version of my app I released 2 months ago I had the option for dart obfuscation enabled :
In gradle.properties I have :
extra-gen-snapshot-options=--obfuscate

Trying to make a release build today I am just getting crashes on startup (debug mode is working fine). Removing the obfuscate line above makes the release work again.  Just don't. You will break.
09-26 13:59:54.155 15871 15871 W SessionLifecycleManager: Handover failed. Creating new session controller.
09-26 13:59:54.167 15871 15871 E PBSessionCacheImpl: sessionId[69802934172932476] not persisted.
09-26 13:59:54.171 15871 16183 I PBSessionCacheImpl: Deleted sessionId[69802934172932476] from persistence.
09-26 13:59:54.172 15871 15871 I OptInState: There is a new client and it does not support opt-in. Dropping request.
09-26 13:59:54.202   601 13430 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@19878b4 attribute=null, token = android.os.BinderProxy@5f77975
09-26 13:59:54.233   601 13385 I OpenGLRenderer: Initialized EGL, version 1.4
09-26 13:59:54.233   601 13385 D OpenGLRenderer: Swap behavior 2
09-26 13:59:54.246 15871 15871 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
09-26 13:59:54.246 15871 15871 I AudioController: Created new AudioSource
09-26 13:59:54.248 15871 15871 I MicroDetectionWorker: onReady
09-26 13:59:54.314 16516 16516 D GeckoMemoryMonitor: onTrimMemory() notification received with level 80
09-26 13:59:54.348 15871 15944 I MicroRecognitionRunner: Starting detection.
09-26 13:59:54.348 15871 16183 I MicrophoneInputStream: mic_starting  SR : 16000 CC : 16 SO : 1999
09-26 13:59:54.351   236 16608 I AudioFlinger: AudioFlinger's thread 0xf2003980 ready to run
09-26 13:59:54.355   236   290 I SoundTriggerHwService::Module: void android::SoundTriggerHwService::Module::onCallbackEvent(const sp<android::SoundTriggerHwService::CallbackEvent> &) mClient == 0
09-26 13:59:54.357 15871 16183 I MicrophoneInputStream: mic_started  SR : 16000 CC : 16 SO : 1999
09-26 13:59:54.426 16516 16516 D GeckoMemoryMonitor: onTrimMemory() notification received with level 80
09-26 13:59:54.426 16516 16516 D GeckoMemoryMonitor: onTrimMemory() notification received with level 80
09-26 13:59:54.451   235   235 I Zygote  : Process 16578 exited due to signal (11)
09-26 13:59:54.534 15871 15871 I MicroDetectionWorker: onReady
09-26 13:59:54.572 31145 16609 E NetworkScheduler: Invalid component specified.

[✓] Flutter (Channel master, v0.9.4-pre.39, on Linux, locale en_CA.UTF-8)
• Flutter version 0.9.4-pre.39 at /work/installs/flutter
• Framework revision 63f2fb9f5d (55 minutes ago), 2018-09-26 13:17:20 -0700
• Engine revision 38a646e14c
• Dart version 2.1.0-dev.5.0.flutter-4cf2d3990b
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /home/david/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /home/david/Android/Sdk
• Java binary at: /work/installs/android-studio-3.0/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] Android Studio (version 3.2)
• Android Studio at /work/installs/android-studio-3.0
• Flutter plugin version 28.0.2
• Dart plugin version 181.5616
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[!] IntelliJ IDEA Community Edition (version 2018.1)
• IntelliJ at /work/installs/idea-IC-181.4445.78
✗ Flutter plugin not installed; this adds Flutter specific functionality.
• Dart plugin version 181.4892.1
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[✓] Connected device (1 available)
• Nexus 9 • HT4B6JT00129 • android-arm64 • Android 7.1.1 (API 25)
! Doctor found issues in 1 category.

Looks like this regressed starting at https://github.com/dart-lang/sdk/commit/de408202a5cacafd25d170fff9d232c24c8e4b5e
@a-siva @sjindel-google

Strangely this problem does not appear on the Mac :
flutter doctor -v
[✓] Flutter (Channel master, v0.10.1-pre.89, on Mac OS X 10.13.6 17G65, locale en-CA)
	• Flutter version 0.10.1-pre.89 at /work/installs/flutter
	• Framework revision 751c083f7d (5 hours ago), 2018-10-19 03:56:18 +0800
	• Engine revision 104f057280
	• Dart version 2.1.0-dev.7.1.flutter-b99bcfd309

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
	• Android SDK at /Users/david/Library/Android/sdk
	• Android NDK location not configured (optional; useful for native profiling support)
	• Platform android-28, build-tools 28.0.1
	• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
	• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
	• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
	• Xcode at /Applications/Xcode.app/Contents/Developer
	• Xcode 9.4.1, Build version 9F2000
	• ios-deploy 1.9.2
	• CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
	• Android Studio at /Applications/Android Studio.app/Contents
	• Flutter plugin version 29.1.1
	• Dart plugin version 181.5656
	• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Community Edition (version 2018.2.5)
	• IntelliJ at /Applications/IntelliJ IDEA CE.app
	✗ Flutter plugin not installed; this adds Flutter specific functionality.
	• Dart plugin version 182.4999
	• For information about installing plugins, see
	  https://flutter.io/intellij-setup/#installing-the-plugins

[✓] Connected device (1 available)
	• iPhone X • 9717A4E1-0F44-455A-979D-3CBD0B7D8BD0 • ios • iOS 11.4 (simulator)

! Doctor found issues in 1 category.

But is still present in Linux :
flutter doctor -v
[✓] Flutter (Channel master, v0.10.1-pre.85, on Linux, locale en_CA.UTF-8)
	• Flutter version 0.10.1-pre.85 at /work/installs/flutter
	• Framework revision bbe8cf606e (7 hours ago), 2018-10-18 14:58:16 -0300
	• Engine revision 104f057280
	• Dart version 2.1.0-dev.7.1.flutter-b99bcfd309

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
	• Android SDK at /home/david/Android/Sdk
	• Android NDK location not configured (optional; useful for native profiling support)
	• Platform android-27, build-tools 27.0.3
	• ANDROID_HOME = /home/david/Android/Sdk
	• Java binary at: /work/installs/android-studio-3.0/jre/bin/java
	• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
	• All Android licenses accepted.

[✓] Android Studio (version 3.2)
	• Android Studio at /work/installs/android-studio-3.0
	• Flutter plugin version 29.1.1
	• Dart plugin version 181.5656
	• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Community Edition (version 2018.2)
	• IntelliJ at /work/installs/idea-IC-181.4445.78
	✗ Flutter plugin not installed; this adds Flutter specific functionality.
	• Dart plugin version 182.3569.4
	• For information about installing plugins, see
	  https://flutter.io/intellij-setup/#installing-the-plugins

[!] Connected device
	! No devices available

! Doctor found issues in 2 categories.

Tried again with a newer Linux version, but still not working.
Flutter version 0.10.1-pre.99 at /work/installs/flutter

I am working on this now. I landed some changes a while ago which broke obfuscation, but we didn't have any test configurations with obfuscation enabled, so the regression went unnoticed.

Obfuscation has been fixed in Dart in commit e23acaaf90996b84548ea23af14730ff1a21d826, and we've added a test configuration to ensure obfuscation support in Dart doesn't regress again.
Obfuscation requires the declaration of entry-points which are otherwise not needed if they are referenced by other entry-points. This uncovered several missing entry-points in Flutter. We've added some safeguards to ensure that classes looked-up by name are declared to be entry-points in non-obfuscated mode, but Flutter may still want to add an obfuscation test configuration as well.
Also, it looks like Dart rolls into Flutter were stopped shortly before the fixes landed. Support for obfuscation will need to be cherry-picked to be available in Flutter 1.0.

Which CL specifically are you referring to?

e23acaaf90996b84548ea23af14730ff1a21d826

The change has been cherry picked into the flutter tree.

Looks to be working now :
Flutter (Channel master, v0.11.9-pre.3, on Linux, locale en_CA.UTF-8)
	• Flutter version 0.11.9-pre.3 at /work/installs/flutter
	• Framework revision<PHONE_NUMBER> (3 hours ago), 2018-11-20 10:21:36 -0800
	• Engine revision 1baf081343
	• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)


Add support for Trace-Context

Closes #94
📑 Description
This PR adds two codes to the BasicAuditEntityType CodeSystem and the BasicAuditEntityTypesVS ValueSet: Traceparent and Tracestate. The slicing is updated, an exemple is modified to use traceparent instead of XrequestId and the documentation is updated accordingly.
✅ Checks

[x] My pull request adheres to the code style of this project
[ ] My code requires changes to the documentation
[x] I have updated the documentation as required
[ ] All the tests have passed
[ ] I have selected a committee co-chair to review the PR

ℹ Additional Information

Hi @JohnMoehrke! What do you think of this proposition? What would be the next step to fix the linked issue?

will add this to the next CP call.

CP-ITI-1303

There is interest, but the changes are big enough to require CP processing. The CP can refer to this Pull-Request, but the CP does need to be drafted with rational for the change.

@qligier can you prepare ITI-CP-1303 for a CP Ballot as discussed above?


Created a new showcase submission in cc #178

Manually submitted a showcase in coding challenge #178 since the automatic submission from the website is not working. I was not sure about the number at the end of the file name so please check that.

Here's the contribution image

Thanks for submitting directly through GitHub! I think your image was just a bit too large to get through the form submission. #1021 should address the 256 KB limit once completed.

Thanks for the reply! I do think there should be a warning about file size when it gets too big. All it showed me was that it could not be submitted and to contact at the help email.

Thank you for this! Yes, hopefully we'll have the issue resolved soon thank you for the submission and feedback @raj-jaiswal!


Whenever I open the program another time to change the settings, it creates a new version of itself to run in the background.

This does not happen when I open it through one of the pre-existing versions in the task tray.

Also the passwords and automatic log-in do not get saved at all even when I open the same version through the task tray. I put the password and lock it, and when I open it again the unlock button is available even though I haven't put in the password yet.

I think this is happening because clicking on the .exe will just start another instance. Perhaps some kind of change that checks if the program is already running would be a good idea. I'll look into it.


Terminal prompt is skewed when using DankMono font and powerline10k

Issue Type: Bug

Open terminal with dank mono font and powerline10k prompt
Prompt apperears not straight and skewed as follows in the image

VS Code version: Code 1.55.1 (Universal) (08a217c4d27a02a5bcde898fd7981bda5b49391b, 2021-04-07T18:22:52.186Z)
OS version: Darwin x64 [20.3.0](url

)

Looks like duplicate of #120129
Please check if it's still reproducible in Insiders build https://code.visualstudio.com/insiders/

It is indeed fixed in Code-Insiders. Thanks.


Drop only exists database tables

To follow Laravel default migration files it will be better to call dropIfExists method instead of drop. If table was dropped already - migration rollback process wouldn't be broken.

awesome, this was on my list. Thanks again!


BUG: Vue Pug Templates get messed up

I guess the support for different language options in vue SFC files is currently not supported but is formatting nontheless.
<template lang="pug">
QLayout(view="hHh Lpr fFf")
  QPageContainer
    RouterView
</template>

turns into
<template lang="pug">
QLayout(view="hHh Lpr fFf") QPageContainer RouterView
</template>

There're no plans about supporting and ignoring pug.


AI Model influence: If you got errors in mermaid generation with text to AI, try to change model

Hi there,
I opened this issue at first to report an issue with parenthesis. But while digging, I realized that the model has an impact on the result.
Using gpt4o, I got mermaid errors related to "root" or issues while interpreting parenthesis in text.
I switched back to gpt 3 turbo, and it worked flawlessly.
I suggest adding a listbox to select model above the prompt box, so one can test with multiple model and select the one which gives the best result.

This is based on GPT-4o doesn't know, Excalidraw doesn't recognize Mindmap syntax. #7281
You can specify in your prompt, which type of mermaid syntax you want. Supported are currently flowchart, class und sequence to my knowledge.


[pigment-css] Support module aliases in nextjs-plugin

Steps to reproduce
Link to live example: https://github.com/joshwcomeau/pigment-experiments
Steps:

Install dependencies and start a dev server
Visit localhost:3000
Notice the error in the terminal

(Sorry for lack of CodeSandbox! I tried to create one and it froze).
Current behavior
Next.js has built-in support for module aliases. The default alias works like this:
import random from '@/helpers/random';
// Equivalent to:
import random from '../src/helpers/random';

When I try to import a module using this default alias, I get the following error:

⨯ unhandledRejection: EvalError: Cannot find module '@/helpers/random'
Require stack:
/Users/joshu/work/pigment-experiments/src/app/page.tsx in/Users/joshu/work/pigment-experiments/src/app/page.tsx
at Module.evaluate (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/module.js:223:13)
at evaluate (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/evaluators/index.js:14:5)
at BaseAction.evalFile (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform/generators/evalFile.js:35:43)
at evalFile.next ()
at /Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform/actions/BaseAction.js:66:78
at EventEmitter.action (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/utils/EventEmitter.js:25:22)
at BaseAction.emitAction (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform/actions/BaseAction.js:131:39)
at nextFn (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform/actions/BaseAction.js:66:32)
at processNext (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform/actions/BaseAction.js:111:28)
at Object.next (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform/actions/BaseAction.js:120:9)
at asyncActionRunner (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform/actions/actionRunner.js:39:102)
at async asyncActionRunner (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform/actions/actionRunner.js:46:22)
at async Object.transform (/Users/joshu/work/pigment-experiments/node_modules/@wyw-in-js/transform/lib/transform.js:107:20)
at async Object.transform (/Users/joshu/work/pigment-experiments/node_modules/@pigment-css/unplugin/build/index.js:148:24)
at async Object.transform (/Users/joshu/work/pigment-experiments/node_modules/unplugin/dist/webpack/loaders/transform.js:108:15)

Expected behavior
The nextjs plugin should follow the same module resolution rules as Next.js:

If no alias is specified in next.config.js, the default alias, @/, should be supported
Ideally, it should also support custom aliases. See next.js docs for more information.

Context
I think in a lot of contexts, module aliases are kind of niche since they involve making custom tweaks to webpack config. For Next.js, though, this is built-in, and the default alias works without any config at all. So I do think the default alias, at least, should be supported.
I'm confident this is an issue with Pigment CSS because everything works when I remove the styled import/code from the homepage. The import then resolves correctly.
Your environment

npx @mui/envinfo
System:
OS: macOS 14.1
Binaries:
Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
pnpm: 8.15.4 - ~/.nvm/versions/node/v20.10.0/bin/pnpm
Browsers:
Chrome: 122.0.6261.128
Edge: Not Found
Safari: 17.1
npmPackages:
@emotion/react:  11.11.4
@emotion/styled:  11.11.0
@mui/private-theming:  5.15.12
@mui/styled-engine:  5.15.11
@mui/system:  5.15.12
@mui/types:  7.2.13
@mui/utils:  5.15.12
@types/react: ^18 => 18.2.64
react: ^18 => 18.2.0
react-dom: ^18 => 18.2.0
typescript: ^5 => 5.4.2

Search keywords: pigment-css nextjs

I can confirm this problem. The import works fine without withPigment( in next.config.mjs

Thanks for the report, yes it is an issue with pigment-css, we have faced it ourselves too. I agree, that it's important to handle this, especially as everyone who would be using next.js will depend on this setup to work out of the box. I've added into our backlog with a high priority, we will look into it soon.


Installing obrstack and docker desktop at the same time conflicts

Computer information
Apple M3 Pro
14.4.1 (23E224)

I installed docker desktop on my mac. The version information is as follows

I installed the k8s cluster using kind,It is normal to check before orbstack is installed
$ docker ps -a
CONTAINER ID   IMAGE                  COMMAND                   CREATED      STATUS          PORTS                                      NAMES
79d98a98cb46   kindest/node:v1.29.2   "/usr/local/bin/entr…"   4 days ago   Up 40 seconds                                              ops-ingress-worker2
43eb1b1055c2   kindest/node:v1.29.2   "/usr/local/bin/entr…"   4 days ago   Up 40 seconds                                              ops-ingress-worker
3040e090d1dd   kindest/node:v1.29.2   "/usr/local/bin/entr…"   4 days ago   Up 40 seconds   <IP_ADDRESS>:57333->6443/tcp                  ops-ingress-control-plane
7a8f41265fc7   kindest/node:v1.29.2   "/usr/local/bin/entr…"   4 days ago   Up 40 seconds   <IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:443->443/tcp   ops-ingress-worker3

I have the following version of orbstack installed

Installing orbstack can cause problems with the docke desktop you installed
$ docker ps -a
CONTAINER ID   IMAGE                        COMMAND                   CREATED        STATUS                    PORTS     NAMES
7cb8a43dcb7d   10ada9a7f8ab                 "local-path-provisio…"   1 second ago   Up Less than a second               k8s_local-path-provisioner_local-path-provisioner-957fdf8bc-ldzfj_kube-system_885b7ebe-a44c-4f40-9e94-04748a43ce74_5
b6ee45ae33a1   97e04611ad43                 "/coredns -conf /etc…"      4 days ago     Exited (137) 4 days ago             k8s_local-path-provisioner_local-path-provisioner-957fdf8bc-ldzfj_kube-system_885b7ebe-a44c-4f40-9e94-04748a43ce74_4
e3aadddeb9fa   97e04611ad43                 "/coredns -conf /etc…"   4 days ago     Exited (137) 4 days ago             k8s_coredns_coredns-576cfbb478-rp45h_kube-system_567c19a4-b0e5-4cc8-846e-b0b7843225d9_2
b0bd98f7d16a   rancher/mirrored-pause:3.6   "/pause"                  4 days ago     Exited (137) 4 days ago             k8s_POD_coredns-576cfbb478-rp45h_kube-system_567c19a4-b0e5-4cc8-846e-b0b7843225d9_2
cdd498f87865   rancher/mirrored-pause:3.6   "/pause"                  4 days ago     Exited (137) 4 days ago             k8s_POD_l

How do I solve this problem if I want both orbstack and docker desktop to work

https://docs.orbstack.dev/install#docker-context

Ok, got it. Thank you very much


Fix float32

Tune magic coef to allow to discrete float precision expected more than 16bit but less than 64bit bits
Fix precision for scalar in many frames (1)
Fix precision for list of numbers (2)
Fix precision for list of numbers in many frames (3)

Add regression test.
Spotted by @juliagarriga
It would be good to rework this code to allow to take care of the three use cases (1) (2) (3) in specialized functions. This could create a more readable code.
Closes #2736
Closes #2737

continuation in issue #2756


Return Shipping Address in presentApplePay result

Is your feature request related to a problem? Please describe.
Currently the presentApplePay function returns customer payment information and billing address, but not shipping address. So it's hard to check if the shipping address is one you support before confirming the charge.
Describe the solution you'd like
I'd like the user's chosen shipping details to be included in the variable returned by:
const applePayResult = await presentApplePay()
Describe alternatives you've considered
It may be possible to catch the shipping address by monitoring onShippingContactSelected and then storing it somewhere, but it seems a complicated workaround.

@jamiembrown sorry but this is the only way to get this atm, and I wouldn't say it's a workaround but rather desired approach.
Please refer to the example for more details https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/ApplePayScreen.tsx#L57 and if you still having troubles with implementation I am willing to help you with this.


flake: overlay: move packages to hyprland-plugins namespace

@fufexan
This will break everybody but there are few who use overlays.

My bad. I didn't even see hyprlandPlugins but did look for hyprland-plugins. I guess I'm allergic (or blind to) pascalCase.

I have some news for you...
Anyway I don't think I've seen a scope in Nixpkgs that isn't pascalCase.

ready I think


Crossreference with other libraries?

Lets say we have some code like this:
# {Fixnum} is from StdLib, {Color::RGB} from gem color
# and all of this is just an example and does not have any
# practical use and these types were choosen randomly
# @param [Fixnum] intensity Intensity of the gray
# @return [Color::RGB] Colorvalue representing that gray
def gray intensity
  # do stuff
end

Is there a way to let yard know about usage of these gems/namespaces and link to their documentation at RubyDoc.info?

+!

Closing out old issues.
This is a great idea, but it's extremely complicated to implement for a number of reasons (where is the other doc located at, how to know which library it's referring to, what happens with monkeypatches, perf issues, etc). Unfortunately I don't see a path forward to get this into core any time soon. A plugin would be a great way to get this going without introducing the complexity into YARD core. Note that if rubydoc.info is the goal, this could also just be a layer implemented in http://github.com/docmeta/rubydoc.info directly, where we are much more relaxed about what goes into the core functionality. Also, if the plugin does become popular, pulling it into core could be a discussion.


Way too many types for Tokens

Right now we have, to my current count, ~10 different types which we use to talk about a series of tokens in and around synom.
Edit: crossing off ones that have been eliminated.

~syn::TokenTree~
~Vec<syn::TokenTree>~
proc_macro::TokenStream
proc_macro2::TokenStream
proc_macro2::TokenTree
~Vec<proc_macro2::TokenTree>~
quote::Tokens
quote::ToTokens
synom::SynomBuffer
synom::Cursor

We also talk about proc_macro2::{TokenTree, TokenStream} as ~synom::{TokenTree, TokenStream}~ in some places, as they are re-exported there.
This is a complete mess, and makes it extremely hard to, for example, compose a synom parser and run it over the body of a macro which was parsed. We currently expose the following APIs for parsing:
synom::Synom::parse() (on types implementing Synom - takes a synom::Cursor)
syn::parse() (takes a proc_macro::TokenStream, which is useful for custom derives, but is not useful when you have any of the other types, as there is no cheap conversion from any other tokens type to TokenStream)
syn::parse_str() (takes a &str, re-parses it, and doesn't preserve span information)
Which means that if you have, say a quote::Tokens, you can't actually run a parser without going through some olympics to convert the types around. We really out to have a syn::parse_tokens() or similar which handles quote::Tokens.
It also would be fantastic if we could somehow get away with having a more reasonable set of token types - perhaps using quote::Tokens in places in the AST where we want to provide tokens, so we can have a better interface than TokenStream which we can control, and providing helpers for calling Synom parsers with quote::Tokens? This could at least let us get rid of syn::TokenTree which would be great.
@dtolnay @alexcrichton to see if they have any ideas.

Vec<TokenTree> I think should always be TokenStream? We could also maybe delete syn::TokenTree in favor of proc_macro2::TokenTree I think as well. The quote::Tokens structure should probably be something like TokenStreamBuilder perhaps?

If we do decide that the type which we want people to be passing around in their programs is proc_macro2::TokenStream, then we should probably change the quote!{} macro to convert its internal quote::Tokens object into a TokenStream before producing a result. In addition I think we should probably re-export proc_macro2::TokenStream from syn somewhere, so that people can easily use it in their code.
Right now in code I write using the new syn, I find that I'm passing around quote::Tokens objects a lot (as they're really easy to create with quote!{} and work really well as a representation of a snippet of arbitrary code as they're easy to both create & use).
The fact that we use Vec<syn::TokenTree> as the representation for, for example, macros: https://github.com/dtolnay/syn/blob/d5e985994ca58039ea22d6fde8acb821d9058f2f/src/mac.rs#L17, means that I have to do some gross fiddling with types whenever I see that type and and want to do things with it.
Basically I want a unified story for what type people pass around & store tokens as in their ASTs and internal macro logic, and we should provide the tools to make interacting with those types easy.

I think we could canonicalize on proc_macro2::TokenStream everywhere perhaps? Including returning that from quote!?

I think we should probably have an answer for how we plan to cut down on the # of TokenStream types before we ship 0.12, so adding this to the milestone.  With the current setup this messes with consumers a bit more than I think is acceptable.

I independently came to the same conclusion as Alex -- standardize on proc_macro2::TokenStream, possibly with some re-exports where it makes sense.

Just mapping out how these types interact currently:
proc_macro
pub struct TokenStream { /* private */ }
pub struct TokenTree {
    pub various things
}

impl IntoIterator for proc_macro::TokenStream {
    type Item = proc_macro::TokenTree;
}

// mainly T = proc_macro::TokenTree
impl<T> FromIterator<T> for proc_macro::TokenStream
    where T: Into<proc_macro::TokenStream>;

proc_macro2
pub struct TokenStream(imp::TokenStream);
pub struct TokenTree {
    pub various things
}

impl IntoIterator for proc_macro2::TokenStream {
    type Item = proc_macro2::TokenTree;
}

// mainly T = proc_macro2::TokenTree
impl<T> FromIterator<T> for proc_macro2::TokenStream
    where T: Into<proc_macro2::TokenStream>;

// unstable
mod imp {
    pub struct TokenStream(proc_macro::TokenStream);
}

// stable
mod imp {
    pub struct TokenStream {
        inner: Vec<proc_macro2::TokenTree>
    }
}

syn
pub struct TokenTree(pub proc_macro2::TokenTree);

// also uses Vec<syn::TokenTree> inside attributes and macros

synom
pub struct SynomBuffer { weird private representation }
pub struct Cursor<'a> { weird private representation }

pub trait Synom {
    fn parse(synom::Cursor) -> synom::Cursor;
}

impl SynomBuffer {
    pub fn new(proc_macro2::TokenStream) -> Self;
    pub fn begin(&self) -> Cursor;
}

impl<'a> Cursor<'a> {
    pub fn token_stream(self) -> proc_macro2::TokenStream;
    pub fn token_tree(self) -> proc_macro2::TokenTree;
}

quote
pub struct Tokens {
    tts: Vec<proc_macro2::TokenTree>,
}

pub trait ToTokens {
    fn to_tokens(&self, &mut quote::Tokens);
}

One tricky difference: syn::TokenTree implements PartialEq and Hash while proc_macro2::TokenTree does not. May require handwriting some impls for AST structs.

We can also generate those impls with syn_codege if we don't want to handwrite them :-)

I did it manually for now in 9c76bcbe163ae7e0e1f1cccef20a9823d3d90548 but I filed #288 to follow up.

Unscheduling from 0.12 -- I made some progress and I think we are in acceptable shape for a release, but we can do more along these lines later.

With quote! now producing proc_macro2::TokenStream instead of quote::Tokens as of quote 0.6 I believe this is ready to close.


Fix Style/StringConcatenation offenses in test

This PR fixes the Style/StringConcatenation offenses in test and subfolders.
It also includes some manual changes to:

improve readability;
change some string concatenations not flagged by Rubocop.

The PR reduces total number of Rubocop offenses by about 1%.

Coverage remained the same at 85.78% when pulling 5f2a4351cd99291a7f64f9ecdcf6f006f4203335 on jdc-string-concat-tests into 24b78eda9929e2c313e1cc54d78d237623944bda on master.

NOTE:  As the first step in this PR, I used Rubocop autocorrect in its default aggressive mode.  ($ rubocop --only Style/StringConcatenation -A test)
Autocorrect is "unsafe" in this mode because "it cannot be guaranteed that the receiver is actually a string, which can result in a false positive." https://docs.rubocop.org/rubocop/1.29/cops_style.html#safety-44
I then reviewed the corrections to determine if the receivers were strings. (All of them were.)

Looks good, Joe.


Labels and Tests

In this PR:

I added label creations when a book is added
I added an option to display all labels
I added Tests for both Book and Label classes

@anuarshaidenov
Somewhat the date strategy you introduced to check if can be archived, doesn't seem to work at my end. It throws errors even in the test files. Do I need to install anything to get around that?


Deprecated slot special attributes, Use v-slot directives

Vue.js deprecated slot special attributes after v2.6.0, it is recommended to use the v-slot directive.
Therefore, I made the following changes:

Update Vue-Infinite-Loading's Vue.js version to v2.6.10 (current version)
Change slot special attributes to v-slot directive in the documentation.

Sorry too late, I'm very busy in working recently :(
This is a very great and considerate PR, thank you very much!


Prod build fails with "Can't resolve '@angular/material/material'

Bug Report or Feature Request (mark with an x)
- [X] bug report -> please search issues before submitting
- [ ] feature request

Versions.
@angular/cli: 1.2.1
node: 7.1.0
os: win32 x64
@angular/animations: 4.3.1
@angular/cdk: 2.0.0-beta.8
@angular/common: 4.3.1
@angular/compiler: 4.3.1
@angular/core: 4.3.1
@angular/flex-layout: 2.0.0-rc.1
@angular/forms: 4.3.1
@angular/http: 4.3.1
@angular/material: 2.0.0-beta.8
@angular/platform-browser: 4.3.1
@angular/platform-browser-dynamic: 4.3.1
@angular/router: 4.3.1
@angular/upgrade: 4.3.1
@angular/cli: 1.2.1
@angular/compiler-cli: 4.3.1
Repro steps.
Attached a cut down project that shows the issue:
TestApp.zip
npm install
ng build --prod
The log given by the failure.
ERROR in ./app/$$_gendir/app.module.ngfactory.ts
Module not found: Error: Can't resolve '@angular/material/material'
in 'C:\Code\app$$_gendir'
@ ./app/$$_gendir/app.module.ngfactory.ts 30:0-50
@ ./app/main.ts
@ multi ./app/main.ts
Desired functionality.
Prod build completes without error.
Mention any other details that might be useful.
This works with angular v4.2.6 but fails with v4.3.0/v4.3.1
A non-prod build works fine.

Hi,
I'm not sure of what i'll say but you can give it a try.
I think this is due to the new version of Typescript used by angular 4.3. In this version of typescript there is an error if an import has an unresolved path.
So double check you app and see if you can see an import (or link) to  '@angular/material/material' even if this import is not used.
Try to change it (maybe remove one "/material") or remove it.

Thanks for your response, BobBDE. The Typescript change is interesting and sounds relevant.
I couldn't find any references to "@angular/material/material" in the app. Maybe this path referenced by one of the dependencies, or the theming support.
I'll try stripping down my sample app further to see what I can get working. But I'm confused because I've already removed all the components, services etc.

Same issue here. It didn't seem to be caused by the latest angular though. I tmight be something to do with node/npm versions.

alex321: what versions of node/npm do you have? I'm using node 7.1.0, npm 3.10.9.

Same here with:
win32 x64, node: 8.1.3
@angular/cli: 1.2.3
@angular: 4.3.1
typescript: 2.4.2

Same here:
@angular/cli: 1.2.1
node: 7.5.0
os: darwin x64
@angular/animations: 4.3.0
@angular/common: 4.3.0
@angular/compiler: 4.3.0
@angular/core: 4.3.0
@angular/flex-layout: 2.0.0-rc.1
@angular/forms: 4.3.0
@angular/http: 4.3.0
@angular/material: 2.0.0-beta.8
@angular/platform-browser: 4.3.0
@angular/platform-browser-dynamic: 4.3.0
@angular/router: 4.3.0
@angular/cdk: 2.0.0-beta.8
@angular/cli: 1.2.1
@angular/compiler-cli: 4.3.0
@angular/language-service: 4.3.0

@SteveHWork
If this error is happening for everyone with an angular version > 4.3, I think the error is not because of angular-cli but angular/material. It should not be compatible with this angular version ( maybe because of typescript 2.4.2).
So maybe you should reopen this bug in the @angular/material repository.

I have investigated it further and on https://github.com/angular/angular-cli/issues/5802 mcosta74 mentioned those parameters: -prod -aot false.
I have tried it out, and indeed the error was not there anymore, and dist of 15MB became 3MB.

@criticalbh yeah this should work with those parameters because you disabled the aot compilation. You can do it until the problem is fix but you should not keep this solution because thanks to the AOT compilation the performances are really improved (mostly in launch time).
The AOT compilation try to compile everyfile and at a point there is a reference to @angular/material/material which the compilator coundn't find.

@criticalbh with ng build --aot, project files are compiled with Angular compiler, and generates .ngfactory.ts files. This happens in memory with Webpack, and isn't output to disk. It's not possible to search workspace for any mention of it (i.e., ./app/$$_gendir/app.module.ngfactory.ts does not exist)

Heya, I don't really know what the problem is but there's an issue to track it in the Angular Material2 repo: https://github.com/angular/material2/issues/6046
I'll reopen here if needed.

Heya, the Material team has identified the issue in angular/material2#6046, and are looking to fix it.

I have this error when i'm using angular/material and can't solve it :
ERROR in<EMAIL_ADDRESS>(61,22): Class 'MatListItem' incorrectly implements interface 'CanDisableRipple'.
Property 'disableRipple' is missing in type 'MatListItem'.
ERROR in<EMAIL_ADDRESS>(8,10): Module '"/home/brahim/WebstormProjects/firebase-authentification/node_modules/@angular/core/index"' has no exported member 'InjectionToken'.
ERROR in<EMAIL_ADDRESS>(8,10): Module '"/home/brahim/WebstormProjects/firebase-authentification/node_modules/@angular/core/index"' has no exported member 'InjectionToken'.
ERROR in<EMAIL_ADDRESS>(8,10): Module '"/home/brahim/WebstormProjects/firebase-authentification/node_modules/@angular/core/index"' has no exported member 'InjectionToken'.
ERROR in<EMAIL_ADDRESS>(8,10): Module '"/home/brahim/WebstormProjects/firebase-authentification/node_modules/@angular/core/index"' has no exported member 'InjectionToken'.
ERROR in<EMAIL_ADDRESS>(8,10): Module '"/home/brahim/WebstormProjects/firebase-authentification/node_modules/@angular/core/index"' has no exported member 'Renderer2'.
ERROR in<EMAIL_ADDRESS>(9,22): Class 'MatOptgroup' incorrectly implements interface 'CanDisable'.
Property 'disabled' is missing in type 'MatOptgroup'.


Dev towards v0.6.2

Codecov Report

Merging #44 (9bb5942) into master (4f43a65) will increase coverage by 0.03%.
Report is 7 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
+ Coverage   91.92%   91.95%   +0.03%
==========================================
  Files          20       20
  Lines        2774     2773       -1
==========================================
  Hits         2550     2550
+ Misses        224      223       -1

Files Changed
Coverage Δ

src/fconvert/fconvert_tseries.jl
96.17% <100.00%> (+2.55%)
:arrow_up:

src/recursive.jl
94.44% <100.00%> (-0.30%)
:arrow_down:

... and 2 files with indirect coverage changes


Restyling/home screen

CommCare's redesigned home screen

Reviewed the Java portions of this PR. Many of the comments are just questions because I don't understand the intricacies of some of the UI setup logic.


Msigproposals

wip manage proposals and wip add eosdac to vote list.

Hmm... I think the issue i'm seeing with JSON parsing has something to do with this:
Error: Abi 'dacelections' is not cached action.data transaction.actions
    at Object.abi (abi-cache.js?63d5:68)
    at structLookup (structs.js?93b7:41)
    at actionDataFromObject (structs.js?93b7:751)
    at Object.fromObject (struct.js?8009:148)
    at Object.fromObject (types.js?0001:387)
    at Object.fromObject (struct.js?8009:151)
    at transaction$ (write-api.js?5472:800)
    at tryCatch (runtime.js?96cf:62)
    at Generator.invoke [as _invoke] (runtime.js?96cf:288)
    at Generator.prototype.(anonymous function) [as next] (webpack-internal:///./node_modules/regenerator-runtime/runtime.js:114:21)

I just got this error trying to register:
transaction.vue?21be:185 Uncaught (in promise) SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at VueComponent.parseError (transaction.vue?21be:185)
    at VueComponent._callee2$ (transaction.vue?21be:172)
    at tryCatch (runtime.js?96cf:62)
    at Generator.invoke [as _invoke] (runtime.js?96cf:288)
    at Generator.prototype.(anonymous function) [as throw] (webpack-internal:///./node_modules/regenerator-runtime/runtime.js:114:21)
    at asyncGeneratorStep (asyncToGenerator.js?c973:5)
    at _throw (asyncToGenerator.js?c973:31)

I'm running this locally, so it's possible the issues I'm seeing are due to a different version of webpack or something.

Yeah, after refreshing, the error went away, so this may just be something I'm seeing locally with quasar builds. When I click approve on the existing multisigs, nothing seems to happen though, and I don't see anything in the logs. Is that still being developed?

I think this work will be covered elsewhere, so I'm closing this out for now. Please reopen as needed.


Update ns-winuser-rawkeyboard.md

Add WM_INPUT example for RAWKEYBOARD events

@Karl-Bridge-Microsoft any objections?


Fix link testing workflow for linkedin

Linkedin doesn't allow http request from bots and returns a status code of 999, either we need to exclude linkedin links or mark status code 999 as valid links (both case wouldn't test link just not make the whole workflow fail)

999 should be considered valid; it's an HTTP code returned by a webserver, so likely the link has content valid just not content accessible by the bot.
https://http.dev/999


previewFirstRow is not working

Hi...
This is a great package for swiping component.I have integrated this component in my react native app.It is working great.But I have one issue.PreviewFirstRow is not working.This is my code for swipeview :
//******************************** Code Start*************************************//
return (
<SwipeListView
// disableLeftSwipe = {true}
dataSource={ds.cloneWithRows(commentListSorted)}
renderRow={ objComment => (
<ToastCommentCardForToastDetail
onPressUserDetail = {() => self.gotoUserProfilePage(objComment.from)}
onLongPress = {() => self.onLongPress(objComment._id)}
onClickUpVote = {() => self.onPressUpvoteOrDownvote('upvote',objComment._id)}
onClickDownVote = {() => self.onPressUpvoteOrDownvote('downvote',objComment._id)}
onPressReply = {() => self.onPressReply(objComment)}
openPopUp = {objComment.openPopUp}
userList={userList}
commentDet= {objComment}
        />
			)}
			renderHiddenRow={ data => (
				<View style={styles.hiddenSwiper}>
                                <View style={styles.hiddenSwiperItem}>
                                      <Text style={styles.thumsUpImageForNotif}>yes</Text>
  				</View>

				</View>
			)}
			leftOpenValue={240}
                    previewFirstRow={true}
		/>
  );

//******************************** Code End*************************************//
Is there any mistake in my code for previewFirstRow?
Please any one can help?

I got the problem.I forget to add previewOpenValue.After adding previewOpenValue ,it is working fine.
Thanks.


Update how-provisioning-works.md

Removed "Use" from the hyperlink "Use delta query to track changes in Microsoft Graph data" to suit the flow of the sentence in the following block:-
When Azure AD is the source system, the provisioning service uses the Use delta query to track changes in Microsoft Graph data to monitor users and groups. The provisioning service runs an initial cycle against the source system and target system, followed by periodic incremental cycles.

@Ajjos - thanks for this edit.

@Jak-MS my pleasure ☺


Save before deploy

Hi, would it be possibe to have option, which checks if the file to deploy is saved? And if not it would be automatically saved and then deployed.
SFTP plugin for ST has the same here: https://wbond.net/sublime_packages/sftp/settings#setting-save_before_upload
Thanks

@ondrejruzicka
This is a good feature for the new extension vscode-deploy-reloaded.
I will implement it there.

@ondrejruzicka
The feature is available since version 0.53.0 of vscode-deploy-reloaded now ... it is activated by default, you do not need to setup anything.


Ambari Installation Failure on HDP Sandbox 2.3 - Spring XD Shell Install

HDP 2.3 is coming. time to see its requirements
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.2/services/SPRINGXD/package/scripts/springxd_shell.py", line 39, in
SpringXdShell().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 216, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.2/services/SPRINGXD/package/scripts/springxd_shell.py", line 31, in install
self.configure(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.2/services/SPRINGXD/package/scripts/springxd_shell.py", line 34, in configure
import params
File "/var/lib/ambari-agent/cache/stacks/HDP/2.2/services/SPRINGXD/package/scripts/params.py", line 151, in
HdfsDirectory,
NameError: name 'HdfsDirectory' is not defined
Directory permissions
drwxrwxrwx   - hdfs   hdfs            0 2015-07-09 04:28 /user
[root@sandbox ~]# hadoop fs -ls -R /tmp/hadoop-yarn
drwxrwxrwx   - yarn hdfs          0 2015-07-12 05:47 /tmp/hadoop-yarn/staging
drwxrwxrwx   - yarn hdfs          0 2015-07-12 05:47 /tmp/hadoop-yarn/staging/history

The HDP 2.3 Technical Preview Sandbox uses Ambari 2.1(Build 781) according to the release notes. Our Ambari support is for 1.7.0, 1.7.1 and 2.0.1. Looks like we need to make some changes to accommodate Ambari 2.1 in a future release.

#11 provides a fix for supporting HDP2.3 and Ambari 2.1

I get this when trying to build on 2.2 stack on Ambari:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.2/services/SPRINGXD/package/scripts/springxd_shell.py", line 39, in
SpringXdShell().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.2/services/SPRINGXD/package/scripts/springxd_shell.py", line 31, in install
self.configure(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.2/services/SPRINGXD/package/scripts/springxd_shell.py", line 34, in configure
import params
File "/var/lib/ambari-agent/cache/stacks/HDP/2.2/services/SPRINGXD/package/scripts/params.py", line 151, in
HdfsDirectory,
NameError: name 'HdfsDirectory' is not defined
Following the install instructions on the Github page. What am I missing?

What version of Ambari? Our Ambari support works with 1.7.0, 1.7.1 and 2.0.1.


Camera not consistently working

Robot Model
Turtlebot4 Standard
ROS distro
Humble
Networking Configuration
Discovery Server
OS
Ubuntu 22.04
Built from source or installed?
Installed
Package version
Not sure what version it is
Type of issue
Camera
Expected behaviour
OAKD Camera to consistently publish images
Actual behaviour
I observed multiple issues:

The /oakd topics are not always consistently present when list the topics
The most common behavior I have observed is that the topic is present, but when I visualize it in Rviz, the preview just shows a blank image (despite the Turtlebot being undocked)
Sometimes, when I restart Rviz and the turtlebot, there is initial image that is shown in the Rviz, but it freezes at the same image even if I move the Turtlebot
When I attempt to echo the topic /oakd/rgb/preview/image_raw, I get the warning that "A message was lost !!!"

Error messages
No response
To Reproduce

Undock the turtlebot
ros2 launch turtlebot4_viz view_robot.launch.py

Other notes
No response

Hi there @xylhal
Thanks for reaching out.
"Sometimes, when I restart Rviz and the turtlebot, " after rebooting are you sshing in again and relaunching RVIZ?
Can you please provide the terminal outputs with any errors?
Thank you,
Rusty

Hi there @RustyCPR
I'm actually not launching rviz from the RPi. I am running everything remotely from another machine. So, I didn't do any ssh. What I meant by restarting rviz and turtlebot simply means physically restarting the turtlebot and creating a new terminal on my remote machine to start rviz.
I've attached 5 images below.

Screenshot from view_robot.launch.py

Screenshot from Rviz when view_robot.launch.py is running in the terminal

Screenshot from view_model.launch.py

Screenshot from Rviz when view_model.launch.py is running in the terminal

Terminal when I echo the camera topic

Please let me know how else can I debug this?

I would add that I realize sometimes the terminal does print some messages when echoing the topic, but the Rviz remains blank.

Hi @xylhal
Run: ros2 launch turtlebot4_viz view_model.launch.py if your not using mapping
Point 5 image with error "A message was lost!!!" What type of wifi network are you running?
If you're on a 2.4GHz network can you try a faster 5GHz?
Regards,
Rusty

Hi @RustyCPR
I was using 5 GHz all along, but the problem has mainly gone away, though I'm not sure why. I'm facing another issue now, which I will open in a separate issue.


Issues with KLayout version and multiple cell copies in GenISys BEAMER

We recently upgraded from version 7 to 8 and have encountered a few issues with our gds files. Initially, we weren't able to open the generated gds files with older version of klayout. Appears the gds files only work with latest klayout version.
Secondly, when importing our GDS files into GenISys BEAMER software in order to process the files for EBL we're seeing two copies of each of the cells which make up the gds. One cell is shown as expected in the right locations. But we also see copies of all the components which make up those cells placed at (0,0). Interestingly these cell copies placed at (0,0) don't show up in klayout.
Given this it seems there is maybe a bug with the handling of cells which is related to both the klayout issue and the multiple cell copies.
GDS in KLayout

View in BEAMER

Code below was used to generate the gds file. Running gdsfactory version 8.8.5 and Python 3.12.7 on Windows WSL with Ubuntu
import gdsfactory as gf

@gf.cell
def spiral_gc(**kwargs):
    """Returns spiral with Grating Couplers."""
    c = gf.components.spiral_double(**kwargs)
    c = gf.routing.add_fiber_array(c)
    c.info["doe"] = "spirals_sc"  # strip Cband spirals
    c.info["measurement"] = "optical_spectrum"
    c.info["analysis"] = "[power_envelope]"
    c.info["analysis_parameters"] = "[]"
    c.info["ports_optical"] = 4
    c.info["ports_electrical"] = 0
    c.info.update(kwargs)
    return c

if __name__ == "__main__":
    sweep = [spiral_gc(number_of_loops=n) for n in [3,5,7]]
    m = gf.pack(sweep)
    c = m[0]

    c.write_gds()

Pretty sure this is BEAMER mishandling or partially misinterpreting klayout metadata.
please try with c.write_gds(with_metadata=False) and open that in BEAMER.
Wrt klayout, yes that's partially true. It works with anything > 0.29 for sure, and I am reasonably sure it works with anything released in the last year, i.e. >= 0.28.13

Hi Sebastian, thanks for the reply.
Looks like you're correct, without the metadata it imports correctly into BEAMER.


CASMTRIAGE-4307: Re-add missing cfs-state-reporter RPMs

Summary and Scope
This long standing RPM must have been accidentally stripped from our RPM manifest; it is required to be installed on a number of different downstream managed products. When it is not provided, associated configuration tasks that aim to install it into respective images ends up failing. We do not know by which process they were accidentally removed.
Issues and Related PRs

Resolves CASMTRIAGE-4307
Change will also be needed in other CSM manifest releases where it has been removed (TBD).

Closing this PR without merge: The correct solution is to leverage ONLY the cfs-state-reporter provided by SP4; however, the SP4 repositories need to be pulled in as part of WAR documented in https://jira-pro.its.hpecorp.net:8443/browse/CASMINST-5314. Associated csm-config has been fixed in the correct 1.3 release branch to reference csm-config 1.14.0.


MongoDb, User, IAuditable and Tests implementation added.

This PR introduces a series of improvements and features to enhance the audit logging functionality for entities implementing the IAuditable interface. The main changes include:

MongoDB Integration for Audit Logs

Implemented MongoDB as the backend for storing audit logs, ensuring scalability and reliability.

Selective Entity Auditing

Configured the audit logging system to work exclusively with entities implementing the IAuditable interface. This ensures that only the relevant entities are logged, reducing unnecessary overhead.

Change Tracking Enhancements

Introduced a parameter to ignore logging for fields that have not changed during an update operation. This reduces noise in the audit logs and focuses on meaningful changes.

User Information Logging

Integrated IHttpContextAccessor to capture and log the user information performing the changes. This includes details like the user's identity, enhancing traceability and accountability.

Database Migrations for Audit Log Storage

Added the necessary database migrations to support for storing audit logs.

Key Benefits:

Improved clarity and focus in audit logs by excluding unchanged fields.

Enhanced traceability with user information logged for each operation.

Optimized auditing system by restricting it to IAuditable entities.

Scalability with MongoDB as the audit log backend.

Testing & Validation:

Verified the new audit logging functionality with various IAuditable entities.

Tested the change tracking parameter to ensure unchanged fields are ignored as expected.

Confirmed successful integration of user information from IHttpContextAccessor.

Validated the database migrations for compatibility and correctness.

Please review the changes and let me know if additional refinements or documentation are needed.

Hey @victorioustr, while reviewing your PR, I'd suggest the following code changes:
👉 Code Suggestion for #3

https://github.com/furkandeveloper/AuditSharp/pull/3

You can also review and apply these suggestions locally on your machine.
Learn more about GitKraken Code Suggest

Code Suggest liberates your code reviews from GitHub's restrictive, comment-only feedback style. As simple as suggesting changes in a Google-doc, provide real code suggestions from where you code, e.g. your IDE, and on anything in your project — not just on the lines of code changed in the PR.

Join your team on GitKraken to speed up PR review.

Looks great. There are quite a few changes. It may take me a while to check them all. Thanks for your input. I'll take care of it as soon as possible. 🚀 @victorioustr


not working after installing fd-find

i'm not sure but I occurring this problem after sync the lazy.nvim, because previous day I can do the rename and moving file stuff, hopefully you can help me resolve this issue. your plugin really help me.
<EMAIL_ADDRESS>lazy as package manager
what I do is just copy (x) and paste (p) file into nested folder
here's the debug log:
[DEBUG Tue 21 Mar 2023 10:02:23 AM WIB] ...im-lsp-file-operations/lua/lsp-file-operations/utils.lua:66: Path did match the filter /home/nandafirmans/Development/dataon/fe-micro-standard/src/lib/components/other/date-time-picker/DateTimePickerMobileCarousel.js {
  pattern = {
    glob = "**/*.{ts,js,jsx,tsx,mjs,mts,cjs,cts}",
    matches = "file"
  },
  scheme = "file"
}
[DEBUG Tue 21 Mar 2023 10:02:23 AM WIB] ...-file-operations/lua/lsp-file-operations/will-rename.lua:7: going to get workspace edit
[DEBUG Tue 21 Mar 2023 10:02:23 AM WIB] ...-file-operations/lua/lsp-file-operations/will-rename.lua:16: Sending workspace/willRenameFiles request {
  files = { {
      newUri = "file:///home/nandafirmans/Development/dataon/fe-micro-standard/src/lib/components/other/date-time-picker/context/DateTimePickerMobileCarousel.js",
      oldUri = "file:///home/nandafirmans/Development/dataon/fe-micro-standard/src/lib/components/other/date-time-picker/DateTimePickerMobileCarousel.js"
    } }
}
[DEBUG Tue 21 Mar 2023 10:02:48 AM WIB] ...-file-operations/lua/lsp-file-operations/will-rename.lua:19: Got workspace/willRenameFiles response nil```

after uninstalling fd-find I'm glad it's working again


Automator: update istio/api@master dependency in istio/istio@master

Generated by Automator - 2021-09-10T21:09:10+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
9c7329a5c33cd52f3197b4ba4ad8ce3263d4b19d
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

https://github.com/istio/istio/pull/35146