Darkness doesn't sync with players if not on GM's screen. [partial solution]

Basically if a player moves away from the GM's currently viewed scene then the darkness level for the player's new scene will not change if the GM adjusts one of the time/moon/sun settings.

Yeah, that's expected behaviour; it's not practical to push database updates to the Darkness value for all scenes on every change, just the scene currently being viewed by the GM.

Fair enough, it doesnt seem there is an easy way to get a reference to each player's/user's currently viewed scenes either, without looping through every scene and token. Oh well. Thanks for the reply.

Oh, i actually did find a way to do this that only targets currently viewed scenes if anyone fancies a go.
Replace the the following code in the `\user_data\Data\modules\smalltime\scripts\smalltime.js' file at line 1819:
original
1819    if (game.user.isGM) {
1820           await currentScene.update({ darkness: darknessValue });
1821    } else {

replace with the following
1819     let usersViewingScenes = Array.from(game.users.values()).filter(function (emp) { return emp.viewedScene !== null });
1820     if (game.user.isGM) {
1821         for (let i = 0; i < usersViewingScenes.length; i++) {
1822          await game.scenes.get(usersViewingScenes[i].viewedScene).update({ darkness: darknessValue });
1823         }
1824         //await currentScene.update({ darkness: darknessValue });
1825     } else {

This will likely stress out your network connection a little more sooo, use at your own peril.


Game runs in 1440p using borderless gaming, but app detects normal window size

I'm using windowed borderless gaming to force the game to run windowed fullscreen without black borders. this means the full resolution is 2560x1440, however, LLK-UI detects 1408 vertical pixels, which is wrong. I also can't select 1440p as custom resolution, only 1200p.
anyway I can tell it that my resolution is correct?

Can you send me a screenshot of what that looks like? Do you mean you so can see the desktop underneath?

If you do mean that, you can set that up in my tool as well.

I'll be in bed soon, so there won't be any response for now. I don't understand the part "without black borders". So you're trying to run 2560x1440 on what kind of monitor?

Hi, no problem, get some sleep!
So here's my setup. I run a Samsung Odyssey G9 32:9 5120x1440 screen. However, when I run the game in windowed fullscreen, I get black borders on the side. To avoid this, I run the game in windowed mode and use an app called "Borderless gaming" that forces the game to run without borders. This makes it so that I don't have the title bar and borders around my game and it runs perfectly in 2560x1440p. I've attached a screenshot on how this looks, including the in-game settings screen that shows the resolution.

as you cans ee, the game runs at 12560x1440p, a supported resolution. However, when I then run the AHK script, it says this:

as you can see, the game says it detects 1408 pixels, but in reality it's running in 1440p.

Gotcha, you're running a 32:9 monitor. The resolution detection gets thrown off because it first checks the window-mode settings as configured in the game's settings menu. Since it has to be set to "windowed" for your usecase, the script assumes that the measured 1440 pixels include window borders.
I guess you can trick the script by creating a copy of your PoE-config file ("production_config.ini", located in the folder where lootfilters are), and editing it to include fullscreen=false and borderless_windowed_fullscreen=true. Then save it, and edit the script's config file (ini\config.ini). There's a line 'PoE config-file="X:\yadda yadda\Path of Exile\production_config.ini"` that can be changed so that the script reads a different PoE config-file. This is usually for people who run PoE as a different Windows user-account, which would make the script read the wrong config-file.

Thank you! this works great!


Attempting to install the SQS controller, complains about missing docker image

I am using the helm chart to install the SQS controller. I get the deployment with the following image repo url:
public.ecr.aws/aws-controllers-k8s/sqs-controller:v0.0.0-non-release-version
...
image: public.ecr.aws/aws-controllers-k8s/sqs-controller:v0.0.0-non-release-version
imagePullPolicy: IfNotPresent
name: controller
...
I Get an error about missing image. Looks like the problem is not with an incorrect image tag, looks like sqs-controller is missing from the docker repo.
When I test this repo by doing:
$ docker pull public.ecr.aws/aws-controllers-k8s/sqs-controller:v0.0.0-non-release-version
Error response from daemon: repository public.ecr.aws/aws-controllers-k8s/sqs-controller not found: name unknown: The
repository with name 'sqs-controller' does not exist in the registry with id 'aws-controllers-k8s'
At the same time, if I test the RDS controller docker image:
docker pull public.ecr.aws/aws-controllers-k8s/rds-controller:v0.0.24
I get an image with no problems
I wonder if I am doing anything incorrectly, or there is a known issue about missing SQS image?

Thanks Vijay.
I believe, I followed all instructions and configured everything correctly. However getting the following error when attempting to build:
$ pwd
/home/igorkaplan/git/sqs-controller/code-generator
$ echo $SERVICE
sqs
echo $SERVICE_CONTROLLER_SOURCE_PATH
/home/igorkaplan/git/sqs-controller
$ make build-controller-image sqs
building 'sqs' controller docker image with tag: aws-controllers-k8s:sqs-8b2d5b1
git commit: 8b2d5b1c257da21dcebeeb659fabbec88e0fc429
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 38B 0.0s done
#2 DONE 0.0s
#4 [internal] load metadata for public.ecr.aws/bitnami/golang:1.17
#4 DONE 0.3s
#3 [internal] load metadata for public.ecr.aws/eks-distro-build-tooling/eks...
#3 DONE 0.3s
#6 [builder 1/11] FROM @.***:f5e976cce2...
#6 DONE 0.0s
#8 [internal] load build context
#8 DONE 0.0s
#5 [stage-1 1/3] FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-mi...
#5 resolve @.***:defed268f03173500174d285a8bbb5dd98d31b5f8f894736e936740c2953baff done
#5 ...
#8 [internal] load build context
#8 transferring context: 2B done
#8 DONE 0.0s
#7 [builder 2/11] WORKDIR /github.com/aws-controllers-k8s/sqs-controller
#7 CACHED
#9 [builder 3/11] COPY sqs-controller/LICENSE /github.com/aws-controllers-k...
#9 ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount284083836/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount284083836/sqs-controller: no such file or directory
#10 [builder 4/11] COPY sqs-controller/ATTRIBUTION.md /github.com/aws-contro...
#10 ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount020668331/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount020668331/sqs-controller: no such file or directory
#11 [builder 5/11] COPY sqs-controller/go.mod /github.com/aws-controllers-k8...
#11 ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount653554958/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount653554958/sqs-controller: no such file or directory
#13 [builder 7/11] RUN go mod download
#13 CACHED
#16 [builder 10/11] COPY sqs-controller/pkg /github.com/aws-controllers-k8s/...
#16 ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount198867221/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount198867221/sqs-controller: no such file or directory
#15 [builder 9/11] COPY sqs-controller/cmd /github.com/aws-controllers-k8s/s...
#15 ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount050469232/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount050469232/sqs-controller: no such file or directory
#14 [builder 8/11] COPY sqs-controller/apis /github.com/aws-controllers-k8s/...
#14 ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount255491087/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount255491087/sqs-controller: no such file or directory
#12 [builder 6/11] COPY sqs-controller/go.sum /github.com/aws-controllers-k8...
#12 ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount095504153/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount095504153/sqs-controller: no such file or directory
#6 [builder 1/11] FROM @.***:f5e976cce2...
#6 resolve @.***:f5e976cce25b88a9308d64589f3d18680f9190d043e6109903c1dd272165d26c done
#6 CANCELED
#5 [stage-1 1/3] FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-mi...
#5 sha256:defed268f03173500174d285a8bbb5dd98d31b5f8f894736e936740c2953baff 703B / 703B done
#5 sha256:524e12ba594336d3f759726a1235400d966f5f781e78f0a378b9d8abf68b6744 505B / 505B done
#5 sha256:6f9a39e74d14442d5964d51864af0fa06485db9e39a08f408db7d04c8120e820 892B / 892B done
#5 CANCELED

[builder 3/11] COPY sqs-controller/LICENSE /github.com/aws-controllers-k8s/sqs-controller/LICENSE:

[builder 4/11] COPY sqs-controller/ATTRIBUTION.md /github.com/aws-controllers-k8s/sqs-controller/ATTRIBUTION.md:

[builder 5/11] COPY sqs-controller/go.mod /github.com/aws-controllers-k8s/sqs-controller/go.mod:

[builder 6/11] COPY sqs-controller/go.sum /github.com/aws-controllers-k8s/sqs-controller/go.sum:

[builder 8/11] COPY sqs-controller/apis /github.com/aws-controllers-k8s/sqs-controller/apis:

[builder 9/11] COPY sqs-controller/cmd /github.com/aws-controllers-k8s/sqs-controller/cmd:

[builder 10/11] COPY sqs-controller/pkg /github.com/aws-controllers-k8s/sqs-controller/pkg:

