text:
Latest requirements.txt seems to be over-specifying dependencies

This is the latest version requirements.txt file:
black>=19.3b0
darglint
hypothesis>=4.4.0
interrogate
ipykernel
isort>=4.3.18
jupyter_client
lxml
natsort
nbsphinx>=0.4.2
pandas-flavor
pandas-vet
pre-commit
pyspark
pytest-azurepipelines
pytest-cov
pytest>=3.4.2
scikit-learn
seaborn
setuptools>=38.5.2
sphinxcontrib-fulltoc==1.2.0
unyt
xarray

Those are inject in the setup.py as mandatory dependencies but a lot in there looks like docs, dev, or optional. Is pyjanitor really require all that at run time?

@ocefpaf thanks for chiming in! Yes, I needed them in requirements.txt to ensure that Netlify deploy docs could work properly.
It seems like this breaks the conda-forge builds, is that right? Do you have ideas on how we might be able to get around this conflict?

Doesn't really break b/c we can add them there too but it is odd to ship all that to use pyjanitor.
One solution would be stop using the requirements.txt file and specify the deps in the pyproject.toml, going full pep517/518. (I can send a PR if you want to go that route.)
PS: I don't know how netfly works but the current setup defeats the purpose of the optional deps in setup.py and the requeriments-dev.txt. The latter is a duplicate of requeriments.txt at the moment.

PS: I don't know how netfly works but the current setup defeats the purpose of the optional deps in setup.py and the requeriments-dev.txt. The latter is a duplicate of requeriments.txt at the moment.

Totally agree. Netlify is a bit too opinionated, but the ability to preview docs changes was too alluring for me.

One solution would be stop using the requirements.txt file and specify the deps in the pyproject.toml, going full pep517/518. (I can send a PR if you want to go that route.)

Looks like pyproject.toml is the right way to go here! I would love to get your help setting this up, as I've not tried this before, so seeing the pattern at work IRL would be very educational for me.

I can also suggestion using pip-tools. With this set up, you would have a requirements.in file that specified you "base" requirements, which then is used to generate a requirements.txt file that you can use for CI or Netlify. It's not as flashy as pyproject.toml / poetry, but it's worked well for me for several years now.
Recent versions of pip-tools would allow you to use your setup.py file in place of a separate requirements.in file as well.

I can also suggestion using pip-tools. With this set up, you would have a requirements.in file that specified you "base" requirements, which then is used to generate a requirements.txt file that you can use for CI or Netlify. It's not as flashy as pyproject.toml / poetry, but it's worked well for me for several years now.

I don't think that pyproject.toml is flashy, in fact I'm not really a fan, but it is the community standard.

Recent versions of pip-tools would allow you to use your setup.py file in place of a separate requirements.in file as well.

I hear great things about pip-tools but I never used it. I don't see how that setup can solve the problem here though. Setup.py would still be 'bloated'' with all the dev and docs specifications to create the requirements.txt for netfly, no? Unless we add them all in separate categories and pip-tools aggregate them in a single file. (Which can also be done with pyproject.toml.)
I'll wait for your expertise on pip-tools here before sending a PR so we can choose a more stable route that would avoid another change in the short term.

I don't think that pyproject.toml is flashy

This was perhaps unfortunate wording on my part. What I meant to say was that pyproject.toml (or poetry; they're fairly connected in my mind) first showed up promising great things (e.g. "flash"), but many of the things I was doing in setup.py either weren't possible or not easily discoverable. That said, the project seems to have grown into much of its original promise, and credit to the contributors who have made it happen. That said, pip-tools continues to work well for me, and so I've mostly worked with pyproject.toml / poetry on other people's projects, so maybe I haven't had the right exposure to realize just how awesome it is.

I don't see how that setup can solve the problem here though.

Completely reasonable. I've prepped a PR (#761) to show how I might do it. Hopefully this will make it easier to understand what I'm proposing. And if the decision is made to go in a completely different direction, I won't be offended in the least.

Unless we add them all in separate categories and pip-tools aggregate them in a single file.

This is about what I did :-/
If there are any questions, just let me know!

authors: MinchinWeb ericmjl ocefpaf

repo: ericmjl/pyjanitor


text:
print explicit imports for current module

Just a thought. So you don't have to mention which module it is:
macro print_explicit_imports()
  :($print_explicit_imports($(esc(@__MODULE__)))
end

Going to close this; I can see the motivation with examples like print_explicit_imports(ExplicitImports), but common usage will be calling functions like print_explicit_imports from Main about packages loaded in their namespace, in which case I don't think this can help with.

source: gharchive/issue

authors: ericphanson jariji

license: MIT

license_type: permissive

license_source: github-api


text:
PRAGMA foreign_keys=OFF not working

When foreign keys enforcement is enabled on connection level, PRAGMA foreign_keys=OFF; is not working. DROP TABLE results in SQLite Error 19: 'FOREIGN KEY constraint failed'.
Adding Foreign Keys=False to connection string is only workaround for this issue

Are you saying that this is a recently introduced bug?  I mean, did it work as you expect in one version and then the behavior changed in a newer version?  What version are you using?

This is not working in EF Core 3.0.
EF Core 3.0 Breaking change: SQLite foreign keys
Was working in EF Core 2.2

Can you post a small sample to reproduce the problem?
The link you mentioned merely talks about how the default setting is done.  It should not affect whether PRAGMA foreign_keys works or not.
Note that PRAGMA foreign_keys cannot be used inside of a transaction.

Are you executing PRAGMA foreign_keys=OFF; inside a transaction? Because IIRC, that no-ops.

EF Core 3.0 is running every migration in transaction. It was probably working in different way in prior versions. As you said, running this PRAGMA in transaction is not working.

authors: bricelam ericsink lion92pl

license_source: bigquery


text:
API Mismatch

hi there, I downloaded mayhem camera.fap 0.13.6,I used it with unleashed firmware 071e, when I run mayhem camera.fap 0.13.6 it says "API mismatch",I pressed continue, then flipper said" Load failed,update firmware to use with this application(missing imports)"
I dont know what's the problem,any ideas?
what should I do to run mayhem apps with unleashed firmware 071e?
thanks!

Hi! the faps are exclusive for each firmware version, so it is difficult to provide files for all versions, you could: 1) install xtreme 2) compile the faps yourself https://github.com/eried/flipperzero-mayhem/wiki/Compilation-of-the-faps :)

Hi! the faps are exclusive for each firmware version, so it is difficult to provide files for all versions, you could: 1) install xtreme 2) compile the faps yourself https://github.com/eried/flipperzero-mayhem/wiki/Compilation-of-the-faps :)

thanks for reply, I will look into it, it not easy for a normal guy,haha
but unleashed is most populer OFW, hope someone will compile unleashed version.
thank you

authors: eried ldxjy

repo: eried/flipperzero-mayhem


text:
Migration fails to complete with transaction error

Describe the bug
On only one environment we are unable to migrate our latest script. The script itself appears to run but then it chokes in "InsertScriptRun"
To Reproduce
Unsure of the cause. Same migration worked on all our other environments. We can also run the script itself against the target env (with a rollback) with no issues. The script contains no BEGIN TRAN/ROLLBACK or anything transaction related.
Expected behavior
My database is grated
Screenshots

Desktop (please complete the following information):

OS: Linux/Windows
Version: 1.7.2 and 1.8.0

Additional context
command run:
grate --connstring "Data Source=tcp:redacted,1433;Initial Catalog=redacted;Persist Security Info=False;User ID=redacted;Password=redacted;Pooling=True;Min Pool Size=50;Max Pool Size=500;MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=False;ConnectRetryCount=20" --trx --env "PROD" -f main --schema RoundhousE --commandtimeout 900 -v Verbose

Verbose log output:
Initializing connections.
Running grate v1.8.0 (build date 07/25/2024 17:13:32) against tcp:redacted,1433 - redacted.
Looking in main for scripts to run.
Please press enter when ready to kick...

The change_drop (output) folder is: C:\Users\critc\AppData\Local\grate\migrations\redacted\tcp_redacted.net_1433\2024-08-14T11_12_31.7684860_10_00
================================================================================
Setup, Backup, Create/Restore/Drop
================================================================================
================================================================================
Grate Structure
================================================================================
SQL:
SELECT table_name FROM INFORMATION_SCHEMA.TABLES
WHERE
LOWER(TABLE_SCHEMA) = LOWER('RoundhousE') AND
LOWER(TABLE_NAME) = LOWER('Version')

Parameters: (null)
SQL:
SELECT table_name FROM INFORMATION_SCHEMA.TABLES
WHERE
LOWER(TABLE_SCHEMA) = LOWER('RoundhousE') AND
LOWER(TABLE_NAME) = LOWER('GrateScriptsRun')

Parameters: (null)
SQL: SELECT 1 FROM RoundhousE.[GrateScriptsRun] WHERE script_name = '02_create_scripts_run_table.sql'
Parameters: (null)
SQL:
SELECT table_name FROM INFORMATION_SCHEMA.TABLES
WHERE
LOWER(TABLE_SCHEMA) = LOWER('RoundhousE') AND
LOWER(TABLE_NAME) = LOWER('Version')

Parameters: (null)
SQL:
SELECT table_name FROM INFORMATION_SCHEMA.TABLES
WHERE
LOWER(TABLE_SCHEMA) = LOWER('RoundhousE') AND
LOWER(TABLE_NAME) = LOWER('GrateScriptsRun')

Parameters: (null)
SQL: SELECT 1 FROM RoundhousE.[GrateScriptsRun] WHERE script_name = '02_create_scripts_run_table.sql'
Parameters: (null)
================================================================================
Versioning
================================================================================
SQL:
SELECT
TOP 1

version
FROM RoundhousE.[Version]
ORDER BY id DESC

Parameters: (null)
 Migrating redacted from version 0.0.0.1 to 0.0.0.1.
 Versioning redacted database with version 0.0.0.1.
================================================================================
Migration Scripts
================================================================================
Skipping 'BeforeMigration', beforeMigration does not exist.
Skipping 'AlterDatabase', alterDatabase does not exist.
Skipping 'Run Before Update', runBeforeUp does not exist.