failed to solve with frontend dockerfile.v0: failed to build LLB: failed to compute cache key: failed to walk /var/lib/docker/tmp/buildkit-mount198867221/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount198867221/sqs-controller: no such file or directory
make: *** [Makefile:49: build-controller-image] Error 1
From: Vijay Tripathi @.>
Sent: Tuesday, May 31, 2022 2:37 PM
To: aws-controllers-k8s/community @.>
Cc: igorkaplan55 @.>; Mention @.>
Subject: Re: [aws-controllers-k8s/community] Attempting to install the SQS controller, complains about missing docker image (Issue #1306)
From ACK code-generator repo, you can execute make build-controller-image target  https://github.com/aws-controllers-k8s/code-generator/blob/main/Makefile#L47 and it will create a local controller image that you can use within the sqs controller helm chart which should be present inside helm directory of sqs-controller repo.
—
Reply to this email directly, view it on GitHub https://github.com/aws-controllers-k8s/community/issues/1306#issuecomment-1142516525 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWKDWKCV2KAPZBPVVDR6WHDVMZL5PANCNFSM5XONS4YQ .
You are receiving this because you were mentioned.Message ID: @.***>

ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount284083836/sqs-controller: lstat /var/lib/docker/tmp/buildkit-mount284083836/sqs-controller: no such file or directory

HI @igorkaplan55 , are you still facing this error? This looks like it's spawning from your local docker configuration.

Closing this issue. Please reopen if you are still facing these errors.


enable backup retention

trying to push the work of PR #203
Closes #199 #203

Thanks for the PR! 🚀
Unfortunately it looks like some of our CI checks failed. See the Contributing Guide for details.

⚠check_documentation
The documentation needs to be regenerated. Please run make generate_docs.

Checking for documentation generation
diff -r '--exclude=.terraform' '--exclude=.kitchen' '--exclude=.git' '--exclude=autogen' '--exclude=*.tfvars' /workspace/modules/mssql/README.md /tmp/tmp.n8PWnwt3qc/generate_docs/workspace/modules/mssql/README.md
17c17
< | backup\_configuration | The database backup configuration. |
object({
    binary_log_enabled             = bool
    enabled                        = bool
    point_in_time_recovery_enabled = bool
    start_time                     = string
  })
 |
{
  "binary_log_enabled": null,
  "enabled": false,
  "point_in_time_recovery_enabled": null,
  "start_time": null
}
 | no |
---
> | backup\_configuration | The database backup configuration. |
object({
    binary_log_enabled             = bool
    enabled                        = bool
    point_in_time_recovery_enabled = bool
    start_time                     = string
    transaction_log_retention_days = string
    backup_retention_settings = object({
      retained_backups = string
      retention_unit   = string
    })
  })
 |
{
  "backup_retention_settings": null,
  "binary_log_enabled": null,
  "enabled": false,
  "point_in_time_recovery_enabled": null,
  "start_time": null,
  "transaction_log_retention_days": null
}
 | no |
diff -r '--exclude=.terraform' '--exclude=.kitchen' '--exclude=.git' '--exclude=autogen' '--exclude=*.tfvars' /workspace/modules/mysql/README.md /tmp/tmp.n8PWnwt3qc/generate_docs/workspace/modules/mysql/README.md
15c15
< | backup\_configuration | The backup\_configuration settings subblock for the database setings |
object({
    binary_log_enabled = bool
    enabled            = bool
    start_time         = string
    location           = string
  })
 |
{
  "binary_log_enabled": false,
  "enabled": false,
  "location": null,
  "start_time": null
}
 | no |
---
> | backup\_configuration | The backup\_configuration settings subblock for the database setings |
object({
    binary_log_enabled             = bool
    enabled                        = bool
    start_time                     = string
    location                       = string
    transaction_log_retention_days = string
    backup_retention_settings = object({
      retained_backups = string
      retention_unit   = string
    })
  })
 |
{
  "backup_retention_settings": null,
  "binary_log_enabled": false,
  "enabled": false,
  "location": null,
  "start_time": null,
  "transaction_log_retention_days": null
}
 | no |
diff -r '--exclude=.terraform' '--exclude=.kitchen' '--exclude=.git' '--exclude=autogen' '--exclude=*.tfvars' /workspace/modules/postgresql/README.md /tmp/tmp.n8PWnwt3qc/generate_docs/workspace/modules/postgresql/README.md
14c14
< | backup\_configuration | The backup\_configuration settings subblock for the database setings |
object({
    enabled                        = bool
    start_time                     = string
    location                       = string
    point_in_time_recovery_enabled = bool
  })
 |
{
  "enabled": false,
  "location": null,
  "point_in_time_recovery_enabled": false,
  "start_time": null
}
 | no |
---
> | backup\_configuration | The backup\_configuration settings subblock for the database setings |
object({
    enabled                        = bool
    start_time                     = string
    location                       = string
    point_in_time_recovery_enabled = bool
    transaction_log_retention_days = string
    backup_retention_settings = object({
      retained_backups = string
      retention_unit   = string
    })
  })
 |
{
  "backup_retention_settings": null,
  "enabled": false,
  "location": null,
  "point_in_time_recovery_enabled": false,
  "start_time": null,
  "transaction_log_retention_days": null
}
 | no |
Error: Documentation generation has not been run, please run the
'make docker_generate_docs' command and commit the above changes.

⚠check_terraform
Failed Terraform check. More details below.

Running terraform fmt
Running terraform validate
terraform_validate ./examples/mssql-public
Error:
Unsupported argument
 on ../../modules/mssql/main.tf line 63, in resource "google_sql_database_instance" "default":
 63:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./examples/mysql-ha
Error:
Invalid value for module argument
 on main.tf line 81, in module "mysql":
 81:   backup_configuration =
{
 82:
   enabled            = true
 83:
   binary_log_enabled = true
 84:
   start_time         = "20:55"
 85:
   location           = null
 86:
 }
The given value is not suitable for child module variable
"backup_configuration" defined at ../../modules/mysql/variables.tf:134,1-32:
attributes "backup_retention_settings" and "transaction_log_retention_days"
are required.
terraform_validate ./examples/mysql-private
Error:
Invalid value for module argument
 on ../../modules/safer_mysql/main.tf line 43, in module "safer_mysql":
 43:   backup_configuration =
var.backup_configuration
The given value is not suitable for child module variable
"backup_configuration" defined at ../../modules/mysql/variables.tf:134,1-32:
attributes "backup_retention_settings" and "transaction_log_retention_days"
are required.
terraform_validate ./examples/mysql-public
Error:
Unsupported argument
 on ../../modules/mysql/main.tf line 64, in resource "google_sql_database_instance" "default":
 64:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./examples/postgresql-ha
Error:
Invalid value for module argument
 on main.tf line 79, in module "pg":
 79:   backup_configuration =
{
 80:
   enabled                        = true
 81:
   start_time                     = "20:55"
 82:
   location                       = null
 83:
   point_in_time_recovery_enabled = false
 84:
 }
The given value is not suitable for child module variable
"backup_configuration" defined at
../../modules/postgresql/variables.tf:125,1-32: attributes
"backup_retention_settings" and "transaction_log_retention_days" are required.
terraform_validate ./examples/postgresql-public
Error:
Unsupported argument
 on ../../modules/postgresql/main.tf line 64, in resource "google_sql_database_instance" "default":
 64:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./examples/postgresql-public-iam
Error:
Unsupported argument
 on ../../modules/postgresql/main.tf line 64, in resource "google_sql_database_instance" "default":
 64:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./modules/mssql
Error:
Unsupported argument
 on main.tf line 63, in resource "google_sql_database_instance" "default":
 63:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./modules/mysql
Error:
Unsupported argument
 on main.tf line 64, in resource "google_sql_database_instance" "default":
 64:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./modules/postgresql
Error:
Unsupported argument
 on main.tf line 64, in resource "google_sql_database_instance" "default":
 64:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./modules/private_service_access
Success!
The configuration is valid.
terraform_validate ./modules/safer_mysql
Error:
Invalid value for module argument
 on main.tf line 43, in module "safer_mysql":
 43:   backup_configuration =
var.backup_configuration
The given value is not suitable for child module variable
"backup_configuration" defined at ../mysql/variables.tf:134,1-32: attributes
"backup_retention_settings" and "transaction_log_retention_days" are required.
terraform_validate ./test/fixtures/mssql-ha
Error:
Unsupported argument
 on ../../../modules/mssql/main.tf line 63, in resource "google_sql_database_instance" "default":
 63:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./test/fixtures/mssql-public
Error:
Unsupported argument
 on ../../../modules/mssql/main.tf line 63, in resource "google_sql_database_instance" "default":
 63:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./test/fixtures/mysql-ha
Error:
Invalid value for module argument
 on ../../../examples/mysql-ha/main.tf line 81, in module "mysql":
 81:   backup_configuration =
{
 82:
   enabled            = true
 83:
   binary_log_enabled = true
 84:
   start_time         = "20:55"
 85:
   location           = null
 86:
 }
The given value is not suitable for child module variable
"backup_configuration" defined at
../../../modules/mysql/variables.tf:134,1-32: attributes
"backup_retention_settings" and "transaction_log_retention_days" are required.
terraform_validate ./test/fixtures/mysql-private
Error:
Invalid value for module argument
 on ../../../modules/safer_mysql/main.tf line 43, in module "safer_mysql":
 43:   backup_configuration =
var.backup_configuration
The given value is not suitable for child module variable
"backup_configuration" defined at
../../../modules/mysql/variables.tf:134,1-32: attributes
"backup_retention_settings" and "transaction_log_retention_days" are required.
terraform_validate ./test/fixtures/mysql-public
Error:
Unsupported argument
 on ../../../modules/mysql/main.tf line 64, in resource "google_sql_database_instance" "default":
 64:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./test/fixtures/postgresql-ha
Error:
Invalid value for module argument
 on ../../../examples/postgresql-ha/main.tf line 79, in module "pg":
 79:   backup_configuration =
{
 80:
   enabled                        = true
 81:
   start_time                     = "20:55"
 82:
   location                       = null
 83:
   point_in_time_recovery_enabled = false
 84:
 }
The given value is not suitable for child module variable
"backup_configuration" defined at
../../../modules/postgresql/variables.tf:125,1-32: attributes
"backup_retention_settings" and "transaction_log_retention_days" are required.
terraform_validate ./test/fixtures/postgresql-public
Error:
Unsupported argument
 on ../../../modules/postgresql/main.tf line 64, in resource "google_sql_database_instance" "default":
 64:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./test/fixtures/postgresql-public-iam
Error:
Unsupported argument
 on ../../../modules/postgresql/main.tf line 64, in resource "google_sql_database_instance" "default":
 64:
backup_retention_settings
     = lookup(backup_configuration.value, "backup_retention_settings", null)
An argument named "backup_retention_settings" is not expected here. Did you
mean to define a block of type "backup_retention_settings"?
terraform_validate ./test/setup
Success!
The configuration is valid.


iso4 compatibility with module and project template v2

This ticket consists of two parts, outlined below.
project template compatibility
Modules v2 has introduced multiple repo types. Previously all repos were of type "git", while for iso5+ repos of type "package" are possible as well. The project template will include one such repo. This means iso4 needs to be compatible with both the new format and the new type (only in the sense that it should not break, iso4 should not actually use repos of type "package"). Iso4 should raise a warning for repos of type "package" but otherwise ignore them, and accept explicit specification of the git type, instead of failing on the new syntax.
The new syntax was introduced in #3068 (inmanta.module.ProjectMetadata) but might have received some changes since.
module template compatibility
The module template will default to v2. A v1 branch should be created on the module template repo. The iso4 documentation should be updated to add --checkout v1 to the cookiecutter command. An upgrade note should be added in the changelog.

All tasks seem to have been completed.


Why there isn't a picture or car in DreamView

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 14.04):
Apollo installed from (source or binary):
Apollo version (1.0, 1.5, 2.0, 2.5, 3.0):

Steps to reproduce the issue:

Please use bullet points and include as much details as possible:

Supporting materials (screenshots, command lines, code/script snippets):

I'v compiled the project as the tutorial told me: bash docker/script/dev……but  at the DreamView page http://localhost:8888/  there isn't an animation inside .But it works few days ago and these days  it turns bad.How could solve this problem .I check the log file "/home/apollo/apollo/data/log/roscore.out"  it print Couldn't find an AF_INET address for [in_release_docker] what does it mean?   I'm going  insane！！！
Here is the same question link by me https://github.com/ApolloAuto/apollo/issues/5991

The command rosbag play demo2.0.bag   runs normally

@pancumtneu Can you please check this document https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/Dreamview_FAQs.md? You will be able to find some most common Dreamview related issues along with how to debug them.

@pancumtneu Can you please check this document https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/Dreamview_FAQs.md? You will be able to find some most common Dreamview related issues along with how to debug them.

Thank you for your answer！ I have solved the problem.I miss a important procedure "bash docker/scripts/release_into.sh" which is referred to in the link you provided .But the command isn't emerged in previous tutorials.    I run the "docer ps" and finding that the "rosbag play“ should run in  “apollo_release” image instead of "apollo_dev". I really don't know their difference so I think I have to study the docker and ROS  .

@pancumtneu Can you please check this document https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/Dreamview_FAQs.md? You will be able to find some most common Dreamview related issues along with how to debug them.

By the way ，Are you Chinese?

@pancumtneu Can you please check this document https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/Dreamview_FAQs.md? You will be able to find some most common Dreamview related issues along with how to debug them.

By the way ，Are you Chinese?

Now, you can close this issue.


USB tethered iOS devices sometimes not found

xcdevice not showing USB tethered devices.  Seen occasionally on devicelab.  idevice_id -l shows the devices.
2020-03-24T11:46:29.894178: stdout: [  +28 ms] No devices found with name or id matching '0f13aa3f7f48d3fa92ab08691369138b0a4b7153'
2020-03-24T11:46:29.904620: stdout: [  +10 ms] "flutter drive" took 1,864ms.

$ flutter doctor -v

Building flutter tool...
[✓] Flutter (Channel master, v1.16.3-pre.13, on Mac OS X 10.15.3 19D76, locale en-US)
    • Flutter version 1.16.3-pre.13 at /Users/m/Projects/flutter
    • Framework revision c9323bdccd (19 minutes ago), 2020-03-24 11:34:57 -0700
    • Engine revision 2d42c74a34
    • Dart version 2.8.0 (build 2.8.0-dev.16.0 ba8baa46b4)

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

[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
    • Xcode at /Users/m/Applications/Xcode-11-4_2.app/Contents/Developer
    • Xcode 11.4, Build version 11N123k
    • CocoaPods version 1.9.0

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] IntelliJ IDEA Community Edition (version 2019.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 41.1.3
    • Dart plugin version 192.7402

[✓] VS Code (version 1.43.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.6.0

[✓] Connected device (1 available)
    • Jenn’s iPhone • d83d5bc53967baa0ee18626ba87b6254b2ab5418 • ios • iOS 13.4

• No issues found!

Also reported by @blasten

@jmagman : this is unfortunately happening again randomly with https://flutter-dashboard.appspot.com/#/build?taskFilter=flutter_gallery_sksl_warmup__transition_perf_e2e_ios32. Shall we further increase the timeout?

@liyuqian That's in a different spot.  The timeout would need to be added to flutter drive.


Why can't this plugin use SSH_AUTH_SOCK env variable?

Expected Behavior
I have an ssh agent started on my localhost (Linux), so there is env variable SSH_AUTH_SOCK, which is pointing to current valid ssh agent sockt. Plugin is supposed to use this well-known ENV variable!
 If I hadn't done this I would change sftp.json every time I restart my computer.
My private key is encrypted and there is no password authentication on remote host, so only authentication via ssh agent is suitable for me.
Specifications

Version: 1.2.8
Platform: vscode 1.25.1 on Linux Arch (recently updated)

Duplicate of #18
"agent": "$SSH_AUTH_SOCK"


Revert "Upgrade to nv15 (actors v7, fvm v0.8) (#1487)"

This reverts commit c2092863e33010373dba5a556c8402c596571a11.
Summary of changes
Changes introduced in this pull request:

reverts https://github.com/ChainSafe/forest/commit/c2092863e33010373dba5a556c8402c596571a11 . It was not reviewed and doesn't pass the CI. I will restore the original branch for a draft PR afterwards.

I would appreciate it if we put this PR on hold until I'm back next week.

Will re-open if necessary.


setValueSelected() doesn't change the value of the seekbar

i have a button that changes the value of the seekbar to a random number each time i click on it,
but that doesn't effect the seekbar, when i added invalidate() on the seekbar it changes the value but the indicator doesn't move to the correct position.
final BezierSeekBar brightnessSeekBar;         brightnessSeekBar = findViewById(R.id.xx);         Button bb = findViewById(R.id.bb);         bb.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View view) {                 brightnessSeekBar.setValueSelected(new Random().nextInt((300) + 1) -150);                 Log.d("TAG", "onClick: "+brightnessSeekBar.getValueSelected());                 brightnessSeekBar.invalidate();             }         });
thank you.

Hold on，let me check my code

Fixed at 1.0.3 ,


Add example bibtex entry

Add the example bibtex entry

@Ludee could you please check the access right? I recieved the following after trying to push to the server.

ERROR: Permission to htw-pv3/literature.git denied to nailend.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.


Crash occurs in case when use write_firrtl command for design with $memwr and $memrd cells.

Automated test case:
https://github.com/YosysHQ/yosys-tests/tree/master/backends/write_firrtl_mem
In case when I had $memwr cell in the design I had this report:
terminate called after throwing an instance of 'std::out_of_range'
what():  dict::at()
Aborted (core dumped)
The difference from #922 is that I don't use memory_collect command here.
Steps to reproduce the issue
top.v:
module top
(
	input [7:0] data_a,
	input [6:1] addr_a,
	input we_a, clk,
	output reg [7:0] q_a
);
	// Declare the RAM variable
	reg [7:0] ram[63:0];

	// Port A
	always @ (posedge clk)
	begin
		if (we_a)
		begin
			ram[addr_a] <= data_a;
			q_a <= data_a;
		end
			q_a <= ram[addr_a];
	end

endmodule

script:
read_verilog ../top.v
proc
memory_dff -nordff
opt_reduce
clean
write_firrtl firrtl.firrtl
Expected behavior
Firrtl backend successfully executed.
Actual behavior
yosys> write_firrtl f.f

Executing FIRRTL backend.

4.1. Executing PMUXTREE pass.
yosys> write_firrtl f.f

Executing FIRRTL backend.

5.1. Executing PMUXTREE pass.
terminate called after throwing an instance of 'std::out_of_range'
what():  dict::at()
Aborted (core dumped)

CC @ucbjrl

Thanks @SergeyDegtyar for the simple test case. I hope to have a fix in the very near future.


fix - max listeners on an emitter

[nodemon] watching 62 files
  pyski:database connecting db +0ms
  pyski:database connected +2s
  pyski:www listening::4141|ws server for /subscriptions +0ms
(node:8704) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 MATCH_FINISHED listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
POST /graphql 200 151.439 ms - 26

when I finish a game, I will get this warning:

which has a corresponding message in backend:
(node:23087) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 GAME_FINISHED listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit


Network Peering error in multi-subscription environment (worked in portal for multi-subscription and worked with code in a single subscription)