Looking for Update scripts in "main\up". These should be one time only scripts.
--------------------------------------------------------------------------------
 Skipped 201912191046000_DeleteOldPermissions.sql - No changes were found to run.
 Skipped 202006030000000_CreateUserLookupTable.sql - No changes were found to run.
 Skipped 202006040000000_PopulateUserLookupTable.sql - No changes were found to run.
 Skipped 202008240000000_AuditLogTable.sql - No changes were found to run.
 Skipped 202010310000000_ChangeIssueBookIdColumnType.sql - No changes were found to run.
 Skipped 202011180000000_ALTERUserProfilesTable.sql - No changes were found to run.
 Skipped 202011190000000_ALTERProjectsTable.sql - No changes were found to run.
 Skipped 202103110000000_ALTERPermissionsTable.sql - No changes were found to run.
 Skipped 202202080000000_CREATEMeasureScalesV2Table.sql - No changes were found to run.
 Skipped 202202150000000_INSERT-default-scales.sql - No changes were found to run.
 Skipped 202204070000000_update-default-scales.sql - No changes were found to run.
 Skipped 202205310000000_CREATE-WorkspaceTables.sql - No changes were found to run.
 Skipped 202206010000000_ALTER-ProjectsTable-Add-WorkspaceId.sql - No changes were found to run.
 Skipped 202206020000000_alter-issues-add-visibility-column.sql - No changes were found to run.
 Skipped 202206240000000_CREATE-WorkspaceInvites-Table.sql - No changes were found to run.
 Skipped 202206241000000_CREATE-Workspace-Indexes.sql - No changes were found to run.
 Skipped 202206242000000_Migrate-Orgs-to-Workspaces.sql - No changes were found to run.
 Skipped 202207110000000_AddBookStateTables.sql - No changes were found to run.
 Skipped 202207130000000_IncludeBookStatusInQueries.sql - No changes were found to run.
 Skipped 202208160000000_AddRevisionAssignee.sql - No changes were found to run.
 Skipped 202209210000000_WorkspaceMemberAccessLevel.sql - No changes were found to run.
 Skipped 202210030000000_WorkspaceMemberAccessLevelCorrectionAgain.sql - No changes were found to run.
 Skipped 202210140000000_CreateStatusDefaultsFlag.sql - No changes were found to run.
 Skipped 202210190000000_WorkspaceMemberDefaultProjectRole.sql - No changes were found to run.
 Skipped 202210260000000_WorkspaceDefaultProjectAccessLevel.sql - No changes were found to run.
 Skipped 202211070000000_WorkspaceHasProfilePicture.sql - No changes were found to run.
 Skipped 202211070000000_WorkspaceMemberDefaultProjectRole_ChangeToString.sql - No changes were found to run.
 Skipped 202211210000000_DefaultStatusColorLength.sql - No changes were found to run.
 Skipped 202211290000000_OrganizationHasProfilePicture.sql - No changes were found to run.
 Skipped 202301130000000_OrganizationUsersUnique.sql - No changes were found to run.
 Skipped 202301180000000_RemoveOwnerIdFromProjects.sql - No changes were found to run.
 Skipped 202302090000000_OrganizationUsersRoleAsString.sql - No changes were found to run.
 Skipped 202303220000000_DropOrganizationIdFromProjectsAndWorkspaceUsers.sql - No changes were found to run.
 Skipped 202307310357000_FlattenDocument.sql - No changes were found to run.
 Skipped 202308150000000_AddDocAndRevisionIndices.sql - No changes were found to run.
 Skipped 202308210000000_FixIsInteractive.sql - No changes were found to run.
 Skipped 202308220000000_OrganizationDomains.sql - No changes were found to run.
 Skipped 202308222117000_CreateProjectIdWorkspacePermIndices.sql - No changes were found to run.
 Skipped 202308250000000_TagRefactor.sql - No changes were found to run.
 Skipped 202308252100000_FlattenDisciplines.sql - No changes were found to run.
 Skipped 202308280000000_MigrateOrgFields.sql - No changes were found to run.
 Skipped 202309010000000_SetIsInteractive.sql - No changes were found to run.
 Skipped 202309260000000_Layers.sql - No changes were found to run.
 Skipped 202310010000000_AlterProjectNameUnicode.sql - No changes were found to run.
 Skipped 202311010000000_UserReference.sql - No changes were found to run.
 Skipped 202311150000000_DropAuditLogTable.sql - No changes were found to run.
 Skipped 202311231320600_IndexCustomerIdAndSubscriptionId.sql - No changes were found to run.
 Skipped 202312051300000_PendingEmailChanges.sql - No changes were found to run.
 Skipped 202331002113600_AddMissingProjectsIndex.sql - No changes were found to run.
 Skipped 202401081030000_DocumentRevisionCounter.sql - No changes were found to run.
 Skipped 202402151030000_FlagDemoUser.sql - No changes were found to run.
 Skipped 202402200945000_SeedSegment.sql - No changes were found to run.
 Skipped 202402241020000_ApiKeys.sql - No changes were found to run.
 Skipped 202403011028000_CREATE-BookCommentsTable.sql - No changes were found to run.
 Skipped 202403071400000_AlterWorkspaceAndOrganizationNameUnicode.sql - No changes were found to run.
 Skipped 202403191109000_ApiKeysChange.sql - No changes were found to run.
 Skipped 202403191248000_ApiKeysTokenLength.sql - No changes were found to run.
 Skipped 202404131248000_ApiSymmetricKey.sql - No changes were found to run.
 Skipped 202404181300000_Webhooks.sql - No changes were found to run.
 Skipped 202405060000000_ApiRateCallState.sql - No changes were found to run.
 Skipped 202405230000000_ApiRateCallStateAddWebhookCount.sql - No changes were found to run.
 Skipped 202407011500000_WebhooksDropLabel.sql - No changes were found to run.
SQL:
SELECT 1 FROM  RoundhousE.[ScriptsRun] WITH (NOLOCK)
WHERE script_name = @scriptName
Parameters: { scriptName = 202408021444000_BookStatusToGuid.sql }
  Running '202408021444000_BookStatusToGuid.sql'.
[SQL] Running (on connection 'Default', transaction handling 'Default'):
--revision

ALTER TABLE Revisions
DROP CONSTRAINT FK_Revisions_BookStatus

UPDATE Revisions
SET BookStatusId = SUBSTRING(BookStatusId, 1, 8) + '-' + SUBSTRING(BookStatusId, 9, 4) + '-' + SUBSTRING(BookStatusId, 13, 4) + '-' +
        SUBSTRING(BookStatusId, 17, 4) + '-' + SUBSTRING(BookStatusId, 21, 12)
WHERE BookStatusId IS NOT NULL

ALTER TABLE Revisions
ALTER COLUMN BookStatusId uniqueidentifier NULL

-- book status

ALTER TABLE BookStatus
DROP CONSTRAINT PK_BookStatus

UPDATE BookStatus
SET Id = SUBSTRING(Id, 1, 8) + '-' + SUBSTRING(Id, 9, 4) + '-' + SUBSTRING(Id, 13, 4) + '-' +
        SUBSTRING(Id, 17, 4) + '-' + SUBSTRING(Id, 21, 12)
WHERE CHARINDEX('-', Id) > -1

ALTER TABLE BookStatus
ALTER COLUMN Id uniqueidentifier NOT NULL

ALTER TABLE BookStatus
ADD CONSTRAINT PK_BookStatus PRIMARY KEY (Id)

-- final

ALTER TABLE Revisions
ADD CONSTRAINT [FK_Revisions_BookStatus] FOREIGN KEY([BookStatusId])
    REFERENCES dbo.BookStatus (Id) ON DELETE SET NULL
SQL: --revision

ALTER TABLE Revisions
DROP CONSTRAINT FK_Revisions_BookStatus

UPDATE Revisions
SET BookStatusId = SUBSTRING(BookStatusId, 1, 8) + '-' + SUBSTRING(BookStatusId, 9, 4) + '-' + SUBSTRING(BookStatusId, 13, 4) + '-' +
        SUBSTRING(BookStatusId, 17, 4) + '-' + SUBSTRING(BookStatusId, 21, 12)
WHERE BookStatusId IS NOT NULL

ALTER TABLE Revisions
ALTER COLUMN BookStatusId uniqueidentifier NULL

-- book status

ALTER TABLE BookStatus
DROP CONSTRAINT PK_BookStatus

UPDATE BookStatus
SET Id = SUBSTRING(Id, 1, 8) + '-' + SUBSTRING(Id, 9, 4) + '-' + SUBSTRING(Id, 13, 4) + '-' +
        SUBSTRING(Id, 17, 4) + '-' + SUBSTRING(Id, 21, 12)
WHERE CHARINDEX('-', Id) > -1

ALTER TABLE BookStatus
ALTER COLUMN Id uniqueidentifier NOT NULL

ALTER TABLE BookStatus
ADD CONSTRAINT PK_BookStatus PRIMARY KEY (Id)

-- final

ALTER TABLE Revisions
ADD CONSTRAINT [FK_Revisions_BookStatus] FOREIGN KEY([BookStatusId])
    REFERENCES dbo.BookStatus (Id) ON DELETE SET NULL
Recording 202408021444000_BookStatusToGuid.sql script ran on tcp:redacted,1433 - redacted.
SQL:
INSERT INTO RoundhousE.[ScriptsRun]
(version_id, script_name, text_of_script, text_hash, one_time_script, entry_date, modified_date, entered_by)
VALUES (@versionId, @scriptName, @sql, @hash, @runOnce, @now, @now, @usr)
Parameters: Dapper.DynamicParameters
Skipping 'Permissions', permissions does not exist.
Skipping 'AfterMigration', afterMigration does not exist.
An error occurred: Migration failed due to the following errors:

 * The transaction associated with the current connection has completed but has not been disposed.  The transaction must be disposed before the connection can be used to execute SQL statements.
grate.Exceptions.MigrationFailed: Migration failed due to the following errors:

 * The transaction associated with the current connection has completed but has not been disposed.  The transaction must be disposed before the connection can be used to execute SQL statements.
 ---> System.InvalidOperationException: The transaction associated with the current connection has completed but has not been disposed.  The transaction must be disposed before the connection can be used to execute SQL statements.
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CheckEnlistedTransactionBinding()
   at Microsoft.Data.SqlClient.TdsParser.TdsExecuteRPC(SqlCommand cmd, IList`1 rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc, Boolean sync, TaskCompletionSource`1 completion, Int32 startRpc, Int32 startParam)
   at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method)
   at Microsoft.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String methodName)
   at Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQueryInternal(CommandBehavior behavior, AsyncCallback callback, Object stateObject, Int32 timeout, Boolean inRetry, Boolean asyncWrite)
   at Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQueryAsync(AsyncCallback callback, Object stateObject)
   at Microsoft.Data.SqlClient.SqlCommand.<>c.<InternalExecuteNonQueryAsync>b__193_0(AsyncCallback callback, Object stateObject)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl(Func`3 beginMethod, Func`2 endFunction, Action`1 endAction, Object state, TaskCreationOptions creationOptions)
   at System.Threading.Tasks.TaskFactory`1.FromAsync(Func`3 beginMethod, Func`2 endMethod, Object state)
   at Microsoft.Data.SqlClient.SqlCommand.InternalExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
   at Dapper.SqlMapper.ExecuteImplAsync(IDbConnection cnn, CommandDefinition command, Object param) in /_/Dapper/SqlMapper.Async.cs:line 662
   at grate.Migration.AnsiSqlDatabase.ExecuteAsync(IDbConnection conn, String sql, Object parameters) in /home/runner/work/grate/grate/src/grate.core/Migration/AnsiSqlDatabase.cs:line 650
   at grate.Migration.AnsiSqlDatabase.InsertScriptRun(String scriptName, String sql, String hash, Boolean runOnce, Int64 versionId, TransactionHandling transactionHandling) in /home/runner/work/grate/grate/src/grate.core/Migration/AnsiSqlDatabase.cs:line 568
   at grate.Migration.DbMigrator.RunTheActualSql(String sql, String scriptName, MigrationType migrationType, Int64 versionId, ConnectionType connectionType, TransactionHandling transactionHandling) in /home/runner/work/grate/grate/src/grate.core/Migration/DbMigrator.cs:line 309
   at grate.Migration.DbMigrator.<>c__DisplayClass28_0.<<RunSql>g__LogAndRunSql|0>d.MoveNext() in /home/runner/work/grate/grate/src/grate.core/Migration/DbMigrator.cs:line 94
--- End of stack trace from previous location ---
   at grate.Migration.DbMigrator.RunSql(String sql, String scriptName, MigrationsFolder folder, Int64 versionId, GrateEnvironment environment, ConnectionType connectionType, TransactionHandling transactionHandling) in /home/runner/work/grate/grate/src/grate.core/Migration/DbMigrator.cs:line 154
   at grate.Migration.GrateMigrator.Process(DirectoryInfo root, MigrationsFolder folder, String changeDropFolder, Int64 versionId, ConnectionType connectionType, TransactionHandling transactionHandling) in /home/runner/work/grate/grate/src/grate.core/Migration/GrateMigrator.cs:line 418
   at grate.Migration.GrateMigrator.LogAndProcess(DirectoryInfo root, MigrationsFolder folder, String changeDropFolder, Int64 versionId, ConnectionType connectionType, TransactionHandling transactionHandling) in /home/runner/work/grate/grate/src/grate.core/Migration/GrateMigrator.cs:line 388
   at grate.Migration.GrateMigrator.Migrate() in /home/runner/work/grate/grate/src/grate.core/Migration/GrateMigrator.cs:line 166
   --- End of inner exception stack trace ---
   at grate.Migration.GrateMigrator.Migrate() in /home/runner/work/grate/grate/src/grate.core/Migration/GrateMigrator.cs:line 204
   at grate.Commands.MigrateCommand.<>c__DisplayClass0_0.<<-ctor>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.NamingConventionBinder.CommandHandler.GetExitCodeAsync(Object returnValue, InvocationContext context)

It ran successfully with transactions off.

I am also getting this error; any solutions other than to run with transactions off?

We had the same issue and it seems to be the TransactionScope default timeout of 1 minute being hit. See System.Transaction defaults from source code and TransactionManager.DefaultTimeout Property.
Changing the default timeout to something higher when creating the new TransactionScope worked for us: use one of the constructors taking a timespan TransactionScope Constructors in place of the one on line 139 in GrateMigrator.cs. Could for example be
GrateMigrator.cs:137-140
if (runInTransaction)
{
    // with timeout of 5 minutes
    scope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(0,5,0), TransactionScopeAsyncFlowOption.Enabled);
    // original
    scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled);
}

Note that if the argument to the constructor is greater than the DefaultMaxTimeout of 10 minutes then the DefaultMaxTimeout will be used. This can however be overwritten (without reflection hacks) since they added a setter to TransactionManager.DefaultMaxTimeout (and DefaultTimeout) in 71703.
Perhaps this transaction issue in grate can be fixed by adding an additional parameter similar to the current commandtimeout and admincommandtimeout that controls the default transaction timeout. It is conterintuitive that running grate as a transaction will timeout for all migrations taking > 60s, even in cases where the commandtimeout is > 60s.

We experience the same issue as @Jackietf describes.

Thanks for sharing @Jackietf, I'm running into the same issue.

authors: Jackietf Konkaku597 Spift emilsaj worldspawn

repo: erikbra/grate


text:
Batch function applications for fast functions

When the objective function is fast to run it might make sense to run several evaluations within a single task.

Excellent suggestion.  I'll do this.  Thanks!

Apologies if you've already thought of this by the way.  I'm just emitting
thoughts from running through a trivial example.
On Mon, Apr 3, 2017 at 3:44 PM, Erik Welch notifications@github.com wrote:

Excellent suggestion. I'll do this. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/eriknw/dask-patternsearch/issues/1#issuecomment-291252178,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AASszMg4MoLBVAbrwtRTgKJvvR2EGhMWks5rsUwYgaJpZM4Mx-8F
.

Nope, I haven't thought of this yet.  Thanks for taking dask-patternsearch for a test drive and providing feedback.
I expect it's not too much of a burden for the user to specify a batch size as a keyword argument.  Were you thinking of being more clever and adapting the batch size based on some observed behavior?
Also, this worked on a trivial example for you?  Hooray!  You're bold ;)

I see.  This should be doable, although I'll hold off for a bit until we have better tests.  How should we spell this?  min_task_time=0.05 keyword argument, or should we also try to estimate the scheduler and communication overhead and choose the target task time as appropriate?  Do you have any intuition or experience for what a good min_task_time would be?
It's also possible for function evaluations to take wildly different times.  For example, a function may begin with if not is_feasible(x): return np.inf.

I agree that this is not pressing.
the ideal task duration depends on how many machines you're running.  If you assume a conservative 1ms overhead per task and you have 1000 cores then you want tasks that will take 1s to run.  You probably want a lower bound of something like 10ms.  Roundtrip system latency is going to be about that anyway.

Cool, thanks.
One use case I've thought about supporting is sub-task reuse for separable functions.  For example, for
def f(w, x, y, z):
    return g(w, x) * h(y, z)

results for g and h could be reused.  Due to the grid-like structure of how points are sampled with the stencil, the performance benefit could be significant.  This should be easy to do with delayed.
I think batching tasks could complicate doing this.

@jcrist just went through optimizing this sort of problem.
Using Dask.delayed and depending on consistent hashing to remove duplicate work is definitely a solution, but you might do well to handle this by hand as well if the number of trials grows large enough for overhead to matter (although this is probably less of an issue in your case since everything is asynchronous).

Thanks.  I'll take a look at the work Jim did (and bother him if needed) when I get this far.  You're right, though, I expect overhead to be less important due to being fully asynchronous.  Less important doesn't mean not important though.  One step at a time...

I think I'm okay with requiring the user to manually specify the batch size.  Doing so will exclude the possibility of sharing intermediate results as discussed above.  The expectation when grouping is that the function calculates quickly.
I think we should also provide an option to group the trial points into a single array.  I assume it's noticeably more efficient for the scheduler to handle a single array than N smaller arrays.  The main use case to support, though, is a vectorized cost function, which can be orders of magnitude more efficient (especially if executed on GPUs).  This fits nicely into our goal of performing "effective brute force optimization" (new tagline?).

Done.  The user must specify the batch size.

authors: eriknw mrocklin

repo: eriknw/dask-patternsearch


text:
Refactor fix.py

closes #4
refactored fix.py to use a dictionary structure instead of a list.

:shipit:

source: gharchive/pull-request

repo: erikodes-community/fixit


text:
Bug? Radio button field.input value === undefined all the time

Hello Redux Form dev team.
I have a really funny question, i think i discovered a bug.
Basicly when i start my form with the following values:
MyForm = reduxForm({
      name: '',
      startAt: '',
      endAt: '',
      isActive: true,
      milestones: []
})(MyForm)

It runs the action @@redux-form/INITIALIZE and i can verify that the my-form.values.isActive = true
but when i then render the input field:
// Render function
renderRadio = ({ input, type }) => {
    console.log(input.value); // this returns undefined even tho value is true in the store?
    return <input {...input} type={type} checked={input.value} />
  }

// Actual JSX
<Field name="isActive" component={this.renderRadio} type="radio" />

Is this a bug, or am i just completely missing something, happens now and then, i've already been looking on stack overflow and such and i should be doing it as described.
Cheers!

Also another finding when i press the input the action @@redux-form/CHANGE is fired with payload 'on' ? why not just toggle true false, its already hooked on to the form field ?

If i change my input type to text, i can get input.value when i set it to radio it becomes undefined again.
Is this a bug or ?!
Basically i just want it to toggle the value false -> true and vice versa

I have the exactly same problem with a component to render multiple choices of radio or checkbox inputs.
If the type is checkbox, everything works fine and input.value returns what's on Redux.
When I change it to radio, input.value always returns undefined even though the field was programmatically changed and the value is present in Redux.

Radio buttons are done with one Field per input each with the same name prop. See the simple example:

Sorry @erikras, i havent been able to come back to this issue, i ended up moving with a nother solution, but ill try to come back to this later when i need to use a radio button, will close now, maybe ill re-open
But thanks for the reply!

How can you handle validation display for the group as a whole with this approach?
For example, we're using react-bootstrap, and using an approach similar the the material-ui example we get the undefined value issue, but using this approach I can't see anyway to set the validationState in the FormGroup element that surrounds the Fields

@Nopzen What was your solution? I have the same issue as you :(

Don't have one yet :( .
We only get the undefined value issue if we include a type="radio" in the Field.
Without it we have an issue where tabbing through a radio group makes a selection, but as this is the least worst issue it's what we're using for now.

@FKSI - I ended up using a dropdown with 2 options instead, i didn not have more time to spend on this, project had to move on :) Sorry, i will proberly look back into this later

@Nopzen  @status203 I made it work 👍
const radioButtonGenerator = (
  { input, type, options, meta: { touched, error, warning } }
) => (

  {
    options.map(o =>

          <input
            className={classnames(['radio-dot'])}
            type='radio'
            {...input}
            value={o.value}
            checked={o.value === input.value}
          />

          {o.title}

    )
  }

)

const RadioButton = ({ content, renderField }) => (

    <Field
      component={radioButtonGenerator}
      name={content.id}
      id={content.id}
      options={content.options}
    />

)

The trick seems to not set type in the Field props.

Wow, thnx @FKSI just wasted 2 hours of my life and found your solution! #mademyday

@kobeaerts You are welcome, I wasted 2 hours too :) @erikras, we might consider to make it clearer in the docs?

Great @FKSI, i will try this out i have a new upcoming project that is solely a form based website, so this should be useful since i need a lot of radio buttons there.

Reopen? Removing type='radio' is still the only workaround.

Hi Guys,
This may help for Radio buttons.
<Field     name="isFree"     label="Radio On ?"     type="radio"     value={this.state.isChecked}     onChange={() => { this.setSwitch(); }} />
 setSwitch = (value) => {     console.log(value);     this.setState((prevState) => {       return { isChecked: !prevState.isChecked };     });     this.props.dispatch(change(formName, 'isFree', this.state.isChecked));   }

authors: FKSI Nopzen bamne123 batamire erikras kobeaerts pbrandone status203

repo: erikras/redux-form


text:
onChange not triggering

I have this:
<select
            type="select"
            onChange={(evt) => console.log(evt)}
            defaultValue="bank_account"
            field={method}
            formatMessage={formatMessage}
            {...method}
          >
            <option value="bank_account">
              {formatMessage(messages['withdraw.method.bank_account'])}
            </option>
            <option value="debit_card">
              {formatMessage(messages['withdraw.method.card'])}
            </option>
</select>

In particular the onChange={(evt) => console.log(evt)} is never being triggered. And depending on the result of this field, the rest of the form is properly populated. Is there a reason why this could be happening?

That's because the {...method} is providing an onChange prop that is overriding yours. Change the order.
<select
  type="select"
  defaultValue="bank_account"
  field={method}
  formatMessage={formatMessage}
  {...method}
  onChange={(evt) => console.log(evt)}>
  // options
</select>

Thank you, @erikras. <3


text:
An idiom for many moves