Error:
Module.solution.azurerm_virtual_network_peering.peering["eus2_hubvnet_TO_cus_hubvnet"]: Creation complete after 1m19s [id=/subscriptions/529659ac-3e4e-4aff-adc4-8c9eb3730988/resourceGroups/xejy-con-dev-hub-ntw-00-00-a-rg-vnet-e2/providers/Microsoft.Network/virtualNetworks/xejy-con-dev-hub-ntw-00-00-a-vnet-00-e2/virtualNetworkPeerings/xejy-con-dev-hub-ntw-00-00-a-peer-e2hch-e2]
╷
│ Error: network.VirtualNetworkPeeringsClient#CreateOrUpdate: Failure sending request: StatusCode=0 – Original Error: Code="ResourceGroupNotFound" Message="Resource group 'xejy-idm-dev-00-idm-00-mhb-a-rg-vnet-c1' could not be found."
│
│   with module.solution.azurerm_virtual_network_peering.peering["cus_identity_spoke1_TO_cus_hubvnet"],
│   on /home/vscode/.terraform.cache/modules/solution/networking.tf line 165, in resource "azurerm_virtual_network_peering" "peering":
│  165: resource "azurerm_virtual_network_peering" "peering" {
│
╵
Code:
eus2_mgmt_spoke1_TO_eus2_hubvnet = {
name = "con-dev-mgt-ntw-00-00-a-peer-mgs1eh-e2"
from = {
lz_key = "caf_level2_vnets_management"
output_key = "vnets"
vnet_key = "eus2_vnet_01"
}
to = {
  lz_key = "caf_level2_vnets_connectivity"
  output_key = "vnets"
  vnet_key = "eus2_vnet_01"
}

allow_virtual_network_access = true
allow_forwarded_traffic      = true
allow_gateway_transit        = false
use_remote_gateways          = false

}

@riteshmehta66 This is normal behavior. When you create a VNET peer you do source -> destination. You then need to switch the subscription context to create the bi-directional peer.

Create peer from hub to spoke
Switch to spoke subscription
Create peer from spoke to hub

The portal does that for you. Via powershell you can reference this article here it will do the exact same thing.
@arnaudlh @LaurentLesle I don't think there is much that can be done here for this issue

Yes. It worked closing the issue. Thanks!


What is the purpose of this template?

Maybe I'm just stupid, but what can you do with this integration? I cannot derive that from the description.

For me it was the following https://community.home-assistant.io/t/media-player-template/203062. So I had several switches that could control a receiver(by using ir commands) but then you would need to create a interface for all this switches. Now I can just create a new media player entity and use like mini-media-player and control my receiver.
Others have created a media_player entity out of the steam integration so he has a now playing feature in his lovelace.

Aha, clear. Cool, I will look into this in the future I guess. thanks!


Action Buttons do not show over flex View

Hello,
When splitting screen into different areas using flex, the Action Buttons do not display over the previous area. I tried to use zIndex without success. Removing the flex value make it work back again.
example:
<View style={{flex: 1}}>
    <View style={{flex:4}}>
        <Text> Main View</Text>
     </View>
     <View style={{flex:2}}>
        <ActionButton />
      </View>
  </View>

Area having flex size of 2 with  shows the main button but when you click on it, Action Buttons do not display over 1rst Area of flex size 4.
Thank you
Fabrice

yeah, you need to use  in the parent component (in your case the View with flex: 1). RNAB takes as much space as it can, in your example it takes the space of the View with flex:2.


Add Xin(Henry) Wang from Arm to the contributors list

Working on enablement of kubeflow on Arm platfrom (aarch64).
Merged PRs:

kubeflow/kubeflow#4438

kubeflow/examples#618

kubeflow/tf-operator#1098

kubeflow/kubeflow#4422

kubeflow/kfserving#507

kubeflow/katib#897

kubeflow/pipelines#2507

kubeflow/metadata#164

Issues Involved in:

kubeflow/kubeflow#2337

kubeflow/kfctl#99

Signed-off-by: Henry Wang<EMAIL_ADDRESS>

This change is

/cc @jlewi
Referecing the comment in kubeflow/issue#2337 for multi-platform enablement of kubeflow, could you please add me to the contributors list so that I can join the kubeflow slack channel for further discussion with the community and the powerpc developers? Thank you very much!

/lgtm
/approve


Replace linked_hash_set feature with runtime conf option

Now to enable sets client must explicitly call
starlark::linked_hash_set::global(env)

If that function is not called, set function and Set type are
unavailable , and technically user can provide custom set implementation.
linked_hash_set as feature is somewhat inconvenient:

{1, 2} could work or not work depending on compilation options,
and client Rust code has no easy way to ensure set is present
each additional feature increases increases maintenance cost
and produces problems like one fixed in #103

global_environment_with_extensions is a convenient shortcut to
enable both set and struct extensions.
REPL enables both set and struct (as before this diff when
feature is enabled).

Resubmitted as #110 without linked_hash_set crate dependency.


Fix README indentation.

This PR fixes some minor indentation issue in the README.

Thanks for the house keeping :)


Ingress Controller enforces a public frontend IP

Hi,
I'm getting the following error when deploying the AGIC with an existing Application Gateway.
F0123 12:16:24.827632       1 main.go:122] Got a fatal validation error on existing Application Gateway config. Please update Application Gateway or the controller's helm config. Error:A Public IP must be present in the Application Gateway FrontendIPConfiguration

My Application Gateway does not have a public ip. It's internal only. Why is the public frontend IP enforced in the validator?
See also:
https://docs.microsoft.com/en-us/azure/application-gateway/configuration-overview#front-end-ip

@mscatyao Thanks! We tried AppGW v2 and it enforced a public IP. We need private IP only mode for our AGs or public IP mode with the ability to lock it down. So we went for the Nginx Ingress Controller for the time being until our enterprise org. supports AppGW v2.


Support for evaluating the accuracy of the tracking

References:

https://github.com/skelobslab/JOVE_BVR_FootModelAndMarkerBased
https://www.jove.com/t/63535/biplanar-videoradiography-dataset-for-model-based-pose-estimation

Should this be a standalone module or be integrated as library code, similar to what I am doing with PR #12?

Might be easier to do stand alone (just like the import modules you created from matlab) and integrate later on if needed. My 0.02

TODO:

[ ] Support loading partial volumes, tracking data, and GT tracking data into Slicer.
[ ] Visualize the movement of the partial volumes.
[ ] Visualize the difference between the tracking data and GT data (see diagram above).

[ ] Models should be green iff the difference is within some tolerance (ie. 1mm or 2 deg).
[ ] Models should be red otherwise

[ ] Update the tutorial or create a new one to cover the usage of this module.
[ ] Update the Sample data to include GT tracking data.

[ ] Need to update the release in autoscoper main.
[ ] Need to update checksum verification in SA^M:
https://github.com/BrownBiomechanics/SlicerAutoscoperM/blob/13ae181309b949420dc06c1bac2f894d63f3a3f9/AutoscoperM/AutoscoperM.py#L104-L116

Just need to package the new sample data and append a new section to the tutorial, on how to use this module.

[ ]  using Partial Volume Femur and Tibia tif generated from Pvol, use the .tra files from @jdholt04 (to be uploaded v.1.4)


⚠ Bofrost.at has degraded performance

In c0f45fe, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1637 ms

Resolved: Bofrost.at performance has improved in 67c5eaa.


Provide an Operator for Dataverse

The current state-of-the art method for handling complex systems like Dataverse on Kubernetes is via the operator pattern.
Also, creating a custom resource descriptor (CRD) is a common way how to deploy components these days. This needs an operator to be understood by Kubernetes.
An operator could use some of the frameworks out there (Operator SDK, ...), but it is very tempting to create a Java-based software for this.
There are a few Java Kubernetes clients that support creating such things, but this might involve some more crafting than relying on the frameworks. Those on the other hand mostly support the Go language only, which is not very common in the Dataverse community.
An operator would need to handle cases like:

Deploy configuration changes when ConfigMaps
Do updates, trigger reindexes etc, depending on what update you are doing in your installation
...

As operators for Postgres and Solr already exist, those should be reused instead of creating our own. Packaging the complete thing as a system can (and should) still be done via tools like helm, kustomize et al. Those should deploy then the new CRDs and Operators instead of the current Deployments etc (those will be done by the controller)

This will be done in https://github.com/gdcc/dvopa. Please open issues there.


Bug: ts(2769) in vscode when mounting component

Bug Description:
I'm getting the following error in vscode in the HelloWorld.spec.ts:
No overload matches this call.
  The last overload gave the following error.
    Argument of type 'typeof import("/home/steve/temp/script_setup_test/node_modules/vue/dist/vue")' is not assignable to parameter of type 'ComponentOptionsWithObjectProps<Readonly<ComponentPropsOptions<Data>>, unknown, {}, ComputedOptions, {}, Record<string, any>, ComponentOptionsMixin, ComponentOptionsMixin, string, Readonly<...> & { ...; }, { ...; } | {}>'.
      Type 'typeof import("/home/steve/temp/script_setup_test/node_modules/vue/dist/vue")' is not assignable to type 'ComponentOptionsBase<Readonly<ExtractPropTypes<Readonly<ComponentPropsOptions<Data>>>> & { [x: `on${Capitalize<string>}`]: (ComponentOptionsMixin[Uncapitalize<Capitalize<string>>] extends null ? (...args: any[]) => any : (...args: ComponentOptionsMixin[Uncapitalize<Capitalize<string>>] extends (...args: infer P) => ...'.
        Types of property 'computed' are incompatible.
          Type '{ <T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions | undefined): ComputedRef<T>; <T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions | undefined): WritableComputedRef<...>; }' is not assignable to type 'ComputedOptions'.
            Index signature for type 'string' is missing in type '{ <T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions | undefined): ComputedRef<T>; <T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions | undefined): WritableComputedRef<...>; }'.ts(2769)
mount.d.ts(33, 25): The last overload is declared here.

Steps to Reproduce:
$ npm create vue@3
Vue.js - The Progressive JavaScript Framework

✔ Project name: … script_setup_test
✔ Add TypeScript? … No / Yes
✔ Add JSX Support? … No / Yes
✔ Add Vue Router for Single Page Application development? … No / Yes
✔ Add Pinia for state management? … No / Yes
✔ Add Vitest for Unit Testing? … No / Yes
✔ Add Cypress for End-to-End testing? … No / Yes
✔ Add ESLint for code quality? … No / Yes

Scaffolding project in /home/steve/temp/script_setup_test...

Done. Now run:

  cd script_setup_test
  npm install
  npm run dev

$ cd script_setup_test/
$ npm i

added 199 packages, and audited 200 packages in 14s

43 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
$ code .

Then open tests/HelloWorld.spec.ts and look at line 8:
    const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } })
Even though the above error is reported on the HelloWorld parameter, there is no error when running
npm run test:unit
The contents of the resulting project can be found at https://github.com/stevemandl/script_setup_test

Expected behavior

Mounting components in vscode does not report an error when there is no error in the code.
Related information:

@vue/test-utils version: 2.0.2
Vue version: 3.2.38
node version: v16.15.0
npm version: 8.5.5

Additional context

This I am also getting this error in other projects using vue-jest and @vue/test-utils 2.1.0.

Hi @stevemandl
I see no error in VS Code, and no error when I run npm run type-check.
Can you try to run npm run type-check and let us know if you see the same error? type-check executes vue-tsc/Volar on your project and should display the same error you have in VS Code.

Thanks @cexbrayat
No type-check errors are displayed, but vscode still displays the error as seen in the attached screenshot.

So this probably means Volar is not properly configured in your VS Code (as there are in fact no errors as you can see when running the type checking task)
Have you enabled "take over mode" as explained here https://github.com/johnsoncodehk/volar/discussions/471 ?

@stevemandl Did that fix your issue?


Wrong file name for module test configuration file

Also I'm not sure I understand. Should I replace the existing modules.cfg with modules-[test/prod].cfg or change the line exec modules-test.cfg in the existing modules.cfg with the one I want to use ?

Both sould work, on our side we replace the file by the one we want, but using a different exec should also work
Merged in https://github.com/SOZ-Faut-etre-Sub/SOZ-FiveM-Server/commit/624707f11f505b2a8cbefa9155f846a09cdf00f8
Thanks for your contribution


Consolidate SSL Protocol Settings and Enable TLS v1.2 by Default

Consolidate SSL Protocol Settings and Enable TLS v1.2 by Default #196

The SSL Settings from the security.conf file are commented
httpd-ssl.conf is patched to exclude everything but only include the SSLProtocol and cipher settings.
I tried cleaning minimal , but rest are mostly HTTPs and virtual host related settings and we never needed them by default
doc/answer page is updated to reflect 2) above.

I don't see any changes to server.conf. If the entry isn't removed from that file, then the changes to httpd-ssl.conf will have no effect.

@tst-ccamp It looks like your comments have been addressed.  I'm going to merge this, but you should take a look when you get a chance.


Write more tests!

There's a ton of String -> String crap going on in here. Going to need more tests to make sure it's right.

Working on some tests for various functions. Is it better to derive an Eq instance for Test to check functions which return a Test, or to apply some other function that returns a different type and check equality on that?

I don't understand what you mean. Could you clarify?

Yes, sorry. Suppose we want a test for mkTask. The problem is the Task type does not have Eq typeclass so we either need to add that to check a == b, or we can instead check f a = f b for some appropriate function f.
I'm just wondering if there is any reason not to give Task the Eq typeclass, or what generally is the best practice in such a situation.

Oh, I see what you mean. I think deriving Eq for the Task type makes perfect sense here.

Alright, I've got coveralls setup, and we're around 75% coverage for the whole project. I want to get this up to 90% before I close this :smile:


Translate /docs/concepts/services-networking/ingress-controllers/ into Japanese

This is a Feature Request

What would you like to be added
Translate /docs/concepts/services-networking/ingress-controllers/ into Japanese.
Why is this needed
This page has not been translated.
Comments
/language ja
/assign

/assign

/close


Pre-buffering of audio/video channels

Hi guys, this is rather a question not an issue.
Just made the AV live streaming working with a custom app, really great framework this is. Speaking for higher video framerates, a typical media player uses pre-buffering [100 ms ~ 1 sec].
Has anybody touched a relevant bit of GStreamer to enable this feature?
Thanks for any help.

What exactly are you trying to do? If you set a larger jitter buffer size on the receiving side media session then that will cause more buffering in the receiver as long as the video frames arrive in good time.

Reason: occasional flicker in 30 fps video so I am wondering what could be the cause.
Would be PROP_JITTER_BUFFER_LATENCY any useful to increase the jitter buffer size?

I suspect the issue is something else, possibly related to performance or or packet losses.
That was the property to which I was referring, yes.

Allowing 1000 ms to the jitter buffer reduced flickering significantly on poor networks. Also the changes in packet re-transmitting (commit a0a4adc09fed11ea7dd391ce5f1c15893c806cc4) improved the channel quality in my opinion.


enhancementUpdated the default setting of sys_log_mode in fe.conf for better performance

Proposed changes

Updated the default setting of sys_log_mode in fe.conf from NORMAL to ASYNC for better performance.

run buildall

run buildall

run buildall

Do not pick to 2.1 now, we should check it on master.


Remove enableReinitialize to avoid wiping data

The enableReinitialize property was causing forms to be reset. I initially added this flag this because I was having issues with the submitList updating. However, I think other changes to these components have made that unnecessary.
fixes #205

I'm getting a problem that I'm seeing in the UI via the form validation. When I attempt to submit a request via any modal form, it is telling me that no items have been selected even when I have selected items.

OK, give that another whirl. Updating Formik values once the form has been initialized is a bit of a PITA.

Yeah, this all looks good to me!


[BUG] Cluster View not properly reflecting the status of the nodes

Describe the bug
I'm running a 3-node cluster using docker

When I stop one of the containers (etcd1) I don't see that node as being down.
To Reproduce
Setup the cluster
$ HTTPIP=http://<YOUR_IP>
$ CLUSTER="etcd0=$HTTPIP:2380,etcd1=$HTTPIP:2480,etcd2=$HTTPIP:2580"
$ ARGS="etcd -listen-client-urls http://<IP_ADDRESS>:2379 -listen-peer-urls http://<IP_ADDRESS>:2380 -initial-cluster-state new -initial-cluster $CLUSTER"
$ IMG="quay.io/coreos/etcd:v3.4.14"
$ docker run -d -p 2379:2379 -p 2380:2380 --name etcd0 $IMG $ARGS -name etcd0 -advertise-peer-urls $HTTPIP:2380
$ docker run -d -p 2479:2379 -p 2380:2380 --name etcd1 $IMG $ARGS -name etcd1 -advertise-peer-urls $HTTPIP:2480
$ docker run -d -p 2579:2379 -p 2380:2380 --name etcd2 $IMG $ARGS -name etcd2 -advertise-peer-urls $HTTPIP:2580

It should look something like this

Open ETCD Manager and point to the cluster
Note Make sure to click on the Status button for each node in order to get the green check ✅

Stop one of the nodes
$ docker stop etcd2
$ docker ps

Go back to ETCD Manager and check the status again

Expected behavior
As described above, I'm expecting the etcd2 node to show as down or some sort of UI hint.
I'm currently in discovery mode checking on how etcd works, mainly aspects such as high availability (HA) and fault tolerance (FT). This means I could be missing some key / critical aspect as on how etcd works, specially around clustering?
Screenshots
Supplied above
Desktop (please complete the following information):

OS: Windows / WSL2 / Docker
OS version: Windows 10
ETCD manager version 1.2

Additional context
Add any other context about the problem here.

Thanks for reporting this. Yes  this has to be fixed. it'll be part of the next release.
I'll do it as soon as I can

Ezt nem teljesen értem Tamás.
Tamas Geschitz @.***> ezt írta (időpont: 2021. jún. 7.,
H, 19:37):

Thanks for reporting this. Yes this has to be fixed. it'll be part of the
next release.
I'll do it as soon as I can
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/gtamas/etcdmanager/issues/74#issuecomment-856132073,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAVYJF6TPEDNGSMAL2TWDILTRT7V3ANCNFSM4VCMFPMA
.

Egyenlore nem volt idom ezzel foglalkozni, de hamarosan talan lesz idon erre a projektre.
Addig is PR-eket is szivesen fogadok, ha valaki szeretne segiteni :) Csak kommenteljetek ide ha valakit erdekelne.

Currently I have little for this project but I will get back to it as soon as I can.
In the meantime, PRs are welcome :) If anyone wants to help, please contact me!. Comment below and mention me.
Thanks in advance!


Overflow issue in the Our values section

Description
##Description
Overflow issue in the Our values section,I want to work on this issue.
Screenshots

Additional information
No response

already in progress


implement the way to create custom materialized views on demand

ex. pass release number as parameter and then use data from the view for further comparison

This is handled by widget templates logic.


added note that the EPC is not supported; added curl command for auth…

…n access

Resolved https://github.com/datawire/ambassador-docs/issues/301


Zip Streams

Please add a method of the signature: EntryStream<K, V> EntryStream.zip(Stream keys, Stream values).  This will allow for zipping two streams together.  See this Stack Overflow question for more details.
http://stackoverflow.com/questions/17640754/zipping-streams-using-jdk8-with-lambda-java-util-stream-streams-zip