This (seen at http://fizmat.kz/downloads/index.php?q=aHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20vMTUxNTMyNQ%3D%3D) is an antipattern:
with self.term.location(x, y):
  print '╔' + '═' * (w - 2) + '╗'
for i in range(h - 2):
  with self.term.location(x, y + i + 1):
    print '║'
  with self.term.location(x + w - 1, y + i + 1):
    print '║'
with self.term.location(x, y + h - 1):
  print '╚' + '═' * (w - 2) + '╝'

It's long and does twice as much cursor movement as necessary. I can think of several ways I would refactor to make it more concise, but perhaps that shouldn't be the caller's responsibility. Think about providing a standard concise spelling.

Hey, look at this. location() can, quite unintentionally, be used without coordinates—just as a cursor position rememberer.
move = self.term.move
with self.term.location():
    print move(x, y) + '╔' + '═' * (w - 2) + '╗'
    for i in range(h - 2):
        print move(x, y + i + 1) + '║'
        print move(x + w - 1, y + i + 1) + '║'
    print move(x, y + h - 1) + '╚' + '═' * (w - 2) + '╝'

You could even factor up one more notch if you didn't want to repeat the moves. I recoil from doing that in the framework, since I don't think stdout should be special, and I hate those kits that make you learn their own print functions.

repo: erikrose/blessings

license: mit


text:
qsVariable v 4, no Variable Name selection

Wondering if it's my extension install, but I can't seem to give the variable a name, am I missing something ? How do assign a variable name with this extension?

You can no longer create variables with the extension. You can create variables in the script (which I would recommend) or in the variable dialog. This also allows you to give them a default value.
In the property panel there is a dropdown that allows you to select one of the existing variables to use:

The install of version 4 on mine does not show the selection Name - https://www.dropbox.com/s/y9hrxogtwi75wh4/Capture.JPG?dl=0

What Qlik Sense version are you using??

I’m using the latest Server version – this is what I see with version 4. Same thing occurs in the Desktop version. Funny thought, when I go back to 3.2, I can see the Name selection, but it does not change the variable.
From: Erik Wetterberg [mailto:notifications@github.com]
Sent: Thursday, December 14, 2017 8:57 AM
To: erikwett/qsVariable qsVariable@noreply.github.com
Cc: ninjasoft2 michael.ricciardi@reltechinc.com; Author author@noreply.github.com
Subject: Re: [erikwett/qsVariable] qsVariable v 4, no Variable Name selection (#32)
What Qlik Sense version are you using??
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/erikwett/qsVariable/issues/32#issuecomment-351717373 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ag62MAWn9rSoiYVPLbX4vvk18rBfS8FMks5tASkogaJpZM4RA66D .  https://github.com/notifications/beacon/Ag62MHeKBv2aIVLO_ywUEjpVCSZ3eSFpks5tASkogaJpZM4RA66D.gif

I don’t see that with version 4. This is what I see. I’m creating the variable in the load file
From: Erik Wetterberg [mailto:notifications@github.com]
Sent: Thursday, December 14, 2017 1:14 AM
To: erikwett/qsVariable qsVariable@noreply.github.com
Cc: ninjasoft2 michael.ricciardi@reltechinc.com; Author author@noreply.github.com
Subject: Re: [erikwett/qsVariable] qsVariable v 4, no Variable Name selection (#32)
You can no longer create variables with the extension. You can create variables in the script (which I would recommend) or in the variable dialog. This also allows you to give them a default value.
In the property panel there is a dropdown that allows you to select one of the existing variables to use:
https://user-images.githubusercontent.com/2550331/33978097-49db2bce-e09e-11e7-9722-6a241b6f1dde.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/erikwett/qsVariable/issues/32#issuecomment-351618732 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ag62MLVuelJC1MGrdQv5tpsFhfDBHzhoks5tALyjgaJpZM4RA66D .  https://github.com/notifications/beacon/Ag62MLIdu5fAk8hSfWHsYgcN8aR0sfIrks5tALyjgaJpZM4RA66D.gif

By the latest version you mean November 2017??

3.2 SR 3
From: Erik Wetterberg [mailto:notifications@github.com]
Sent: Thursday, December 14, 2017 9:51 AM
To: erikwett/qsVariable qsVariable@noreply.github.com
Cc: ninjasoft2 michael.ricciardi@reltechinc.com; Author author@noreply.github.com
Subject: Re: [erikwett/qsVariable] qsVariable v 4, no Variable Name selection (#32)
By the latest version you mean November 2017??
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/erikwett/qsVariable/issues/32#issuecomment-351732487 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ag62MBugm3IwUU-C6GRsuKCQ61YEXe1-ks5tATXrgaJpZM4RA66D .  https://github.com/notifications/beacon/Ag62MKv9vlMF8D_Ymv1sqXYAQjYsl6Omks5tATXrgaJpZM4RA66D.gif

On the desktop 3.2 SR 3 , but it reacts the same on the server, with I think is probably the same release
From: michael.ricciardi@domenix.com [mailto:michael.ricciardi@domenix.com]
Sent: Thursday, December 14, 2017 9:55 AM
To: 'erikwett/qsVariable' reply@reply.github.com; 'erikwett/qsVariable' qsVariable@noreply.github.com
Cc: 'ninjasoft2' michael.ricciardi@reltechinc.com; 'Author' author@noreply.github.com
Subject: RE: [erikwett/qsVariable] qsVariable v 4, no Variable Name selection (#32)
3.2 SR 3
From: Erik Wetterberg [mailto:notifications@github.com]
Sent: Thursday, December 14, 2017 9:51 AM
To: erikwett/qsVariable <qsVariable@noreply.github.com mailto:qsVariable@noreply.github.com >
Cc: ninjasoft2 <michael.ricciardi@reltechinc.com mailto:michael.ricciardi@reltechinc.com >; Author <author@noreply.github.com mailto:author@noreply.github.com >
Subject: Re: [erikwett/qsVariable] qsVariable v 4, no Variable Name selection (#32)
By the latest version you mean November 2017??
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/erikwett/qsVariable/issues/32#issuecomment-351732487 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ag62MBugm3IwUU-C6GRsuKCQ61YEXe1-ks5tATXrgaJpZM4RA66D .  https://github.com/notifications/beacon/Ag62MKv9vlMF8D_Ymv1sqXYAQjYsl6Omks5tATXrgaJpZM4RA66D.gif

OK, that's actually a pretty old version. You should use the 2.3.1 version of the extension:
https://github.com/erikwett/qsVariable/releases/tag/2.3.1

So what version is the master ?
From: Erik Wetterberg [mailto:notifications@github.com]
Sent: Thursday, December 14, 2017 10:01 AM
To: erikwett/qsVariable qsVariable@noreply.github.com
Cc: ninjasoft2 michael.ricciardi@reltechinc.com; Author author@noreply.github.com
Subject: Re: [erikwett/qsVariable] qsVariable v 4, no Variable Name selection (#32)
OK, that's actually a pretty old version. You should use the 2.3.1 version of the extension:
https://github.com/erikwett/qsVariable/releases/tag/2.3.1
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/erikwett/qsVariable/issues/32#issuecomment-351735306 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ag62MIczAblPCfeG40SHjWQlrnfihsPgks5tATg1gaJpZM4RA66D .  https://github.com/notifications/beacon/Ag62MEtnnEwEt-oDB1qLg54UNb3TI9mQks5tATg1gaJpZM4RA66D.gif

repo: erikwett/qsVariable


text:
Allow setting "response_type" other than "code"?

Description
Is there a way to explicitly set a response_type other than code? Specifically I'd like to be able to set it in the authorization opts: https://hexdocs.pm/oidcc/oidcc_authorization.html#t:opts/0
Searching through code I couldn't find a way to do this, and most of the test code just uses the code response type: https://github.com/search?q=repo%3Aerlef%2Foidcc+response_type&type=code
Ref:

https://openid.net/specs/openid-connect-core-1_0-17.html#id_tokenExample
https://auth0.com/docs/authenticate/login/oidc-conformant-authentication/oidc-adoption-implicit-flow#oidc-conformant

@Nezteb oidcc currently only supports the code flow.
The initial scope of this library was for code login flows only since erlang / elixir are traditionally running on a server and the code flow is the most appropriate one to use for that.
However with technologies like live view native, we might want to expand on that in the future.
What use case do you require a hybrid flow for that can’t be solved more securely using PKCE?

Thanks for the quick response Jonatan!
For our use-case, we only needed to do the initial user authentication to get an ID token back, AKA "login only". We figured this hybrid route would be simpler and more flexible as we could use it to fetch both an ID token for the browser and later also fetch an access token for our backend service.
That being said, we could easily rework our application to use the auth code method with PKCE. Before doing that, I wanted to ask about potentially supporting other "response_type" values; your reasoning makes perfect sense to me. 😄

authors: Nezteb maennchen

repo: erlef/oidcc


text:
Errai i18n can't have a global key

Hi Errai Team,
How can we have a global key value pair inside the json file on Errai that will work both
WelcomePage.html and LoginPage.html
e.g.
Inside i18n.json
{
   "hello" : "hello"
}

This is the current implementation based on errai i18n docs
We dont want to declare two instances of Hello because if we have 10 pages that require hello
then we will define "page.key" : "value" so it will be very very long
{
  "WelcomePage.hello" : "hello",
  "LoginPage.hello" : "hello"
}

Inside WelcomePage.html

</hello>

Inside LoginPage.html

</hello>

Any news Errai Team??

HI,
Currently there is not a way to define a translation key for multiple templates with one declaration. If you find that you have the same value being translated in many templates, you could extract that to it's own template and use it as a data-field.
For example you could make a @Templated bean like this (this example uses non-composite templated beans supported only in Errai 4):
HelloDiv.java
@Templated
public class HelloDiv {
  @Inject @DataField
  private Div hello;
}

HelloDiv.html

Then in any templated bean where you have a "hello" data field you can add this field, allowing you to only provide the translation for the key "HelloDiv.hello":
@Inject @DataField private HelloDiv hello;

This is now supported: https://issues.jboss.org/browse/ERRAI-993

repo: errai/errai


text:
Feature extraction

Hi
thanks for sharing your code with us. Is this model good for feature extraction or it has been designed only for the translation purpose?
Thanks:)

Hi,
It depends on what you mean by "feature extraction". The last layer of an LSTM (which sums up the entire input sequence), or even the attention matrix can be used as features for auxiliary tasks.
If you are talking about low-level audio features, it turns out that the speech-to-text models implemented here take as input pre-computed features (e.g., MFCCs), so they would not be very useful for this purpose.


text:
editor object in jsfile / jscommand fails to get selection

The editor.getSelection() function seems to fail in jsfile or jscommand, no matter selected with insert or visual mode.
jscommand { console.log(editor.getSelection()) } gets nothing, no matter mapped in vimrc file or put in editor command line.
But editor.getCursor() works just fine.

There's an Obsidian/CodeMirror bug/behavior (maybe that's intentional, I don't know), that the selection is cleared when a Vim command is initiated. For this reason plugin functionalities that rely on the selection use ugly trickery that constantly saves the last selection.
Since you can't do that as part of a jscommand, I guess it makes sense to expose the last selection as a variable.

expose the last selection as a variable

Could you please explain me how?

It's not something you can do right now unfortunately; I will add the functionality that like jscommand receives editor and view, it will also receive lastSelection.

There's an Obsidian/CodeMirror bug/behavior (maybe that's intentional, I don't know), that the selection is cleared when a Vim command is initiated. For this reason plugin functionalities that rely on the selection use ugly trickery that constantly saves the last selection

@esm7 Can you tell me a bit more about this hack? Cause it doesn't to work 100% for me. I'm trying to do
exmap TransformTitlecase obcommand obsidian-editor-shortcuts:transformToTitlecase
vmap <A-ç>T :TransformTitlecase

But the selection is still lost (and thus only word gets titlecased, rather than the whole selection)

Unfortunately that hack only applies to the internal workings of the Vimrc plugin, e.g. if you use jscommand you can get the "original" selection (before the Ex command clears it). AFAIK when it comes to Obsidian editor commands, they take the editor selection as-is, and it happens to be empty after executing an Ex command :(
I suggest you implement your TransformTitlecase command as a jscommand instead of calling the Obsidian functionality.

Got it, thanks:
exmap TransformTitlecaseSelection jscommand { editor.setSelections([selection]); this.app.commands.commands['obsidian-editor-shortcuts:transformToTitlecase'].editorCallback(editor) }
vmap <A-ç>T :TransformTitlecaseSelection

More examples at https://github.com/esm7/obsidian-vimrc-support/discussions/146


text:
Message: magick: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1882.   Stack Trace: undefined

Message: magick: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1882.
Stack Trace: undefined

Seems to be fixed for the most part on master, however I will reopen this issue if it still occurs after the 1.4 release.

Seems to still be occurring (although it seems like it might be doing it silently), reopening.

Seems to still be occurring (although it seems like it might be doing it silently), reopening.

Haven't seen this issue in a long while, closing again as fixed.

authors: Nicknackatory TheEssem

repo: esmBot/esmBot


text:
error report from the bot when i post /caption

Command that caused the error
i typed /caption and the bot says uh oh i ran into a error
Image that caused the error
https://discord.com/channels/1019216080301989898/1019283364437557250/1028999041364791307
Steps to reproduce

Go to '...'
Click on '....'
Scroll down to '.....'
See error

Self-hosted instance?
Yes
Error file

Additional context
i dont know what to say here

The image is inaccessible and you didn't post the error file. Not much I can do here.

authors: TheEssem miranyafuz


text:
I2C: add apply_config, implement SetConfig, add with_sda and with_scl

Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝

[x] I have updated existing examples or added new ones (if applicable).
[x] I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
[x] My changes were added to the CHANGELOG.md in the proper section.
[x] I have added necessary changes to user code to the Migration Guide.
[x] My changes are in accordance to the esp-rs API guidelines

Extra:

[x] I have read the CONTRIBUTING.md guide and followed its instructions.

Pull Request Details 📖
Description
Part 3 of #2437
cc https://github.com/esp-rs/esp-hal/issues/2416 and closes https://github.com/esp-rs/esp-hal/issues/1919
with_sda and with_scl are now consistent with SPI and allow reconfiguring the bus (though a bit of a replace_with hackery may be needed).
This PR also aims to clarify the meaning of the timeout configuration.

I remember some devices (e.g. MPU6050) are very sensitive to seeing activity on SDA/SCL during pin init .... probably everything is fine but there was a reason why setting the pins was done like it was - I just want to double check that

Please do, but the pins aren't connected to the peripheral during configuration, so I don't think anything was changed here meaningfully.

authors: bjoernQ bugadani

repo: esp-rs/esp-hal


text:
AT BluFi missing Bluetooth connection and disconnect URC message

Is your feature request related to a problem?
The serial port information of AT BluFi is as follows:
AT+BLUFI=1

AT+BLUFI=1
OK

+BLUFIDATA:6,123456

The following contains Log information:
[发送][14:56:10.060]AT+BLUFI=1

[接收][14:56:10.160]AT+BLUFI=1

[Log][14:56:10.251]BLUFI init finish

[接收][14:56:10.257]
OK

[Log][14:57:04.999]BLUFI ble connect

[接收][14:57:34.481]+BLUFIDATA:6,123456

[Log][14:57:37.845]blufi close a gatt connectionBLUFI ble disconnect

[Log][14:58:19.529]BLUFI ble connect

[Log][14:58:32.020]BLUFI get wifi status from AP

Describe the solution you'd like.
It is expected that the corresponding URC message can be sent when the Bluetooth is connected and disconnected
for example:
AT+BLUFI=1

AT+BLUFI=1
OK

+BLECONN

+BLUFIDATA:6,123456

+BLEDISCONN

Describe alternatives you've considered.
No alternative has been found
Additional context.
This function is used to check whether the APP Bluetooth is connected to the ESP32 module

@Luxin812 please check

@xiaoxinpro The latest master branch already supports printing blufi connection and disconnection logs. You can update the firmware to the latest and test it.

@Luxin812 Pass test, Thanks.
Here is the test log:
[发送] AT+BLUFI=1

[接收] AT+BLUFI=1

[接收] +BLUFICONN

[接收] +BLUFIDATA:6,123456

[接收] +BLUFIDISCONN

We assume this worked for you, and will close it. If that's not the case, please open another github issue.

authors: Luxin812 ustccw xiaoxinpro

repo: espressif/esp-at


text:
A Panic occured in 'internal\core\properties.rs', at line 323, column 13  (IDFGH-12022)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.1.2
Espressif SoC revision.
ESP32-S3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
esp-idf-v5.1.2
Power Supply used.
USB
What is the expected behavior?
I want call API and update UI with SLint library, I have four Task (picture 1), Function callAPI in Task 1

What is the actual behavior?
I call the api and update UI normally until I call so much times (30 times) then I get issue (picture 1), but another Task still run nomally only Task 1 (task call api) get issue

)
Steps to reproduce.

Build (succes)
run(success)
call api (succes)
call api so much times (Task 1 stop)

Debug Logs.
A Panic occured in 'internal\core\properties.rs', at line 323, column 13

More Information.
I use T-Displays3 for device and SLint for UI

This assertion seems to be coming from SLint library so I think it would be more appropriate to ask for help there.
From what you posted I can't see anything that implies that this is an issue with ESP-IDF.
Feel free to re-open if there is any new information that shows any specific issues related to esp-idf

authors: ESP-Marius tao-a-man

repo: espressif/esp-idf


text:
[TW#27605] SPI half-duplex and full-duplex same device

IDF version: v3.1.1-46-gcdd3131f8

Problem Description
It is not possible to use SPI master driver in both half-duplex and full-duplex modes with the same device (spi_device_handle_t). It is needed to remove the device from the bus and it again.
This may be needed when using DIO/QIO transmissions and standard full-duplex transmissions.

Do you have spec for this kind of chip?

@michprev Feel free to reopen this issue if you have any updates. Thanks.

authors: Alvin1Zhang ginkgm michprev


text:
components/bootloader: Build fails for CONFIG_FLASHMODE_QIO=y

When I enable QIO flash mode with CONFIG_FLASHMODE_QIO=y the linker fails with
build/bootloader/main/libmain.a(flash_qio_mode.o):(.literal.enable_qio_mode+0x8): undefined reference to `esp_rom_spiflash_master_config_readmode'
build/bootloader/main/libmain.a(flash_qio_mode.o): In function `enable_qio_mode':
sdk/esp32-esp-idf/components/bootloader/src/main/./flash_qio_mode.c:167: undefined reference to `esp_rom_spiflash_master_config_readmode'

A recursive grep for esp_rom_spiflash_master_config_readmode shows the call, the prototype definition but no implementation of this function (9050307dfe600c915adaccf8076220d6474876db).

Hi @devsaurus ,
Thanks for reporting this. This was a regression merged earlier this week (1132ef7554). We are currently in the process of merging a fix, it should land in the next few days.
Angus

Fixed in 85e76a7.

authors: devsaurus igrr projectgus


text:
Added DANE

Signed-off-by: OmegaRogue thatomegarogue@gmail.com
Added DANE Watchface, Inspired by E.D.I.T.H.

Thanks! Please could you just change "description": "A detailed description of my great app", and remove apps/dane/add_to_apps.json and it'll a perfect to merge?

Awesome, thanks!

authors: OmegaRogue gfwilliams

repo: espruino/BangleApps


text:
Add School Calendar

Sorry if my welcome was accidentally edited I did not mean to change that.
Read me file:
School Calendar
School Calendar is a calendar that you can see your upcoming classes or schedule.
Usage:
Enter your calendar events on the customizer then upload. (all day events are not supported yet)
Once uploaded on the watch when in the table mode you can use BTN1 and BTN3 to scroll up and down on the list. (The red rectangle indicates your current position on the table and your yellow rectangle indicates your current schedule item or your next schedule item.)
If you press BTN2 it will go into detail mode, and you can see additional information about your schedule item. Also, in this mode you can scroll up and down with BTN1 and BTN3 to move around in the table. To exit detail mode press BTN2 again.
Screenshots:

Updates Coming Soon:

[ ] Notifications
[ ] All Day Events
[ ] Improved Rendering Screen
[ ] Better Graphics
[ ] Scrolling Table
[ ] Bangle.js V2 Compatibility
[ ] Full Calendar (Calendar that does not have repeating weekly events.)

Creator
Ronin0000

Wow, looks nice - thanks!
Just before I commit this, will it work without the apps/schoolCalendar/fullcalendar/interaction/src folder? It seems like that's typescript that is likely compiled down to main.js or something like that. It'd avoid adding a whole bunch of extra files that are not required to the repo

Hi @gfwilliams, I just tested and it will work without the files in: apps/schoolCalendar/fullcalendar/interaction/src folder. You can delete those files. Thanks!

Heh this is a cool app! Wish I had something like this at highschool!

Great - thanks!

authors: Ronin0000 gfwilliams weeurey


text:
Refactor relative path in all TS files

Refactor the current solution where all the relative paths don't have ../../../../ anymore in it and make the code more human-readable
Reference: https://decembersoft.com/posts/say-goodbye-to-relative-paths-in-typescript-imports/

It should not be a standalone task. We should create a more complex plan of deep review/refactor of the front-end part.

authors: DmitryAstafyev fur-gan

repo: esrlabs/chipmunk


text:
stepWait not used in ProposeConfChange

stepWait was implemented to fail-fast in Propose method.
But it was never used in ProposeConfChange method.
Question was raised about it on original PR.
Also, it's was causing timeout in ExampleCluster_memberAddAsLearner test. comment
This isn't a critical issue, because in production ProposeConfChange isn't usually called consecutively. But it seams to me that stepWait was missed for ProposeConfChange method.

OP wonders about ProposeConfchange().
Besides ProposeConfChange(),  Propose()  has also some problems which probably stems from the same origins.
I will talk only about cluster where DisableProposalForwarding = false, because = true has it own set of unfollow-ability of failed proposals. It helps drafting things quickly, but it's bad in ensuring reliability.
(*node).Propose() method is widly undocumented on what can it be expected of it.
An API is like a contract, and without specifications on it, what are its limitation etc..., it's like there is no guarantee at all to have it to eventually do something in any specific timeframe, so it's unuable in any serious production environment without first reading all code path it branches into to figure out those.
.Propose() only specification is Note that proposals can be lost without notice, therefore it is user's job to ensure proposal retries. which does not help at all. No words on when/how the loss can be noticed and/or assumed.
It appears that the set of predicates could hold for .Propose() :

when it has been called on a current leader (rd.SoftState.Lead == r.id)
and .Propose() returned err == nil

that means that it is guaranteed to be proposed and ultimately commited/applied...

...guarantee which would hold as long as "this" leader consider itself to have leadership

otherwise you should trigger cancellation/timeout of the ongoing proposal waiting status

which would mean we seem to be able to assume that the Proposal does not need retrial in the meantime if the rest of the conditions hold

.ProposeConfChange() is worse, and its API behavior for callers seems to be "hope for the best", "retry after some unspecified time if commit does not appears in .CommittedEntries[]"
The need is somewhat simple : people wants to have Propose() and ProposeConfChange() succeed as soon as possible, which entrails to have them fail "fast" is they are failing, which could be better rephrased as : having a mechanism (or documentation) on how to known for a given Proposal, As-Soon-As-Possible, that it failed/dropped, so that the caller can (at its discrete choice) either quickly return the error, or quickly retry.
I understand that the protocol and logic behing it implies that there is no timeframe guarantee on the commitability or failure of Proposals.
It's OKAY for something to be in progress, and having to wait for an indeterminate amount of time for it to progress, as long as further progress is expected.
What's not okay if for something to definitely having stopped progression, where failure is certain (absence of further progress is certain), but no mechanism is being provided to detect/notify the certainty of the failure.
What indeed feels unatural is, when a "proposal requester" (e.g. a GRPC caller whishing to have some data commited to the Raft logs) DIRECTLY requested the leader, and when this leader reached a point of knowledge of the wherabouts of the ongoing Proposal, specifically reached knowledge of its failure, there is zero documentation on how to detect that.
Note : I'm saying "a / the leader", because if the leader is splitbrained from the majority and doesn't know it yet, it's okay for it to hold "proposal requester" in holding status, because it would still consider itself as "a leader" whilst being only really an "incapacitated leader", whereas an "operative leader with majority" has been elected on the other splitbrain side, but of course the incapacitated wouldn't know it before any timeout occurs.
I think that OP's ProposeConfChange is even worse that Propose(), because ProposeConfChange() deep calls .stepWaitWithOption() with wait = false, which means that if the leader ITSELF decides to drop the proposal, the caller of ProposeConfChange() would have no way of knowing it.

authors: folays lavacat

repo: etcd-io/raft


text:
[bugfix] Fix bug ignoring a partition defined in 'access'

SlurmNode attributes are set to empty sets if they cannot be
retrieved by the corresponding description.

Create abstract method get_all_nodes on the base Job class.

Remove method get_partition_nodes.

Create more unittests for flexible allocation.

Fixes #692

@jenkins-cscs retry daint

Codecov Report

Merging #693 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #693      +/-   ##
==========================================
+ Coverage   91.89%   91.89%   +<.01%
==========================================
  Files          77       77
  Lines        9446     9452       +6
==========================================
+ Hits         8680     8686       +6
  Misses        766      766

Impacted Files
Coverage Δ

reframe/core/schedulers/slurm.py
59.71% <100%> (-0.29%)
:arrow_down:

reframe/core/schedulers/__init__.py
94.19% <100%> (ø)
:arrow_up:

unittests/test_launchers.py
91.86% <100%> (ø)
:arrow_up:

reframe/core/schedulers/local.py
98.93% <100%> (ø)
:arrow_up:

unittests/test_schedulers.py
97.67% <100%> (+0.04%)
:arrow_up:

reframe/core/schedulers/pbs.py
66.66% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

authors: codecov-io teojgo

repo: eth-cscs/reframe


text:
Travis refactoring

This PR:

Integrates new CI builds for Clang (4.0.0 and 5.0.0)
Enables running on container based infrastructure (faster build times) https://docs.travis-ci.com/user/reference/overview/
Uses new build stages (allows to configure shared caches)
Updates the Readme to display new badges and add a section about the status of the CI (as well as a section about the License)

launch jenkins

launch jenkins


text:
AWQ loader for transformers

Changes:

Adds support for loading AWQ models with AutoAWQ.
Automatically determine model type & choose corresponding loader

Looks for '-gptq' or '-awq' in model identifier

Added Quantization section to Transformers doc.

Limitations:

Setting fuse_layers to True uses much more memory (2x model size w/ batch_size=1) and running batched inference when fused causes CUDA kernel errors
Similarly, running large batches can occasionally cause CUDA kernel errors

Thanks, merging this now. I could test successfully to use AWQ both via local:... and via lmql serve-model.

repo: eth-sri/lmql


text:
Uncaught error in Postgres

I'm getting this error after the setup of https://github.com/citizenos/etherpad-lite-heroku :
2020-11-18T18:40:35.681161+00:00 app[web.1]: /app/etherpad-lite/src/node_modules/ueberdb2/databases/postgres_common.js:80
2020-11-18T18:40:35.681161+00:00 app[web.1]: if (result.rows.length == 0) {
2020-11-18T18:40:35.681162+00:00 app[web.1]: ^
2020-11-18T18:40:35.681162+00:00 app[web.1]:
2020-11-18T18:40:35.681163+00:00 app[web.1]: TypeError: Cannot read property 'rows' of undefined
2020-11-18T18:40:35.681163+00:00 app[web.1]: at Query.callback (/app/etherpad-lite/src/node_modules/ueberdb2/databases/postgres_common.js:80:16)
2020-11-18T18:40:35.681164+00:00 app[web.1]: at Query.handleError (/app/etherpad-lite/src/node_modules/pg/lib/query.js:139:19)
2020-11-18T18:40:35.681164+00:00 app[web.1]: at process.nextTick (/app/etherpad-lite/src/node_modules/pg/lib/client.js:66:15)
2020-11-18T18:40:35.681164+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:61:11)

It seems on line 80 the err should be tested on.
thanks!

Try without heroku.

Etherpad has nothing to do with heroku or the repo you are referring to btw.

Try this branch please: https://github.com/ether/ueberDB/pull/143 -- It should hopefully be fixed now.

PR #143 won't fix this issue. I created a separate PR (#144) that should.

authors: JohnMcLear rhansen sylvinus

repo: ether/ueberDB


text:
chore(deps): Bump revm version to v13

Description
revm recently released a new version v13 which contains great work from @BrianBland implementing the granite hard fork in revm.
This PR updates the version of revm to 13.0.*.

#422  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @refcell and the rest of your teammates on  Graphite

Codecov Report
Attention: Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.

Project coverage is 77.7%. Comparing base (44146a5) to head (99d5fc1).

Files
Patch %
Lines

crates/mpt/src/db/mod.rs
0.0%
4 Missing :warning:

crates/executor/src/lib.rs
50.0%
1 Missing :warning:

Additional details and impacted files

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter refcell

repo: ethereum-optimism/kona


text:
fix(hack): skip sepolia devnet

I'm not sure what this might break (so let's see if CI still passes), however this is required because without this the op-upgrade script in the monorepo does not work properly, for the reason explained in the code comments. We use op-upgrade to generate the input.json bundles used for upgrades in the superchain-ops repo

CI did fail, but IDK if it's the related or not. I'm fine with this change as long as we document that it's the L1 chain ID & track that we need to re-enable this check at a later point.

Thanks @trianglesphere, just pushed https://github.com/ethereum-optimism/superchain-registry/commit/56c51a3a46113f8f974a31b5ae9972b262f1b5df to clarify that it's the L1 chain ID

repo: ethereum-optimism/superchain-registry


text:
Add towncrier for release notes

What was wrong?
With the recent flurry of activity on eth-tester, we've had a bunch of conflicts in the CHANGELOG. Hopefully this will remove that problem.
How can it be fixed?
Add the Towncrier dependency, write a few scripts for the Makefile, and add tests to CI. web3py has a good setup to reference.

Closed in #221

repo: ethereum/eth-tester


text:
Implement EIP-7251

https://eips.ethereum.org/EIPS/eip-7251

Closed in #991

repo: ethereum/execution-specs


text:
Initial merge spec

Adds an initial spec for the merge, given that we now have 2 EIPs, 3 devnets and a spec for the Engine API.
Cute Animal Picture
My dog wants me to shut down my computer 👋

Codecov Report

Merging #390 (5464463) into master (296d030) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 5464463 differs from pull request most recent head 074e203. Consider uploading reports for the commit 074e203 to get more accurate results

@@           Coverage Diff           @@
##           master     #390   +/-   ##
=======================================
  Coverage   94.92%   94.92%
=======================================
  Files          46       46
  Lines        2522     2522
=======================================
  Hits         2394     2394
  Misses        128      128

Flag
Coverage Δ

unittests
94.92% <ø> (ø)

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

Continue to review full report at Codecov.

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

authors: codecov-commenter timbeiko


text:
Let the compiler resolve import

Referring to https://github.com/ethereum/remix-tests/blob/master/src/compiler.js#L20
Now the source list is built before compiling, perhaps we could let the compiler resolve import ( by calling the callback - https://github.com/ethereum/browser-solidity/blob/master/src/app.js#L216 )

I m not sure we will get any better performances though.. but the code might be lighter in that case.

repo: ethereum/remix-tests


text:
Add test for eth_getBalance at a specific block_number

What was wrong?
There was a test missing for the bug fixed in #900
How was it fixed?

Made chain_without_block_validation fixture use MiningChain in order to send eth from one address to another. I've searched for the usage of this fixture in code and it seems like it was stale and not used anywhere, so was safe to modify it.
Added test for eth_getBalance at a specific block_number by sending eth to an account from funded_address and then by comparing the balance at block_no_before_transfer and at block_no_after_transfer .

To-Do

[ ] Clean up commit history

[ ] Add entry to the release notes

Cute Animal Picture

Test failures seem unrelated to this change. The same tests are failing for me locally on master.

repo: ethereum/trinity


text:
create batch: create failed

⚠ Support requests in an issue-format will be closed immediately. For support, go to Swarm's Discord.
Context
when I try to buy stamps the issue happens
Summary
when I try to buy stamps the issue happens
Expected behavior
Should return status 200 and batch id
Actual behavior
{"code":500,"message":"cannot create batch"}
Steps to reproduce
Spin up Swarm Bee from docker image
deposit xDAI and BZZ
try buying batch
Possible solution

Try running your node with --verbosity 5 and then capture the logs when you attempt to purchase the stamp.   The bee logs go a long way to helping understand failures.

Also, check if you have any newly created stamps. In case one was actually created.

https://github.com/ethersphere/bee/blob/master/pkg/api/postage.go#L123
"time"="2023-12-13 12:59:38.953291" "level"="debug" "logger"="node/api/post_stamp" "msg"="create batch: create failed" "error"="create batch: depth 20 bucketDepth 16 immutable true: Invalid: VM execution error."

"logger"="node/transaction" "msg"="estimage gas failed" "sender_address"="0x4645b863faAFDB34be7Ad4a902C2f82a88005Ff0" "error"="Reverted 0xf4d678b8"

looks like an issue with your rpc provider?

looks like an issue with your rpc provider?

Why that?
I tried two different providers

Seems the issue with provider and also amount was small

authors: acha-bill istae ldeffenb sosoxuc

repo: ethersphere/bee


text:
Tag already exists

Summary
While uploading lots of file using the /bytes and /chunks API, i get the following error almost always.
INFO[2020-10-27T19:38:53+05:30] api access                                    duration=0.000838421 ip=127.0.0.1 method=POST proto=HTTP/1.1 size=53 status=200 uri=/chunks/0bbbf541813c4a92394a219dc9694f64dcce7609d9e25ddb8cc2c1e0c2b6f498 user-agent=Go-http-client/1.1
INFO[2020-10-27T19:38:53+05:30] api access                                    duration=0.003411815 ip=127.0.0.1 method=POST proto=HTTP/1.1 size=128 status=200 uri=/bytes user-agent=Go-http-client/1.1
INFO[2020-10-27T19:38:53+05:30] api access                                    duration=0.000646409 ip=127.0.0.1 method=POST proto=HTTP/1.1 size=53 status=200 uri=/chunks/465307e0cc6cbbf3668f69031b877dc9db77e90e4af62434b2ed6709b4c6c403 user-agent=Go-http-client/1.1
INFO[2020-10-27T19:38:53+05:30] api access                                    duration=0.004036734 ip=127.0.0.1 method=POST proto=HTTP/1.1 size=127 status=200 uri=/bytes user-agent=Go-http-client/1.1
DEBU[2020-10-27T19:38:53+05:30] chunk upload: get or create tag: cannot create tag: already exists
ERRO[2020-10-27T19:38:53+05:30] chunk upload: get or create tag
INFO[2020-10-27T19:38:53+05:30] api access                                    duration=0.000234339 ip=127.0.0.1 method=POST proto=HTTP/1.1 size=75 status=500 uri=/chunks/1dc117d6aa43a7548a69e972e0dba9b7c82c6df7dd2b6a0ad680ff496dd1b29a user-agent=Go-http-client/1.1

Steps to reproduce
upload many files using /bytes and /chunks API
Expected behavior
bee should accept the data and return http 200
Actual behavior
i am getting a status 500, with the above log
Other Informations

OS: macos catalina  10.15.7
go version go1.14.2 darwin/amd64
bee version: 0.3.2-8bd9e28
API Headers did not contain any tags-id while sending (so it should create a temp tag internally).
/bytes has encryption and pin headers with ~20K size
/chunks has only pin header
Please let me know if you need any other information

Most likely it is a rando number collision TagUidFunc()

This is correct, we do not cleanup tags and the collision probability raises with the number of uploads. We should have greater space for random id generation. To make id a byte slice instead of uint32.

Bump. I am getting this quite often nowadays.

#985 is related

It was decided today to proceed with fixing this bug by not letting the chunks endpoint to automatically generate a new tag for each call.
This way, you are less likely to get into collisions. #1084 (point 7) defines also that we implement a GET endpoint on tags, which will help you to delete existing tags in order to create more space.

It was decided today to proceed with fixing this bug by not letting the chunks endpoint to automatically generate a new tag for each call.
This way, you are less likely to get into collisions. #1084 (point 7) defines also that we implement a GET endpoint on tags, which will help you to delete existing tags in order to create more space.

@jmozah , would be great if you can do some QA on this issue. Is it fixed?

@jmozah , would be great if you can do some QA on this issue. Is it fixed?

@significance is going to validate if nothing needs to change in our docs. Just to be sure.

authors: Eknir janos jmozah


text:
PSS Mailboxing

User story

Story

As a PSS recipient, I want to receive a PSS message when I come online after it was sent, such that I don't miss messages when I am not online
As a sender of PSS message, I want that the recipient receives the message even when he is not online at the moment of sending, such that I don't have to worry about him being online or not at the moment that I send my message

Acceptance criteria

When a node comes online and there is a PSS message in the neighborhood that is addressed to him, this PSS message will be opened during the syncing process of the node. There is no functional difference with receiving a PSS message at the moment that you are online.

Background

Right now, PSS doesn't recognize PSS messages when you come online, because the hook is not triggered at the right message. @zelig had an initial attempt at solving this, but recognizes that his approach is perhaps too difficult. (see #785)
Tasks

Task
Assignee
Done (1), or 0

Hi @zelig , you were working on this? I don't see a PR attached. Please note that tomorrow is in principle the last day to merge code for the release.

Needs documentation: perhaps we can explicitly mention on our docs that a user will receive a message, even if he/she is not online

Needs documentation: perhaps we can explicitly mention on our docs that a user will receive a message, even if he/she is not online


text:
Parallelize CI Jobs

To reduce the time spent running the CI pipeline configured through GitHub Actions, it should be refactored into parallel jobs. A task should exist to build the Docker images and expose them as artifacts used by downstream jobs. Separately formatting, linting, type checking, complexity checking, and testing should happen in parallel.

Word of warning: see https://github.com/ethyca/fidesops/issues/90 where we have all CI jobs in parallel, but it's a really inefficient use of CI minutes...!

See my follow-up comment here too: https://github.com/ethyca/fidesops/issues/90#issuecomment-974196096
Looks like enabling docker caching across jobs will be a rather non-trivial thing, unfortunately

repo: ethyca/fides


text:
NPFG path following offboard mode

Please use PX4 Discuss or Slack to align on pull requests if necessary. You can then open draft pull requests to get early feedback.
Describe problem solved by this pull request
A clear and concise description of the problem this proposed change will solve.
E.g. For this use case I ran into...
Describe your solution
A clear and concise description of what you have implemented.
Describe possible alternatives
A clear and concise description of alternative solutions or features you've considered.
Test data / coverage
How was it tested? What cases were covered? Logs uploaded to https://review.px4.io/ and screenshots of the important plot parts.
Additional context
Add any other related context or media.

Included https://github.com/ethz-asl/ethzasl_fw_px4/pull/53

Closing as stale


text:
Add support for RFC 3657

Add module and test for RFC 3657

Codecov Report

Merging #120 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
+ Coverage   99.41%   99.43%   +0.01%
==========================================
  Files         109      110       +1
  Lines        6524     6541      +17
==========================================
+ Hits         6486     6504      +18
+ Misses         38       37       -1

Impacted Files
Coverage Δ

pyasn1_modules/rfc3657.py
100% <100%> (ø)

pyasn1_modules/rfc4210.py
100% <0%> (+0.95%)
:arrow_up:

Continue to review full report at Codecov.

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

Thank you!

authors: codecov-io etingof russhousley


text:
Issue 31

Before submitting (must do checklist)

[x] Did you read the contribution guide?
[x] Did you update the docs? We use Numpy format for all the methods and classes.
[x] Did you write any new necessary tests?
[x] Did you update the CHANGELOG?

Proposed Changes

Closing issues

closes #31

duplicate

repo: etna-team/etna


text:
PhanTypeMismatchArgument not emitted for some classes

I have two classes implementing the same interface and a function that takes one of the classes as argument. I expected this to issue PhanTypeMismatchArgument, but phan doesn't emit anything.
<?php
declare(strict_types=1);

interface I {
}

class A implements I {
}

class B implements I {
}

/**
 * @param A $a
 * @return void
 */
function a(A $a) {
}

$b = new B();

a($b);

Thanks, @ryutaro-brainlabs !

authors: morria ryutaro-brainlabs

repo: etsy/phan


text:
🛑 demo.staging (IPv4, HTTPS) is down

In 730c0f0, demo.staging (IPv4, HTTPS) (https://demo.staging.ettelabs.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: demo.staging (IPv4, HTTPS) is back up in 3830851 after 1 hour, 15 minutes.

repo: ettelabsinc/ette-uptimejs


text:
Bael 2509

Please review this simple JUnit test class to write all file bytes intp a ByteBuffer.

Hey @eaudet it seems like there are a lot of files in this PR that aren't related to your changes. Can you remove them, please? We only want to have files changed that are relevant to your article. Formatting changes to modules, in general, are fine, but we want them to be in a separate pull request.

authors: eaudet echeyne

repo: eugenp/tutorials


text:
Feature/hexagonal architecture roger yates

Review: Temporary creation. To be deleted.

Removing as per instructions!


text:
Small fixes

Removed typo in the README and replaced dict.iteritems() with dict.items() so the script is compatible both with python2 and python3

Didn't see this PR, thanks!

authors: ValerioMa reinzor


text:
Better Documentation Generator [$100]

@eustasy/vala I think we should plan for this new generator because I think we have several people looking into it, but no actual roadmap.

[ ] Comments
[ ] Method Parameters / Arguments

Currently tracked at #4

.gir could be used, but there are also .metadata files used while generating .vapi files, and I'm unsure about the Vala native features or Posix features

What do the .metadata files look like? Where do they reside? What do they currently do?

some are here https://git.gnome.org/browse/vala/tree/vapi/metadata
some are inside projects sources
So it might be better to use .vapi files at the end :/

You guys are the experts, I know very little about that side of things. Whatever you all think is best.

I could be wrong, but it seems like the .vapi files only hold half of the story. Part of what makes valadoc.org so useful is having all of those comments along with the structure of the library api. So, the generator would need to export both .vapi and associated comments.

I think the best immediate plan would be to strip down the existing generator to see where it sources its information, that way we are guaranteed to at least match its accuracy and depth.

I agree. I'm trying to see what all valadoc does right now, and it seems like it wouldn't be too hard to modify it to spit out usable XML or JSON without a whole lot of effort.

The original is GPL v2, which I'm not a huge fan of, but I'm not adverse to having the generator be a separate license to the rest of the repository.

Using the .gir files directly doesn't make much sense ino, because libvaladoc puts all this Informationen together anyway so we gan generate one big json file per package easily.
The advantage of json against xml is the smaller size (=less traffic when sending them to the frontend) and in the end the json file might be more or less as big as the .vapi file.

We don't need to modify valadoc, we just need to write a doclet (which controls the output, such as html, gtk-doc, or in our case json)

So gnome/valadoc is the raw valadoc, and we can just write a "doclet" for that to get JSON, completely circumventing the need to interact with flobrosch/valadoc-org? That sounds like it should be far easier than interfering with that.

I added a $50 bounty to this issue
https://www.bountysource.com/issues/29648191-better-documentation-generator

eustasy has doubled the bounty to $100: https://www.bountysource.com/issues/29648191-better-documentation-generator

So, #4 basically closes this I'm guessing?

I think it does. Time to work on the web side.

authors: MarcusWichelmann benwaffle btkostner dahenson lewisgoddard tintou


text:
Support for Dublin Core namespaces XMP tags?

Hello. I did a quick test using this library and I'm liking what I'm seeing thus far. I am wondering if you have any plans to support additional XMP namespaces, like Dublin Core (https://developer.adobe.com/xmp/docs/XMPNamespaces/dc/)?  A lot of photos I have store keywords, which in a lot of cases are stored in both IPTC Keywords and XMP Subject. The XMP Subject appears to be using the dc:subject tag as seen in the screenshots below.

Hi @adampresley, I would be open to a pull request if you would like to help develop it. Unfortunately I don't have the time to add that on right now. It shouldn't be hard. Just requires reading through the library.
Thanks for asking.

authors: adampresley evanoberholster

repo: evanoberholster/imagemeta


text:
i want to remove my log from your site i have used the plug in to do this and it said deleted but is still on site

i feel very uncomfortable having my logs on your site and makes me feel like a target please please remove my info

Removed

thank you very much very prompt response you are amazing


text:
Fatal Error: Unable to find package java.lang in classpath or bootclasspath

Hi, I am trying to integrate gradle-retrolambda in my Android project, but I am getting the following error when I run my gradle build
:app:compileDebugJava
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Stacktrace:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJava'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
....
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:47)
at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:38)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJav
I thought it was strange, that it uses the jdk6.Jdk6JavaCompiler although I configured for Java7 compatibility, see below.
Gradle version info:
------------------------------------------------------------
Gradle 1.12
------------------------------------------------------------
Build time:   2014-04-29 09:24:31 UTC
Build number: none
Revision:     a831fa866d46cbee94e61a09af15f9dd95987421

Groovy:       1.8.6
Ant:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013
Ivy:          2.2.0
JVM:          1.8.0_11 (Oracle Corporation 25.11-b03)
OS:           Linux 3.13.0-32-generic amd64

Java environment paths:
JAVA_HOME=/usr/lib/jvm/java-8-oracle
JAVA8_HOME=/usr/lib/jvm/java-8-oracle
JAVA7_HOME=/usr/lib/jvm/java-7-oracle
Gradle build file:
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.+'
        classpath 'me.tatarka:gradle-retrolambda:2.2.1'
   }

}
repositories {
    mavenCentral()
    flatDir {
        dirs 'prebuilt-libs'
    }
}

apply plugin: 'com.android.application'

android {
    compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
    buildToolsVersion "20.0.0"

   defaultConfig {
        minSdkVersion 19
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
    }

     compileOptions {
         sourceCompatibility JavaVersion.VERSION_1_8
         targetCompatibility JavaVersion.VERSION_1_8
    }

    packagingOptions {
         exclude 'LICENSE.txt'
         exclude 'META-INF/services/javax.annotation.processing.Processor'
    }
}

 dependencies {
     // gcm (old client library)
     compile fileTree(dir: 'libs', include: ['*.jar'])

     // auto factory (https://github.com/google/auto/tree/master/factory)
     compile 'com.google.auto.factory:auto-factory:0.1-beta1'

     // auto value (https://github.com/google/auto/tree/master/value)
     compile 'com.google.auto.value:auto-value:1.0-rc1'

     // dagger
     compile 'com.squareup.dagger:dagger:1.2.0'
     provided 'com.squareup.dagger:dagger-compiler:1.2.0'

     // butterknife for view injection
     compile 'com.jakewharton:butterknife:5.1.1'

     // javax annotations (needed for auto generated files)
     compile 'javax.annotation:jsr250-api:1.0'

     // google guava
     compile 'com.google.guava:guava:17.0'

     // support library
     compile 'com.android.support:support-v4:20+'

    // google zxing barcode reader
    compile 'com.google.zxing:core:2.3.0'

     // progress bar - https://github.com/w9jds/GDK-ProgressBar
    compile 'com.w9jds.gdk.progresswidget:library:1.0@aar'

    // espresso - https://github.com/JakeWharton/double-espresso
    androidTestCompile ('com.jakewharton.espresso:espresso:1.1-r3') {
        exclude group: 'com.squareup.dagger'
        exclude group: 'com.android.support'
    }
}

apply plugin: 'retrolambda'

retrolambda {
    jdk System.getenv("JAVA8_HOME")
    oldJdk System.getenv("JAVA7_HOME")
    javaVersion JavaVersion.VERSION_1_7
}

Just to verify my java8 installation, I created a gradle project in intellij without retrolambda, and that works fine.
Do you have any idea, what might go wrong here and how to fix it?

@evant I have same problem. I use 2.4.1, AS 1.1.0 and sdk 21.
I have no android.jar into app/build/retrolamba folder and my question is how to generate it?

Try running gradle clean patchAndroidJar --info and look at the output for that task. It should list where it's copying from and to. Make sure those paths look correct.

Hi,
I'm also experiencing "Fatal Error: Unable to find package java.lang in classpath or bootclasspath".
In may case I am compiling against 'Google Inc.:Google APIs:21' using Gradle. I made a symbolic link in my sdk/platforms directory from 'Google Inc.:Google APIs:21' to android-21 but this did not work.
The app/build/retrolambda/Google\ Inc.:Google\ APIs:21/ folder contains android.jar but app/build/retrolambda/classes/java only contains lang/invoke, I suppose this is not normal.
Any suggestions?
Cheers, Paul

@paulrenn any solutions?

I'm also experiencing the same problem as @paulrenn . Creating a simlink from Google Inc.:Google APIs:21 to android-21 doesn't fix the problem.

I was not able to solve this directly. The only workaround I found, which was not very satisfactory, was to make a library where all the RX calls could be done, which I was able to compile without the Google APIs. Then I have the main app which requires Google APIs but is unable to use RX.

Try with 3.0.0, it should fix this

Hi @evant , I am using the latest gradle-retrolambda(3.2.0) but still get the same issue, I can not see the android.jar in build/retrolambda folder neither.
There are JDK 1.7 and 1.8 in my pc, and I set 1.7 as my JAVA_HOME and the JAVA8_HOME in my system variable as well.
Any further suggestion?

Hello @evant , finally I change jdk value from System.getenv to '/Library/xxx/Home<>', it works. Could you please explain this? I will also keep an eye on this. Anyway, really appreciate for the great project.
retrolambda {
    jdk '/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home'//System.getenv("JAVA_8")
    oldJdk System.getenv("JAVA7_HOME")
    javaVersion JavaVersion.VERSION_1_7
}

Same issue, same fix as @leiweibo.

authors: ExPixel IlyaEremin evant feugatos fschoellhammer leiweibo paulrenn vashisthg

repo: evant/gradle-retrolambda


text:
How to use this in typescript with webpack?

Hi, I am using .ts with webpack to develop the core api of a mobile app and want to record error.stack into specific files. I tried to use this on webpack but it seems do not working. The error.stack is still showing xxlib.js instead of xx.ts.
Could anyone tell me how to correctly use this library with webpack and typescript?

Similar to lorenzofox3/zora#48.

+1, also compiling ts through webpack using babel (for SSR), and I can't get it to work :(

Sorry for not closing this. I finally realized that it is the issue with webAssembly instead of webpack. I was testing it in IOS simulator while it didn't support the webAssembly. It went well after I tested it on the real device.

authors: buaazhangfan fullofcaffeine jmakeig

repo: evanw/node-source-map-support


text:
The Loadpoint's minimum effective current should not be regulated below the value of the vehicle

Describe the bug
The "new" loadpoint effective minimum current calculation in core/loadpoint_effective.go after commit https://github.com/evcc-io/evcc/commit/d63dec9511166c35b59ee5f539062977580226b3 does no longer take into account the minCurrent value of the vehicle.
The effective minimum charging current is now reduced to the standard 6A in PV mode, although a minimum of 8A is required on the vehicle due to the minCurrent configuration there.
This new behavior now means that in some Renault vehicles, where the on-board charging management requires a minimum charging current of 8A, no electricity reaches the battery.
This has already been fixed in the past with #7563 .
Steps to reproduce

Use an EEBUS wallbox and a Renault Zoe or Twingo.
Configure a vehicle with a minCurrent != what the charger reports for the current connection (6A for IEC61851)

For Renault Zoe or Twingo vehicle set the minCurrent to 8A.
Configuration details
See #12770  and #7241
Log details
See #12770 and #7241
What type of operating system are you running?
Linux
Version
0.124.7

Gibts ein Log für den konkreten Fehler?

Ich denke auch. Weiter in #11636.

authors: andig hidminds

repo: evcc-io/evcc


text:
Sponsorship token not recognized in 113.2

Describe the bug
After upgrading from 112.5 to 113.2. the sponsorship token for the go-e charger is not recognized anymore.
Steps to reproduce
pi@evcc:/etc $ evcc -l debug charger
[main  ] INFO 2023/03/01 11:29:13 evcc 0.113.2
[main  ] INFO 2023/03/01 11:29:13 using config file: /home/pi/evcc.yaml
[db    ] INFO 2023/03/01 11:29:14 using sqlite database: /home/pi/.evcc/evcc.db
[main  ] FATAL 2023/03/01 11:29:14 cannot create charger 'wallbox6': cannot create charger 'template': cannot create charger 'go-e': sponsorship required, see https://github.com/evcc-io/evcc#sponsorship
Configuration details
# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: info
levels:
  cache: error

# unique installation id
plant: ef00f8015fdc609b97df1d79b9a70e71b76c5a2f78b4e665531b3b819a45b343

interval: 10s # control cycle interval

sponsortoken: blabla
# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: true

meters:
- type: template
  template: sonnenbatterie
  usage: grid
  host: 192.168.1.191
  port: 8080
  name: grid1
- type: template
  template: sonnenbatterie
  usage: pv
  host: 192.168.1.191
  port: 8080
  name: pv2
- type: template
  template: sonnenbatterie
  usage: battery
  host: 192.168.1.191
  port: 8080
  name: battery3

chargers:
- type: template
  template: go-e
  host: 192.168.1.192
  name: wallbox6
- type: template
  template: go-e-gemini
  host: 192.168.1.196
  name: wallbox7

vehicles:
- type: template
  template: etron
  title: audi
  user: arget@web.de
  password: blabla
  capacity: 11.4
  phases: 3
  icon: car
  cache: 15m
  mode: pv
  minSoC: 0
  targetSoC: 100
  minCurrent: 6
  maxCurrent: 16
  name: ev4
- type: template
  template: cupra
  title: cupra
  user: arget@web.de
  password: blabla
  capacity: 58
  phases: 3
  icon: car
  cache: 15m
  mode: pv
  minSoC: 20
  targetSoC: 80
  minCurrent: 6
  maxCurrent: 16
  name: ev5

loadpoints:
- title: GarageL
  charger: wallbox6
  vehicle: ev4
  mode: pv
  phases: 3
  mincurrent: 6
  maxcurrent: 16
  resetOnDisconnect: true
- title: GarageR
  charger: wallbox7
  vehicle: ev5
  mode: pv
  phases: 0
  mincurrent: 6
  maxcurrent: 16
  resetOnDisconnect: true

site:
  title: WB8
  meters:
    grid: grid1
    pvs:
    - pv2
    batteries:
    - battery3
  residualPower: 100 # regelpunkt um 100W Richtung Netzeinspeisung verschoben - Ziel: weniger Netzbezug
  bufferSoC: 95 # Hausbatterie wird oberhalb SoC als Puffer genutzt
  prioritySoC: 75 # Hausbatterie bekommt bis zum SoC Priorität beim laden

tariffs:
  currency: EUR # (default EUR)
  grid:
    # static grid price
    type: fixed
    price: 0.2821 # [currency]/kWh

  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.0615 # [currency]/kWh

Log details
pi@evcc:/etc $ evcc -l debug charger
[main  ] INFO 2023/03/01 11:29:13 evcc 0.113.2
[main  ] INFO 2023/03/01 11:29:13 using config file: /home/pi/evcc.yaml
[db    ] INFO 2023/03/01 11:29:14 using sqlite database: /home/pi/.evcc/evcc.db
[main  ] FATAL 2023/03/01 11:29:14 cannot create charger 'wallbox6': cannot create charger 'template': cannot create charger 'go-e': sponsorship required, see https://github.com/evcc-io/evcc#sponsorship

What type of operating system are you running?
Linux
Version
0.113.2

Please try new token from https://sponsor.evcc.io. Potentially your sponsorship was canceled due to Github no longer supporting Paypal? Please contact info@evcc.io if problems persist.

authors: andig maceioal