Thank you for proposal. I already thought about such feature and unfortunately again I don't like it. There are several reasons (probably partially the same which lead to removal of zip from JDK). First, zipped stream cannot be efficiently parallelized even if both original streams can. That's because original streams can split at different positions and they even don't have to report the splitting position. Second, even for non-short-circuiting operation you cannot use Spliterator.forEachRemaining internally. For some streams Spliterator.tryAdvance is much less efficient. Third, having parallel streams (where n-th element of the first stream corresponds to the n-th element of the second stream) actually smells. This might be reasonable in purely functional languages where tuples rule. But Java is still object-oriented language. If you have Stream<A> and Stream<B> and first A corresponds to the first B, how did you get such streams? Why don't you have Stream<AB> where AB is the object which encapsulates both A and B?
Finally we already have EntryStream.zip(List, List) and EntryStream.zip(A[], B[]) which are free of the first two problems. So new method would be useful for stream sources which are not arrays or random access lists. Also if you want to zip the list with indices (like zip(IntStream.range(0, list.size()).boxed(), list.stream())), then we already have EntryStream.of(List).
If you have some other practical use-cases when zipped stream is necessary and cannot be expressed with existing methods, please tell me. In general I tend to think that adding zip(Stream, Stream) may cause the overuse of such method instead of more efficient alternatives.

Because StreamEx is powerful, I am switching over to returning streams from methods and passing streams as arguments instead of using List.  In several situations, this avoids having to convert a stream into a List, return the List and then only to have the caller create a stream from the List.
My use case has a stream passed as an argument to a method.  The stream is going to be put into a Properties object which is then going to be stored on disk.  The keys are a combination of a prefix and the index.
private static final String RECENT_PREFIX = "recent.";
private static final int RECENT_LIMIT = 10;
private static void setRecent(Properties properties, StreamEx recent)
{
StreamEx keys;
long count;
  keys = IntStreamEx.
     range(0, RECENT_LIMIT).
     mapToObj(index -> RECENT_PREFIX + index);

  count = StreamUtils.
     zip(keys, recent).                                         // Creates an EntryStream<String, File>
     mapValues(File::getAbsolutePath).
     peekKeyValue(properties::setProperty).
     count();

  IntStreamEx.
     range((int) count, RECENT_LIMIT).
     mapToObj(index -> RECENT_PREFIX + index).
     forEach(properties::remove);

}
As you suggested, I could create a KeyFile object.  However, I am not sure how to create the keys while going through the recent stream.

While returning stream from the method is perfectly fine, passing it to the method is sometimes questionable as this limits the method implementation to use the passed stream only once. In this particular case passing the List looks more natural to me. Anyways having RECENT_LIMIT = 10 it's not a big deal to dump it to the list:
List<File> list = recent.limit(RECENT_LIMIT).toList();
int count = list.size();
EntryStream.of(list)
           .mapKeys(index -> RECENT_PREFIX + index)
           .mapValues(File::getAbsolutePath)
           .forKeyValue(properties::setProperty);

IntStreamEx.
range(count, RECENT_LIMIT).
mapToObj(index -> RECENT_PREFIX + index).
forEach(properties::remove);
In general do not try to do everything in the single pipeline. Sometimes it makes code harder to maintain and adds no value in terms of performance.
Ok, I'll rethink the zip feature, though I don't promise anything. Probably it should be StreamEx.zipWith instance method, so you can write keys.zipWith(recent).mapValues(...). There are many open questions like whether the resulting stream should be parallel, what should we do if streams have different length, can we perform some optimizations for SIZED/SUBSIZED sources and so on.
By the way your code is dangerous. Using peek with terminal count may fail in JDK-9 where count for sized stream does not traverse the input at all.

Thank you for the code suggestion.

whether the resulting stream should be parallel

When I was writing my implementation, I struggled with that too.  I think that depends if the source streams are parallel and if the implementation can be executed in parallel.
I am not sure how you are going to be able to have 2 threads pulling from 2 streams without getting the elements mixed in the wrong order.  For example, lets say Thread A pulls from the first stream.  Then, Thread B pulls from the first stream and the second stream.  Then, Thread A pulls from the second stream.  Now, both threads have mismatched elements.  Thread A should have pulled from the second stream before Thread B pulls from the second stream.
Splitting streams won’t work because we can’t force both split streams to have the same number of elements.
It turns out that I took the easy route and not necessarily the performant route.  I changed the streams to Iterators and then implemented an Iterator which pulls from both.  I then convert the Iterator back into a stream.  See this answer.  http://stackoverflow.com/questions/17640754/zipping-streams-using-jdk8-with-lambda-java-util-stream-streams-zip/32342172#32342172

what should we do if streams have different length

I see that the existing StreamEx.zip() methods throw an exception.  In my use case, that would be very tricky to get the stream lengths to match.
Consider simply stopping when either stream comes to the end.  Consider implementing zip(Stream first, Stream second) but also implement zip(Stream first, Stream second, Consumer extraFirst, Consumer extraSecond).  In the latter case, the extra elements are dumped into the consumers.

can we perform some optimizations for SIZED/SUBSIZED sources

You have a lot of good questions.  I am glad you are developing StreamEx and not me.  I would just plough ahead and miss a lot of important cases.  Please give zip stream a thought and let me know what you decide.  Your insights are very helpful.

Using peek with terminal count may fail in JDK-9 where count for sized stream does not traverse the input at all.

Scary!  That’s a great optimization but only if the intermediate operators allow for it.  I would think peek and filter would not allow for it.  Yet, map, skip and limit would allow for it.
-Nathan

The simple parallelization optimization would be to trySplit() both original streams if both are SUBSIZED and their size is exactly the same. If they happens to split at the same position, lucky-lucky, we can nicely split zipped stream as well. Otherwise we concatenate splitted parts back (I already have my own TailConcatSpliterator, see #55, so no need to meddle with Stream.concat) and fall-back to poor-man implementation (dumping parts of the stream into array). This optimization would work if both streams are created from ArrayList or array and perform only map/boxed/etc. operations upstream. Sometimes it would work with IntStream.range stream (depending on its exact size).
If streams split unevenly, but split-points are not too far from each other, it's possible to implement some sophisticated algorithm involving buffering (the buffer should be shared between two spliterators working in different threads). It's hard, but possible. Probably can be postponed.
If both input streams are SIZED, but not SUBSIZED, we can still use the size for more balanced poor-man splitting. This would still be better than spliteratorUnknownSize (which is the worst way to split actually).

Draft implementation without splitting is committed. I decided to ignore the longer stream tail. This seems to be quite expected behavior. At least you can zip the stream with indices using myStreamEx.zipWith(IntStreamEx.range(Integer.MAX_VALUE).boxed()) without knowing the exact size of initial stream. Well actually probably it would be good to implement separate EntryStream<Integer, T> withIndex() method with separate spliterator. It can nicely split for SIZED/SUBSIZED input unlike myStreamEx.zipWith(IntStreamEx.range(Integer.MAX_VALUE).boxed()).
I still optimize forEachRemaining if both inputs are SIZED: we reuse forEachRemaining of the shorter stream. And, of course, I report the resulting stream size if both inputs are SIZED.

I would think peek and filter would not allow for it. Yet, map, skip and limit would allow for it.

peek does not clear SIZED characteristic, but skip and limit clear it in current implementation (though this might change in future).
Also by the way beware of this technique:
final Iterable<T> iterable = () -> iterator;
return StreamSupport.stream(iterable.spliterator(), parallel);

It creates unordered stream!

Thank you for implementing this.

beware of this technique:

Before I encountered StreamEx, I would do exactly that to create a stream from an iterator when I couldn't figure out another way to create a stream.  Now, that I have the power of StreamEx, I use StreamEx.of(iterator).
I am truly grateful for StreamEx.  It provides the power and flexibility to really make streams more applicable in code.  Recently, I had to modify some code I wrote a while ago.  The original implementation used a for loop because the operations in the body couldn't be put into a Java 8 Stream.  With StreamEx, I was able re-implemented the for loop as a StreamEx!  This greatly simplified the code!

Targeted to version 0.5.5. Hopefully this feature will not be overused.


KDD should return a real BlockAffinity

Description

In #785 a new type was added to represent block affinities. This updates KDD to return that type.
Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

None required

This is required to get the confd tests passing in this PR: https://github.com/projectcalico/confd/pull/92

I think the test failure is a flake which should be fixed by this PR: https://github.com/projectcalico/libcalico-go/pull/822


Error Encountered: Invalid UTF-8 Encoding in YAML During Asset Import Process

Bug Description
When executing the command php please eloquent:import-assets, encountering an error related to invalid UTF-8 encoding in YAML while trying to import assets.
Steps to Reproduce

Run the command: php please eloquent:import-assets.
Answer 'yes' to import asset containers.
When prompted to import assets, answer 'yes' again.
Observe the error encountered during the asset import process.

Expected Behavior
Expect the asset import to proceed without encountering a YAML encoding error.
Error Details
Do you want to import asset containers? (yes/no) [no]:
 > yes

1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
Asset containers imported

Do you want to import assets? (yes/no) [no]:
 > yes

0/8765 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0%
Statamic\Yaml\ParseException

The YAML value does not appear to be valid UTF-8.

at storage/statamic/tmp/yaml/1000_7625b72c46.jpg:-1
    1▕ ����\JFIF\\�\�\\��\;CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 90
    2▕ ��\C\
    3▕

    4▕

    5▕

    6▕
    7▕

       ��\C
    8▕

    9▕ ����"\��\\\\\\\\\\\

Additional Details

Statamic Version: 4.21
Eloquent Driver Version: 3.0.0
PHP Version: 8.2.12

There has been a lot of changes to directory listing and imports at this PR:
https://github.com/statamic/eloquent-driver/pull/224
It should solve this issue too

@ryanmitchell
I tried the latest (v3.0.1) but I'm still facing the issue

Thanks. I plan to look into this further next week.

@ryanmitchell Any ideas on how I can try to resolve it from my end?

I've opened a PR here - let me know if this works for you: https://github.com/statamic/eloquent-driver/pull/227

@ryanmitchell Thanks so much. I tested your PR and after running php please eloquent:import-assets. it seems to have imported the media in DB. I will test further but for now it seems ok


When the remote server is actually 'localhost' we can behave better ...

Fixes #8285
Fixes #1551
Special case some scenarios to act like local when the server is 'localhost' or '<IP_ADDRESS>'
Also fix remote intellisense to work in those scenarios or in true remote.

Codecov Report

Merging #8527 (ba1abb9) into main (488474e) will increase coverage by 0%.
The diff coverage is 69%.

:exclamation: Current head ba1abb9 differs from pull request most recent head 5bfa8c9. Consider uploading reports for the commit 5bfa8c9 to get more accurate results

@@          Coverage Diff          @@
##            main   #8527   +/-   ##
=====================================
  Coverage     71%     72%
=====================================
  Files        378     378
  Lines      23985   23998   +13
  Branches    3692    3696    +4
=====================================
+ Hits       17269   17281   +12
- Misses      5223    5226    +3
+ Partials    1493    1491    -2

Impacted Files
Coverage Δ

...ence/notebook/intellisense/intellisenseProvider.ts
80% <0%> (-4%)
:arrow_down:

src/client/datascience/jupyter/kernels/kernel.ts
76% <50%> (+1%)
:arrow_up:

src/client/datascience/jupyter/kernels/types.ts
76% <50%> (-24%)
:arrow_down:

...atascience/jupyter/kernels/jupyterKernelService.ts
77% <100%> (ø)

.../datascience/kernel-launcher/remoteKernelFinder.ts
91% <100%> (+1%)
:arrow_up:

...datascience/telemetry/interpreterPackageTracker.ts
74% <100%> (-2%)
:arrow_down:

.../client/datascience/notebook/liveKernelSwitcher.ts
68% <0%> (-25%)
:arrow_down:

...ience/variablesView/variableViewMessageListener.ts
77% <0%> (-23%)
:arrow_down:

...ient/datascience/jupyter/kernels/kernelSelector.ts
68% <0%> (-14%)
:arrow_down:

...ent/common/application/webviewViews/webviewView.ts
67% <0%> (-11%)
:arrow_down:

... and 33 more


Get current user from cookie in API-Only Mode?

Hello!
Big fan of the library!
I was wondering if it is possible to get the current user based on the Cookie Based instructions here/some way to have a refresh route to return the current user.
Additionally, are the cookies configurable in some way (i.e. being able to set SameSite and Secure)?
This is important for SPAs that want to make calls to an API that utilizes Rodauth (i.e, making a /refresh call upon initial render, that calls the API with the cookies to authenticate the user.

Hi, I'm glad you like it! ❤
You would retrieve the current user in the exact same way as when you use Rodauth in default HTML mode. The account ID is stored in the Rails session just like it is in default mode, which is stored in a cookie by default, there is no separate cookie that Rodauth uses. So, you can use #current_account on the backend to return the current user.
I'm going to close this, since it's not a bug report. If you have additional questions, please open a topic in discussions.


What is the use of module "ibex_dummy_instr.sv"?

Ibex is using ibex_dummy_instr.sv in the fetch module but after sending a lot of time on it I didn't get the reason to use this module, please someone explain this.

See the documentation here.
Note that the security features are all in a prototype state at the moment.

oh ok thanks @tomroberts-lowrisc , Sorry I missed that point during the reading doc.


init puts "OrderedDict" in the yaml file

Is this the intended behavior?
Initializing refgenie genome configuration
Wrote new refgenie genome configuration file: test2.yaml
nsheff@puma:~/code/refgenie$ cat test2.yaml
genome_folder: /home/nsheff/code/refgenie
genome_server: http://localhost
genomes: OrderedDict()

not sure if this is coming from attmap ...
pip show attmap
Name: attmap
Version: 0.12.4
Summary: Multiple access patterns for key-value reference
Home-page: https://github.com/pepkit/attmap/
Author: Nathan Sheffield, Vince Reuter
Author-email: None
License: BSD2
Location: /home/nsheff/.local/lib/python3.5/site-packages
Requires: ubiquerg
Required-by: yacman, refgenieConf, refgenie, refgenie-conf, refgenconf, piper, peppy, pepkit, loopercli, looper, geofetch, divvy
nsheff@puma:~/code/refgenie$ pip show yacman
Name: yacman
Version: 0.3.0
Summary: A standardized configuration object for reference genome assemblies
Home-page: https://refgenie.databio.org
Author: Nathan Sheffield
Author-email<EMAIL_ADDRESS>License: BSD2
Location: /home/nsheff/.local/lib/python3.5/site-packages
Requires: pyyaml, oyaml, attmap
Required-by: refgenie, refgenconf

Probably, and I'd say it's undesired.

Probably, and I'd say it's undesired.

"Probably" in rxn to "not sure if this is coming from attmap..." that is

right!


Top operator that would merge OrderBy and Take

This same argument for Max and Min could be applied to this operator. The main benefit would be performance, but I think it actually might be more readable. Without the requirement of sorting the entire list, you move from an average case of O(n log n)for an optimal sorting algorithm to O(n) for an optimal selection algorithm.

Originally reported on Google Code with ID 103
Reported by Pope789 on 2015-05-27 21:49:53

Something like this?
public static IEnumerable<T> Top<T>(this IEnumerable<T> source, int count,
                                    IComparer<T> comparer = null)
{
    comparer = comparer ?? Comparer<T>.Default;
    var top = new List<T>(count);

    foreach (var item in source)
    {
        var i = top.BinarySearch(item, comparer);
        if (i < 0 && (i = ~i) >= count)
            continue;
        if (top.Count == count)
            top.RemoveAt(top.Count - 1);
        top.Insert(i, item);
    }

    foreach (var item in top)
        yield return item;
}

The only thing I see as a benefit is that the entire sequence doesn't need to be commit to memory as OrderBy would. There are only a maximum of count elements in memory at any given time. A technical flaw of the above prototype is that equivalent elements will be yielded technically reversed but still logically ordered in the resulting sequence.


Countifs fail to evaluate correctly #825

This closes #825  (porting Baseifs from POI)
add Countifs test case to track multi rows scenario

LGTM

You can use https://github.com/nissl-lab/JavaToCSharp tool to do conversion from Java to C# automatically.


APEXMALHAR-2259 Create Fixed Length Parser Operator

@chinmaykolhatkar @bhupeshchawda please review

General Comment: Most of the params and return statements in javadoc does not contain any description. Please add the description. The javadoc content cannot be empty

@Hitesh-Scorpio
The code looks too big to me too. Have you explored the possibility of using http://camel.apache.org/flatpack.html?
Additionally I have a few general comments on the existing implementation:

I see a lot of code duplication between DelimitedSchema and FixedWidthSchema. I think you are trying to have a similar schema for Fixed width parsing as for CSV parser. If that is the case, why don't you try to see if the  DelimitedSchema can be adapted to address FixedWidthSchema, without breaking existing functionality.
The purpose of FixedWidthValidator is not clear to me. I think we can defer the validation aspect for now, and just concentrate on the parsing. You can have a look at FieldInfo and ActiveFieldInfo classes uses in a lot of input operator implementations. This is essentially the mapping between the POJO field and the field name along with the getter / setter for that field. This can help in constructing the POJO out of the record.

Please explore these options and have a discussion on the mailing list if needed.

@chinmaykolhatkar @bhupeshchawda  Have made some modifications.
Using univocity parser instead of using substring function.
Increased the scope of the parser by using the features of univocity, now user can specify padding character and also alignment for each field.
Output port will now emit a map where key will be the name of the field and value will be the value of the field in the current input tuple. Original PRD suggested to just output the input tuple as a string.
FixedWidthValidator is a class used used for type checking (as univocity has no mechanism for type checking/validations) and do some validations on the input tuples, for example date format and validity of date. Also during validations it creates the POJO to be emitted using PojoUtils and also the map to be emitted .


[User Story] As a data analyst, I want the API to be able to store and retrieve log information

Is your user story related to a problem? Please describe.
It frustrates me when I cannot see a history of summaries or activities surrounding a specific machine so that I can determine patterns in its functionality.
Describe the solution you'd like
I want to be able to see a log of previous summaries and actions taken by myself and/or other users for a specific machine.
Describe alternatives you've considered
Taken the notes manually or having the log stored in the database is not preferable, as one could make mistakes manually and it could be hard to access it directly from the database without the use of the API.
Additional context
While this specifies machine-centric logs, logs can also be user-centric so that a user may observe their own history within the application

closed with PR #222


When layer definition is missing in docs folder, layer assignment doesn’t occur automatically

Issue: If a layer is defined in the create.json for a schema, automatic assignment to that layer upon document creation doesn’t occur when creating a point via the map interface (i.e. clicking Add or Edit a Map Feature). Additionally the appearance of the layer in the layer list was not visible on some computer screens (Note: I couldn’t reproduce this behaviour, but it has been reported by two different users).
Note: This behaviour did not occur when creating a doc using a create document widget.

It should also be noted, that on my local machine I tried creating a layer definition in the docs directory which matched the layer named in the create.json file, but this didn't resolve the issue.


docs: add workflow to assign PR to its author

Description
name: "Author Assign PR"

on:
  pull_request_target:
    types: [opened, reopened]

permissions:
  pull-requests: write

jobs:
  assign-author:
    runs-on: ubuntu-latest
    steps:
      - uses<EMAIL_ADDRESS>        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}" # GITHUB_TOKEN will be used by default

Fixes Issue
Closes #448
Have you read the Contributing Guidelines on Pull Requests?

[x] Yes
[ ] No

Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I've edited the SCRIPTS.md and link to my code.
[ ] I have created a helpful and easy to understand README.md
[ ] My documentation follows Template for README.md
[x] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works.

@avinashkranjan
There is a error with the issue template, which I noticed right now.
I mistakenly updated my main branch, so I cannot really sync the changes in this branch.
What you have to do:
Go here:
https://github.com/avinashkranjan/Pentesting-and-Hacking-Scripts/edit/master/.github/ISSUE_TEMPLATE/script-addition.yml
Now change, first line Feature Request 💡 to Script Addition
Please do this, so that issue forms are corrected.


PyLint plugin reports "Please install pylint" in MacPorts Spyder

From<EMAIL_ADDRESS>on 2011-07-29T22:41:15Z
What steps will reproduce the problem?

Install macports python27 @-2.7.2_0
Install macports py27-lint @-0.23.0_0
Install macports py27-pyqt4 @-4.8.3_1
Install Spyder
Run Spyder and observe message that says "Please install pylint" in the
PyLint panel. What is the expected output? What do you see instead? Since MacPorts supports several different versions, Python is installed as a Framework.
Ports which use the python PortGroups (  python24,  python25,  python26, and  python31) are automatically installed so as to avoid conflicts. What version of the product are you using? On what operating system? Spyder 2.0.12, python 2.7.2, Mac OS X

Please provide any additional information below
. I looked in the MacPorts default directory '/opt/local/bin' and found 'pylint-2.7' which is a symbolic link to '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pylint'.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=721

From<EMAIL_ADDRESS>on 2011-07-30T09:23:07Z
pylint script is located in '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylint'
When I load pylint in IDLE, it runs the 'init.py' script inside the aforementioned pylint directory.

From<EMAIL_ADDRESS>on 2011-07-30T08:44:31Z
I can import pylint from the mac terminal command line and help('modules') lists pylint.

From ccordoba12 on 2011-08-01T20:58:51Z
Hi Mark,
I've checked that the only available version in Macports is py26-spyder @-2.0.8, which means you need to install python 2.6 to get Spyder through Macports. But you are reporting that you have Python 2.7 from Macports and Spyder 2.0.12, which means you installed the last one from source.
So I would bet your problem is that you didn't select the right Python version when you were installing Spyder. You have to write in a terminal:
/opt/local/bin/python2.7 setup.py install
to install it. (I don't know if this is the right path to python2.7 in your MacPorts installation, I'm just guessing here, so please find and use the right one). If you just use
python setup.py install
(as it's mentioned in the README), Spyder will be installed with the first Python version that comes in your PATH and that version most surely don't have pylint installed.
Please tell me if this works for you or not.
Cheers,
Carlos
Summary: PyLint plugin reports "Please install pylint" in MacPorts Spyder
Labels: OpSys-OSX

From<EMAIL_ADDRESS>on 2011-07-30T14:20:12Z
I think I have traced the problem to 'pylintgui.py' or 'programs.py' on a MacPorts install of Spyder2. A symbolic-link to pylint, named 'pylint-2.7' is installed in '/opt/local/bin', which is in my PATH. Python is installed as Framework on Mac OS X. I have Python 2.7 installed, which uses the python PortGroup 'python27'. Ports which use the python27 PortGroup are automatically installed so as to avoid conflicts. For instance, pylint is installed into '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pylint' with the aforementioned link residing in '/opt/local/bin'.

From<EMAIL_ADDRESS>on 2011-08-02T05:51:25Z
Carlos,
MacPorts allows you to create local portfiles in order to test new versions, or ports that don't exist. The python version selected is controlled by the Portgroup called in the portfile. Please refer to the MacPorts documentation for portfile ( http://guide.macports.org/#development.introduction ), Portgroup ( http://guide.macports.org/#reference.portgroup ) and dependancies ( http://guide.macports.org/#reference.dependencies ).
Also, there is no "pylint" port. There are:
$ port echo name:py.*lint
py-lint
py25-lint
py26-lint
py27-lint
As such, none of these ports can claim /opt/local/bin/pylint. That is why there is a suffix on each binary. Any port using this software needs to refer to it by the correct suffixed name.
Attachment: Portfile

From ccordoba12 on 2011-08-01T21:09:21Z
Labels: Cat-Pylint

From pierre.raybaut on 2011-08-02T12:33:07Z
It's cleaner -from the developper point of view- to look for the executable (pylint or pylint-{PythoMajor}{PythonMinor}) because we may then use the executable either in another thread (current implementation)  in a separate process, all of this very easily because pylint is assumed to be installed properly (i.e. an executable is available in system PATH.

From ccordoba12 on 2011-08-02T06:28:14Z
OK, sorry for my confusion, I understand you better now. So you created your own portfile to test Spyder 2.0.12 (quite cool!) and Spyder can't find pylint because there is not a binary called pylint per se.
How are the pylint binaries called by MacPorts? The solution would be to look for these names too, as you suggested.
Status: Accepted

From<EMAIL_ADDRESS>on 2011-08-02T07:45:30Z
The name format is pylint{-${python.branch}}
e.g. pylint-2.5, pylint-2.6, pylint-2.7, etc.
I'm wondering if, for convenience, you should use PYTHONPATH to check for pylint?

From ccordoba12 on 2011-08-02T13:38:06Z
The only thing is that we need to select the pylint binary according to the python version under which Spyder is running.
Mark, would be ok for you to contribute a little patch for this? As you mentioned, you just have to add some code to get_nt_program_name in utils/programs.py to check for pylint{-${python.branch}}, and return the binary name if it's found in your PATH
You can get the current Python version with:
import sys
sys.version_info

From pierre.raybaut on 2011-08-02T12:35:38Z
Sorry, the last comment was posted too fast: current implementation of pylint plugin call pylint in a separate process (not in another thread).

From ccordoba12 on 2011-08-03T10:38:33Z
Sorry, get_nt_program_name just constructs the name of the program to be detected (for windows), it doesn't actually detect it.

From ccordoba12 on 2011-08-03T10:35:03Z
As I told you, it could go in the function that detects if a program is installed (get_nt_program_name), or it could also go at the definition of PYLINT_PATH (in spyderplugins/widgets/pylintgui.py). On a second thought, I think the first alternative is a bit ugly but the second one is viable.
Maybe it's easier for you to patch Spyder (changing 'pylint' in PYLINT_PATH to, for example, 'pylint-2.7') than for us to add a special piece of code to detect these different versions.
Keep us posted of your decision.

From<EMAIL_ADDRESS>on 2011-08-03T10:00:46Z
I have also been discussing this issue on the MacPorts-users list. This patch could be incorporated as a diff file used by the portfile script that installs spyder into the python framework. Or, were you intending to incorporate this on your end?

From pierre.raybaut on 2011-08-03T11:06:37Z
I'm kind of reluctant to handle this in Spyder's code (of course, if it's the only way, we will take action anyway) because there is absolutely no reason for MacPorts to differentiate pylint scripts depending on Python minor version number: after all, this script is an executable that should behaves exactly the same way on any Python version.
Of course this would make sense to differentiate pylint executable for Python 2 and Python 3.
So the purist in me would tend to say that when pylint is properly installed, the command 'pylint' should work in a terminal.

From<EMAIL_ADDRESS>on 2011-08-03T11:51:12Z
This is a peculiarity with MacPorts. The spyder program is itself installed for each python framework, I.e. spyder-2.6, spyder-2.7, etc.. It therefore makes sense to patch spyder in the MacPorts package. I'll keep you posted.

From ccordoba12 on 2011-08-04T07:30:20Z
Great, we'll leave this issue open until the MacPorts ticket is fixed

From<EMAIL_ADDRESS>on 2011-08-03T18:31:55Z
I have opened a MacPorts 'ticket' to add a py27-spyder port and apply attached patch so that pylintgui.py checks for pylint by the correct suffixed name.
I have tested a local install and it works perfectly!
Attachment: Portfile patch-widgets-pylintgui.py.diff

From<EMAIL_ADDRESS>on 2011-08-06T09:47:15Z
Reading through the 'port' man page I found this section on 'select' target:
select
For a given group, selects a version to be the default by creating appro-
priate symbolic links.  For instance, python might be linked to
python2.6.  Available select groups are installed as subdirectories of
${prefix}/etc/select/.  To list the available versions in a group, use
--list.  To see which version is currently selected for a group, use
--show.  To change the selected version for a group, use --set.
 For example:

       port select --list python
       port select --show gcc
       port select --set gcc mp-gcc44

Currently, a group does not exist for pylint. If implemented, the command 'pylint' would work in a terminal.

From<EMAIL_ADDRESS>on 2011-08-09T03:22:37Z
Does Spyder use PATH to locate all modules (pyflakes, rope, sphinx, matplotlib, IPython and pylint)? I've noticed, for example, that Spyder is able to locate IPython  in my PATH. But it is a symlink with a similar naming convention as pylint, i.e. 'ipython-2.7'.

From<EMAIL_ADDRESS>on 2011-08-06T14:33:18Z
Ticket #30626: 'pylint: use select portgroup' has been submitted to MacPorts. This would allow users to select a version of pylint to be the default (see comment above).

From<EMAIL_ADDRESS>on 2011-08-12T10:52:47Z
This has been committed in r82219 . Ticket URL: < https://trac.macports.org/ticket/30446#comment:11 >

From ccordoba12 on 2011-08-16T08:28:00Z
Ok, thanks for your work upstream with the MacPorts guys.
If you have any more troubles, please don't hesitate to open more issues. We want to support Mac users as best as we can.
Status: WontFix

I am having the same problem today with Python 2.7.11 and Spyder 2.3.7 and all its dependencies installed via MacPorts. The "static code analysis" panel in Spyder reports "Please install pylint". But pylint 1.5.3 is already installed (port py27-pylint), with symlinks at /opt/local/bin/pylint and /opt/local/bin/pylint-2.7 and both are in my PATH. Everything else except pylint appears to be working in Spyder.