How a task saving its data into DB by Ent?

Hi Mikestefanello,
Your kit is awesome for starter like me.
I'm researching how to utilizing your kit to build an Web App.
My purpose is that:

A task runs in background to fetch data from a website. Then save obtained data into Postgres db utilizing Ent
When a client fetches router(GET), the data is load from Postgres db to show on HTML

My problem is:

When saving data, like /routes/*.go, it needs 2 variables c(*Container) and ctx(echo.Context) to manipulate c.Container.ORM. But ctx of a task handler(in /worker/tasks/*.go) is context.Context(using reflect I see that: *context.timerCtx). Therefore I couldn't save data to db.
Could you tell me how to save data to db in worker?(If there is any sample code, really appreciate your help)

Thanks

Hi,
Thanks! I'm glad to hear that it's useful for you.
In the routes, the context you pass to the ORM methods isn't actually echo.Context but rather context.Context - it just may seem confusing because the param in the route and task handler are both named the same (ctx).
The route is something like this:
func (c *login) Post(ctx echo.Context) error {
	u, err := c.Container.ORM.User.
		Query().
		Where(email).
		Only(ctx.Request().Context())
}

Here, you're getting the actual context (context.Context) by doing ctx.Request().Context(). That's the context of the HTTP request.
In a task handler, you would just pass the ctx directly in:
func (p *ExampleProcessor) ProcessTask(ctx context.Context, t *asynq.Task) error {
	u, err := p.ORM.User.
		Query().
		Where(email).
		Only(ctx)
}

Now the only problem is that p.ORM doesn't exist, by default. You would have to initialize an ORM client and add it to ExampleProcessor. If you need help doing something like that, just let me know.

Thank Mikestefanello for your explanation,
I finally can access db in worker. Your advice helped me a lot.

You're welcome. Feel free to open another issue if you have any more questions.


Extension Panel Blank

Issue Type: Bug
Selecting the extension panel results in a blank display, no extensions are displayed.

VS Code version: Code - Insiders 1.52.0-insider (78908e7eb4ff12fc2ed0dd1f17200fea48c56ab2, 2020-11-18T12:39:33.450Z)
OS version: Darwin x64 19.6.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
32.00GB (0.30GB free)

Process Argv
--crash-reporter-id 9d6f571a-d31e-40c5-baf0-0b1f495508d5

Screen Reader
no

VM
15%

Extensions (20)

Extension
Author (truncated)
Version

path-intellisense
chr
2.3.0

vscode-svgviewer
css
2.0.0

vscode-eslint
dba
2.1.13

githistory
don
0.6.14

auto-close-tag
for
0.5.9

auto-rename-tag
for
0.1.5

output-colorizer
IBM
0.1.2

csharp
ms-
1.23.6

hexeditor
ms-
1.3.0

js-debug-companion
ms-
1.0.8

js-debug-nightly
ms-
2020.11.1117

vscode-typescript-next
ms-
4.2.20201117

vscode-typescript-tslint-plugin
ms-
1.2.3

vetur
oct
0.30.2

material-icon-theme
PKi
4.4.0

quicktype
qui
12.0.46

vue-vscode-snippets
sdr
2.1.5

open-in-browser
tec
2.0.0

msbuild-project-tools
tin
0.3.10

vscodeintellicode
Vis
1.2.10

(2 theme extensions excluded)

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221882
python763:30178808
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30208930
wsl2prompt:30219162
pythonvsdeb440:30224570
unusedpromptcf:30219165
folderexplorercf:30219167
openfilemenu:30219168
pythonvsded773:30223139

Still happening with latest Insiders:
Version: 1.52.0-insider
Commit: a36c68b9ec3d6a0aca9799d7a10be741a6658a51
Date: 2020-11-19T05:38:14.978Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 19.6.0
Making it imposible to deal with extensions. Help.

Also just started seeing this on the latest Exploration Build:
Version: 1.52.0-exploration
Commit: 7af7d1c0c5af759c0e5bee5139491b3524a2ec8d
Date: 2020-11-19T10:36:05.448Z
Electron: 11.0.0-beta.20
Chrome: 87.0.4280.40
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 19.6.0

Disabling extensions on either version DOES NOT help.

Exploration version is showing an error in the Developer tools (Insiders is not):

On insiders build, please provide if there are any errors in the following logs

Help -> Toggle Developer Tools -> Console
View -> Command Pallette... -> Toggle Shared Process -> Console
View -> Open View… -> Log (Shared)
View -> Open View… -> Log (Window)

On insiders build, please provide if there are any errors in the following logs

Help -> Toggle Developer Tools -> Console

View -> Command Pallette... -> Toggle Shared Process -> Console

DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/CorrelationContextManager.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/applicationinsights.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/diagnostic-channel/initialization.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/Logging.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/Console.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/Performance.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/HttpDependencies.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/Exceptions.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/Util.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/RequestResponseHeaders.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/HttpDependencyParser.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/index.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Constants.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/index.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/Domain.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/AvailabilityData.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/ContextTagKeys.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/Base.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/Data.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/DataPoint.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/DataPointType.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/EventData.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/Envelope.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/ExceptionData.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/ExceptionDetails.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/MessageData.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/MetricData.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/RemoteDependencyData.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/PageViewData.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/RequestData.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/SeverityLevel.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/Generated/StackFrame.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/TelemetryTypes/TelemetryType.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Declarations/Contracts/TelemetryTypes/index.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/RequestParser.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/HttpRequests.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/AutoCollection/HttpRequestParser.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/CorrelationIdManager.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/NodeClient.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/TelemetryClient.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/Context.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/Config.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/Channel.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/TelemetryProcessors/index.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/TelemetryProcessors/SamplingTelemetryProcessor.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/Sender.js.map: Unknown error
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/a36c68b9ec3d6a0aca9799d7a10be741a6658a51/node_modules/applicationinsights/out/Library/EnvelopeFactory.js.map: Unknown error

View -> Open View… -> Log (Shared)

[2020-11-19 13:07:15.834] [sharedprocess] [info] main {"machineId":"0e86faabd2ac9a498849b2f9d83e11e3067c0589006ed635d42b421f0c42751f","windowId":2}
[2020-11-19 13:07:16.148] [sharedprocess] [info] Deleted from disk ms-vscode.vscode-typescript-next /Users/johntsombakos/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.2.20201117
[2020-11-19 13:07:16.151] [sharedprocess] [info] Deleted from disk angular.ng-template /Users/johntsombakos/.vscode-insiders/extensions/angular.ng-template-0.1100.0
[2020-11-19 13:07:56.578] [sharedprocess] [info] Starting to clean up unused language packs.

View -> Open View… -> Log (Window)

[2020-11-19 13:07:20.056] [renderer1] [error] No application in the Launch Services database matches the input criteria.: Error: No application in the Launch Services database matches the input criteria.
[2020-11-19 13:07:29.873] [renderer1] [error] No application in the Launch Services database matches the input criteria.: Error: No application in the Launch Services database matches the input criteria.

If I launch VS Code Insiders, Toggle the Developer tools first to show the console, THEN click the Extensions icon, the console displays:

(If it's not obvious, when I clicked the extensions icon, the "[createInstance]" warning popped up)

Also, if I then click the "X" to close the developer tools, this happens:

Can you please try with a different user data directory ? code-insiders --user-data-dir <path>

Also seems you are not on latest insiders, can you also please update?

I'm on the latest it will give me:

👍
Can you please try from different user data dir as suggested?

Can you please try with a different user data directory ?

Starting with a new user data directory (code-insiders --user-data-dir ./tempdir) Does make the extensions show up in the extension panel (with all of them enabled, and clears out all of my customized settings)

Doing some experiments, it seems as it's something in the /User directory inside the user data directory. If I copy my original User directory into the new, "tempdir", the extension panel is empty again.

Can you please try with new extensions dir now: code-insiders --extensions-dir <path> ?

Can you please try with new extensions dir now: code-insiders --extensions-dir <path> ?

That results in a blank extension panel, with an error in the Log (Window):

Ok interesting, seems something wrong with your global state and I am confused you do not see any relevant errors in the console.
Here is one of the old insiders build - https://az764295.vo.msecnd.net/insider/d19c7c52fd364dda47aa34d4284b4d3ff43c69b0/VSCode-darwin-insider.zip
Please download this and see if you see the error with this build?

I just cleared out the contents of the ~/Library/Application Support/Code - Insiders/User/globalStorage/ and ~/Library/Application Support/Code - Insiders/User/workspaceStorage/ directories, and that seems to have restored the extensions panel. I will have to go back and disable my unused extensions.

If you are using Settings Sync you can restore your old state from synced data view - Please follow the link https://code.visualstudio.com/docs/editor/settings-sync#_restoring-data
May I know if you have taken the back up of Global State that is causing issue so that I can diagnose the issue?

Trying the same experiment with my Exploration version, it came down to removing the 'state.vscdb' file in the globalStorage directory to restore the extensions display.

If you still have globalStorage that has issue, can you please zip it and share it by e-mail? It will be helpful to diagnose the underlying issue causing it.

I may have a version of the state.vscdb.backup file that I believe was before I did the reset, if that will help. Not sure if it's one with the issue, but I can send it.

Here is the state.vscdb.backup file. Hope it helps.

On Nov 19, 2020, at 1:48 PM, Sandeep Somavarapu<EMAIL_ADDRESS>wrote:
If you still have globalStorage that has issue, can you please zip it and share it by e-mail? It will be helpful to diagnose the underlying issue causing it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/110870#issuecomment-730567428, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADJMB4YNWBNFDUN65UZJLSQVSAVANCNFSM4T2GFOJA.

Thanks for sharing the backup - I found the issue.
You had Enabled Extensions View / Disabled Extensions View enabled in your extensions view and recent changes broke these views and hence you were not able to see extensions view. Fixed it.

Can you please reuse the shared backup with tomorrow's insiders and verify the fix?

Yes, things do seem to be working as expected. I can see the extensions listed in the extension panel.

/verified


2023-1.0 envs

Consistent changes with https://github.com/nsls2-conda-envs/nsls2-collection/pull/13.
Diffs:
$ diff configs/config-py39.yml configs/config-py310.yml
2,3c2,3
< env_name: "2023-1.0-py39-tiled"
< conda_env_file: "env-py39.yml"
---
> env_name: "2023-1.0-py310-tiled"
> conda_env_file: "env-py310.yml"
5c5
< python_version: "3.9"
---
> python_version: "3.10"

$ diff envs/env-py39.yml envs/env-py310.yml
1c1
< name: 2023-1.0-py39-tiled
---
> name: 2023-1.0-py310-tiled
10c10
<   - python >=3.9,<3.10
---
>   - python >=3.10,<3.11

$ diff nsls2-collection/envs/env-py39.yml nsls2-collection-tiled/envs/env-py39.yml
1c1
< name: 2023-1.0-py39
---
> name: 2023-1.0-py39-tiled
29,30c29
<   - databroker >=1.2.5,<2.0.0a
<   - databroker-pack
---
>   - databroker >=2.0.0b13=*_0
51d49
<   - intake <=0.6.4
127a126
>   - tiled >=0.1.0a80

$ diff nsls2-collection/envs/env-py310.yml nsls2-collection-tiled/envs/env-py310.yml
1c1
< name: 2023-1.0-py310
---
> name: 2023-1.0-py310-tiled
29,30c29
<   - databroker >=1.2.5,<2.0.0a
<   - databroker-pack
---
>   - databroker >=2.0.0b13=*_0
51d49
<   - intake <=0.6.4
127a126
>   - tiled >=0.1.0a80

@jklynch, @tacaswell, could you please review?

Ready for review again! I sync'd the changes with the nsls2-collection PR.

Duplicate of this: https://github.com/nsls2-conda-envs/nsls2-collection/pull/13#issuecomment-1361446122
Very pleased, one thing worth double checking.

Thanks for the reviews!

Deposited to https://zenodo.org/record/7470912 via https://github.com/nsls2-conda-envs/playground/actions/runs/3753798831/jobs/6377399827.


considere packing the targets as buildTransitive too

First let me preface this by thanking you for this awesome work. I was somewhat doing a much poorer implementation of your solution before I found your package, deleting all that ugly stuff was a relief ❤
Is the feature request related to a problem
I'm making a package to ease up my configuration across for all my project, much like your ProjectDefaults and I want to include a reference to Polyfill. While this project is a development dependency that is not supposed to flow as an indirect reference, it is actually possible to include it by removing the PrivateAssets="all" of the PackageReference. I'm doing this to automatically include a collection of analyzer packages for exemple.
Describe the solution
The issue is that the targets file of Polyfill does not flow as an indirect dependencies because it's not present in a buildTransitive folder of the nuget (more info here) just in case). Doing so, while kind of unnatural for a development dependency (hence why I am requesting your opinion here), is quite an easy fix by adding <file src="Polyfill.targets" target="buildTransitive"/> to the nuspec.
Describe alternatives considered
Currently I am repacking your code files into my own package like so
  <ItemGroup>

    <PackageReference Include="Polyfill" Version="7.0.0" PrivateAssets="all" GeneratePathProperty="true" />

    <!-- fix for Polyfill transitive reference -->
    <None Include="$(PkgPolyfill)\build\Polyfill.targets" Pack="true" PackagePath="projects" Visible="false" />
    <Compile Update="$(PkgPolyfill)\contentFiles\**\*" Pack="true" PackagePath="contentFiles\cs\netstandard2.0\Polyfill\" Visible="false" />

  </ItemGroup>

and in the targets file of my own package
  <!-- fix for Polyfill transitive reference -->
  <Import Project="$(MSBuildThisFileDirectory)Polyfill.targets" Condition="Exists('$(MSBuildThisFileDirectory)Polyfill.targets')"/>
  <ItemGroup>
    <Compile Update="@(Compile)">
      <Visible Condition="'%(NuGetItemType)' == 'Compile' and '%(NuGetPackageId)' == 'DefaultCSharp'">false</Visible>
    </Compile>
  </ItemGroup>

This works fine but obviously I would prefer for your project to be a proper dependency instead of hiding it like so, more people who are stuck supporting multiple targets should know about it :).
Additional context
My full project is here for completeness, again thank you for this.

Since your package is declared as a development dependency it should be added by default with PrivateAssets="All" which prevent its transitive inclusion. You have to explicitly remove it for the reference to flow, which nobody should do (except me because I like going against the flow).
Again my usage is definitely not conventional so I would totally understand you not making this change.


Unable to Compile relatively large directory on 32bit

First of all I must say this is a wonderful library and super useful.
I was just wondering if there was a solution to this issue. It works perfectly with the target dir (1.67gb) on 64bit however it falls over on 32bit Windows. Smaller directories do work on 32bit.
memory allocation of 268435456 bytes failed
error: could not compile `rust-app`.

Caused by:
  process didn't exit successfully: `rustc
  --crate-name rust-app
  --edition=2018 'src\main.rs'
  --error-format=json
  --json=diagnostic-rendered-ansi
  --crate-type bin
  --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no -C metadata=345c59f1de03c671
  --out-dir 'C:\Users\Windows 10\rust-app\target\release\deps' -L 'dependency=C:\Users\Windows 10\rust-app\target\release\deps'
  --extern 'anyhow=C:\Users\Windows 10\rust-app\target\release\deps\libanyhow-81d11210865f139d.rlib'
  --extern 'colored=C:\Users\Windows 10\rust-app\target\release\deps\libcolored-281bf2267e4ccfdd.rlib'
  --extern 'directories=C:\Users\Windows 10\rust-app\target\release\deps\libdirectories-5d39413c84ebaf88.rlib'
  --extern 'env_logger=C:\Users\Windows 10\rust-app\target\release\deps\libenv_logger-a9c0cc6acbbd7be9.rlib'
  --extern 'handlebars=C:\Users\Windows 10\rust-app\target\release\deps\libhandlebars-fc5435020b8a70d1.rlib'
  --extern 'log=C:\Users\Windows 10\rust-app\target\release\deps\liblog-b2d727585ed1d5c6.rlib'
  --extern 'log4rs=C:\Users\Windows 10\rust-app\target\release\deps\liblog4rs-57bcfd4a121948b2.rlib'
  --extern 'nfd=C:\Users\Windows 10\rust-app\target\release\deps\libnfd-94e8c979ced76b97.rlib'
  --extern 'os_info=C:\Users\Windows 10\rust-app\target\release\deps\libos_info-e651b3ff8d25c487.rlib'
  --extern 'percent_encoding=C:\Users\Windows 10\rust-app\target\release\deps\libpercent_encoding-3cbf8e614ed085b1.rlib'
  --extern 'rust_embed=C:\Users\Windows 10\rust-app\target\release\deps\librust_embed-9a51e5bb4530be39.rlib'
  --extern 'serde=C:\Users\Windows 10\rust-app\target\release\deps\libserde-76e8dffa49d7eef4.rlib'
  --extern 'serde_json=C:\Users\Windows 10\rust-app\target\release\deps\libserde_json-f9a3e604e66f0ea7.rlib'
  --extern 'thiserror=C:\Users\Windows 10\rust-app\target\release\deps\libthiserror-0379caa49415ece3.rlib'
  --extern 'tokio=C:\Users\Windows 10\rust-app\target\release\deps\libtokio-d72a2780b02cc2c9.rlib'
  --extern 'uuid=C:\Users\Windows 10\rust-app\target\release\deps\libuuid-f251e1b544840b0c.rlib'
  --extern 'walkdir=C:\Users\Windows 10\rust-app\target\release\deps\libwalkdir-f18e5126743ac1ac.rlib'
  --extern 'warp=C:\Users\Windows 10\rust-app\target\release\deps\libwarp-d3a942d0d09096e7.rlib'
  --extern 'webbrowser=C:\Users\Windows 10\rust-app\target\release\deps\libwebbrowser-7b176aaf3553d218.rlib' -L 'native=C:\Users\Windows 10\rust-app\target\release\build\nfd-034d066d68758654\out'`
(exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)```

Seems like a memory issue for 32bit for large directories. https://github.com/rust-lang/rust/issues/72084#issuecomment-626406567. Don't know if its possible to batch the writes.

Interesting - without being intimately familiar with the code nor being an excellent programmer myself I'm not sure if this is untenable but perhaps the generate_assets function could batch its processing of the files with the quote! macro on a count of files. Understandably this is somewhat of an edge case but I might give a go at getting a custom version of it to work locally myself.
Thanks for that rust-lang issue I hadn't come across that before, and thanks for your reply.

Closing this as there is a work around,

using x64 rustc host to cross-compile 32 bit binary.
here https://github.com/rust-lang/rust/issues/72084#issuecomment-626445324

@Billy-Sheppard if that doesn't work please feel free to reopen the issue.


Conflict with existing WINEPREFIX DXVK setup

If you install DXVK to a WINEPREFIX.
Then install DXUP to same WINEPREFIX.
You end up with:
./d3d10.dll:          symbolic link to /mnt/robs-rog-laptop/linux_shared/robert/wineprefixes/dxvk_steam_64/drive_c/dxup/dxup-x64/d3d10.dll
./d3d10_original.dll: symbolic link to /mnt/robs-rog-laptop/linux_shared/robert/wineprefixes/dxvk_steam_64/drive_c/dxup/dxup-x64/d3d10_original.dll
./d3d10_1.dll:        symbolic link to /mnt/robs-rog-laptop/linux_shared/robert/wineprefixes/dxvk_steam_64/drive_c/dxup/dxup-x64/d3d10_1.dll
./dxgi.dll:           symbolic link to /mnt/robs-rog-laptop/linux_shared/robert/wineprefixes/dxvk_steam_64/drive_c/dxup/dxup-x64/dxgi.dll
./dxgi_original.dll:  broken symbolic link to /mnt/robs-rog-laptop/linux_shared/robert/wineprefixes/dxvk_steam_64/drive_c/dxup/dxup-x64/dxgi_original.dll
./d3dx10_43.dll:      symbolic link to /mnt/robs-rog-laptop/linux_shared/robert/wineprefixes/dxvk_steam_64/drive_c/dxup/dxup-x64/d3dx10_43.dll
./d3d11.dll:          broken symbolic link to /mnt/robs-rog-laptop/linux_shared/robert/wineprefixes/dxvk_steam_64/drive_c/dxup/dxup-x64/d3d11.dll

A little bit of symbolic link mangling would avoid stepping on the DXVK symbolic links. In fact you should be able to easily move the dxgi.dll link origin, DXVK, creates to be a dxgi_original.dll link origin.
Would a pull request for this be useful?

Yeah it would as I don't have an install to do that on ATM. Could you also dos2unix the setup script. Cheers

Probably won't be till Monday now... :-)
The execute permissions issue #7 is probably because zip files don't retain execute permissions. I see AppVeyor is using Powershell to build the binaries... Is it possible to set it to package into a different kind of archive? Perhaps .tar.gz or even .rar should be enough?

@bobwya issue #7 is due to incorrect encoding as You already know, not due to permissions. chmod +x doesn't help but dos2unix does.


Only subscribe viewing table

Ask user to choose industry on quick search.
Remove meteor call back from quick search.

Great improvements! Thanks Nghia!


cairo

Host Environment

OS: Windows
Compiler: revision

To Reproduce
Steps to reproduce the behavior:`.  /vcpkg install cairo
Failure logs
PS C:\src\vcpkg\vcpkg> .\vcpkg.exe install cairo                                                                        Computing installation plan...
The following packages will be built and installed:

bzip2[core]:x86-windows
cairo[core]:x86-windows
dirent[core]:x86-windows
expat[core]:x86-windows
fontconfig[core]:x86-windows
freetype[bzip2,core,png]:x86-windows
libiconv[core]:x86-windows
libpng[core]:x86-windows
pixman[core]:x86-windows
zlib[core]:x86-windows
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows...
Starting package 1/10: bzip2:x86-windows
Building package bzip2[core]:x86-windows...
Could not locate cached archive: C:\Users\ash\AppData\Local\vcpkg\archives\37\37e5ae6003e363d13acddbe5ed6277c0775bad67.zip
-- Using cached C:/src/vcpkg/vcpkg/downloads/bzip2-1.0.6.tar.gz
-- Cleaning sources at C:/src/vcpkg/vcpkg/buildtrees/bzip2/src/1.0.6-8838f21f8e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/src/vcpkg/vcpkg/downloads/bzip2-1.0.6.tar.gz
-- Applying patch fix-import-export-macros.patch
-- Applying patch fix-windows-include.patch
-- Using source at C:/src/vcpkg/vcpkg/buildtrees/bzip2/src/1.0.6-8838f21f8e.clean
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:279 (find_program):
Could not find PKGCONFIG using the following names: pkg-config
Call Stack (most recent call first):
ports/bzip2/portfile.cmake:51 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:79 (include)

Error: Building package bzip2:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: bzip2:x86-windows
Vcpkg version: 2020.06.15-nohash
Additionally, attach any relevant sections from the log files above.
Additional context
I have tried to comment out  "vcpkg_fixup_pkgconfig()", which seemed to work fine at that instance. But later I was facing issues with "find_package(io2d REQUIRED)"
It said that, it cant find io2d or io2dConfig.cmake files.   Literally, I was up all night, for around 8 hours trying to solve this issue. Having no knowledge about vcpkg or cmake, I came here for help.
Thanks in advance.

Duplicate - See #12565
Could not find PKGCONFIG using the following names: pkg-config

Hi @vinayvinnujash
Thanks for posting this issue.
For the issue caused by vcpkg_fixup_pkgconfig(), there is a PR #12568 to fix it.
For the issue caused by io2d, it seems that there is no any ports that need to depend on io2d. Is your project that is required for io2d?
You might need to run ./vcpkg integrate install and then add -DCMAKE_TOOLCHAIN_FILE=VCPKG_ROOT/vcpkg/scripts/buildsystems/vcpkg.cmake.


Strange slot interpretation

I have two utterances:
Verify that country_length variable is more than 3
Verify that country_length variable is less than 9
They are now returning intents correctly:
2019-06-06 17:43:17,363 [MainThread  ] [INFO   ]  Execute Step: Verify that country_length variable is more than 3
2019-06-06 17:43:17,409 [MainThread  ] [VERBOSE]  Intent Returned: validateInput with parameters [{'range': {'start': 12, 'end': 26}, 'rawValue': 'country_length', 'value': {'kind': 'Custom', 'value': 'country_length'}, 'entity': 'web_element', 'slotName': 'element'}, {'range': {'start': 36, 'end': 48}, 'rawValue': 'is more than', 'value': {'kind': 'Custom', 'value': '>'}, 'entity': 'comparator', 'slotName': 'compare'}, {'range': {'start': 49, 'end': 50}, 'rawValue': '3', 'value': {'kind': 'Custom', 'value': '3'}, 'entity': 'random_string', 'slotName': 'expected'}]
2019-06-06 17:43:17,411 [MainThread  ] [INFO   ]  Execute Step: Verify that country_length variable is less than 9
2019-06-06 17:43:17,457 [MainThread  ] [VERBOSE]  Intent Returned: validateInput with parameters [{'range': {'start': 12, 'end': 26}, 'rawValue': 'country_length', 'value': {'kind': 'Custom', 'value': 'country_length'}, 'entity': 'web_element', 'slotName': 'element'}, {'range': {'start': 36, 'end': 48}, 'rawValue': 'is less than', 'value': {'kind': 'Custom', 'value': '<'}, 'entity': 'comparator', 'slotName': 'compare'}, {'range': {'start': 49, 'end': 50}, 'rawValue': '9', 'value': {'kind': 'Custom', 'value': '9'}, 'entity': 'random_string', 'slotName': 'expected'}]
But, before I made this fix, the "9" and only the "9", was being converted to "nine".  The fix was to change two training statements out of about 80:
- Validate that [element](string_var) variable [compare](<) [expected](nine)
- Validate that [element](string_var) variable [compare](is less than) [expected](nine)

Was changed to:
- Validate that [element](string_var) variable [compare](<) [expected](seven)
- Validate that [element](string_var) variable [compare](is less than) [expected](six)

My question is:  Is this to be expected?  That the CRF would decide the convert a raw value based on that exact word being in a training statement?  It seems like a bug(?) Kinda?

Hi @Shotgun167 ,
I'm not sure I understand your issue:

At which step, and where, "9" was converted to "nine"?
Have you defined some synonyms for the 'expected' slot name?

BTW, it would be more appropriate in your case to use the builtin snips/number entity for this slot in order to get a resolved value in the output.

Thank you for the response, Adrien.
The conversion occurred when my statement was parsed.  The model was trained, and then asked to parse the two lines.  The first gave back "three", and the second gave back "nine".  I do not have any synonyms for the entity.
As for using snips/number, there is a conflation with other intents that have made that solution problematic.  I may pursue that point still, but I thought the inconsistency here was strange.  Sometime the value is changed to a number, and sometimes not.  What is the rule that is being followed?  How can I predict the parsed intent to process it on the back end?

Are you using the snips-nlu lib only, or are you training your assistant using the Snips console (console.snips.ai)?
Is the rawValue attribute which is converted or the value attribute in {'kind': 'Custom', 'value': '9'} ?

I'll try to reproduce on my side, in any case it is not the expected behavior.

I managed to reproduce the issue on my side, looking at it now.

Bug found and fixed in #808
It will be available in the next release, probably 0.19.7.
Thanks for reporting!


[UI]

Is your UI update related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like (include image or link to prototype)
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Technical considerations
Include any important CSS values that are relavant to this update.
Additional context
Add any other context or screenshots about the feature request here.

6

Hi @yohanjunejo
Thank you for making a report, could you give more contexts about issue(s) you experienced?


allplayers

generate a list of all active/inactive players with use of long polling
or alternatively try to subscribe to whenever a player joins and then make an api request (need to be able to parse server console information for this)

depends on #3

use alternative now that #3 is possible to do. should store all player data in a db -> create db + service/repo/controller

depends on #16

use the new connect event in palserver api to link username with steam name


Generate all n balanced parenthesis combinations

Have you read the Contributing Guidelines on Pull Requests?
Yes.
Description
Added generate valid parenthesis file in cp(competitive programming) folder.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#4023

@HarshCasper kindly review it.

@HarshCasper I have made the changes. Kindly review.
Thank you.


[BUG] php.ini reverts to default values - ie. date.timezone, memory_limit & so on.

Describe the bug
ELevate process does not seem to restore php.ini backups into the live locations, hence things like timezone are lost.
I thought that it was taking backups of the files and then restoring them?
Server time is OK, it's PHP config that gets defaulted.
Keep in mind that many websites will not enter a failed state due to this, however heavy websites will perish.
To Reproduce
Steps to reproduce the behavior:

Upgrade server via ELevate.
Crons fire at incorrect time.
PHP timezone revert to UTC.
memory_limit etc all defaulted.

See below diff check between the in-place files and the rpmsave/SOE (which ELevate did not produce):
# diff -u /opt/cpanel/ea-php81/root/etc/php.ini /opt/cpanel/ea-php81/root/etc/php.ini.rpmsave
--- /opt/cpanel/ea-php81/root/etc/php.ini	2024-07-31 00:23:41.564004268 +1000
+++ /opt/cpanel/ea-php81/root/etc/php.ini.rpmsave	2024-05-07 16:08:46.160442066 +1000
@@ -119,7 +119,7 @@
 ;   Production value: On

 ; log_errors
-;   Default Value: On
+;   Default Value: Off
 ;   Development Value: On
 ;   Production Value: On

@@ -259,7 +259,7 @@
 ; Note: You need to use zlib.output_handler instead of the standard
 ;   output_handler, or otherwise the output will be corrupted.
 ; http://php.net/zlib.output-compression
-zlib.output_compression = Off
+zlib.output_compression = On

 ; http://php.net/zlib.output-compression-level
 ;zlib.output_compression_level = -1
@@ -370,7 +370,7 @@
 ; Maximum execution time of each script, in seconds
 ; http://php.net/max-execution-time
 ; Note: This directive is hardcoded to 0 for the CLI SAPI
-max_execution_time = 30
+max_execution_time = 660

 ; Maximum amount of time each script may spend parsing request data. It's a good
 ; idea to limit this time on productions servers in order to eliminate unexpectedly
@@ -380,18 +380,18 @@
 ; Development Value: 60 (60 seconds)
 ; Production Value: 60 (60 seconds)
 ; http://php.net/max-input-time
-max_input_time = 60
+max_input_time = 330

 ; Maximum input variable nesting level
 ; http://php.net/max-input-nesting-level
 ;max_input_nesting_level = 64

 ; How many GET/POST/COOKIE input variables may be accepted
-; max_input_vars = 1000
+max_input_vars = 5000

 ; Maximum amount of memory a script may consume (128MB)
 ; http://php.net/memory-limit
-memory_limit = 128M
+memory_limit = 256M

 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Error handling and logging ;
@@ -481,7 +481,7 @@
 ; server-specific log, STDERR, or a location specified by the error_log
 ; directive found below. While errors should not be displayed on productions
 ; servers they should still be monitored and logging is a great way to do that.
-; Default Value: On
+; Default Value: Off
 ; Development Value: On
 ; Production Value: On
 ; http://php.net/log-errors
@@ -659,7 +659,7 @@
 ; Its value may be 0 to disable the limit. It is ignored if POST data reading
 ; is disabled through enable_post_data_reading.
 ; http://php.net/post-max-size
-post_max_size = 8M
+post_max_size = 96M

 ; Automatically add files before PHP document.
 ; http://php.net/auto-prepend-file
@@ -802,7 +802,7 @@

 ; Maximum allowed size for uploaded files.
 ; http://php.net/upload-max-filesize
-upload_max_filesize = 2M
+upload_max_filesize = 92M

 ; Maximum number of files that can be uploaded via a single request
 max_file_uploads = 20
@@ -813,7 +813,7 @@

 ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
 ; http://php.net/allow-url-fopen
-allow_url_fopen = Off
+allow_url_fopen = On

 ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
 ; http://php.net/allow-url-include
@@ -880,7 +880,7 @@
 [Date]
 ; Defines the default timezone used by the date functions
 ; http://php.net/date.timezone
-date.timezone = "UTC"
+date.timezone = "Australia/Sydney"

 ; http://php.net/date.default-latitude
 ;date.default_latitude = 31.7667
@@ -1642,3 +1642,4 @@
 ; Local Variables:
 ; tab-width: 4
 ; End:

Expected behavior
php.ini backups for all versions being restored should bring the customisations back, avoiding impact to applications.

When RPMs are removed, files classified as "config" are backed up to .rpmsave files (php.ini.rpmsave, for example).

The php.ini.rpmsave files present were not added by ELevate, rather by previous processes months ago.
/opt/cpanel $ ls -l ea-php*/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60881 Dec 17  2020 ea-php73/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60893 May  7 16:08 ea-php74/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60893 May  7 16:08 ea-php81/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60893 May  7 16:08 ea-php82/root/etc/php.ini.rpmsave
-rw-r--r-- 1 root root 60893 May  7 17:44 ea-php83/root/etc/php.ini.rpmsave

we follow up by finding all of the .rpmsave files associated with easy apache and putting them back into place.

That doesn't seem to have happened, as the default files persisted on many (if not all) servers for us at least.

Out of curiosity, what is the contents of ea4_config_files in /var/cpanel/elevate on the server

"ea4_config_files" : {},

Thank you for this report and the additional information.  We were able to replicate this and I believe that I see the source of the issue.  It is currently being tracked internally as RE-499.

@lsthompson TLDR: If you move those ini.rpmsave files back in place post-upgrade, this is all our fix will end up doing. Sorry for the oversight/bug. Thank you for the additional information. This helped us understand the problem. We'll get it fixed going forward.

Thanks folks. @toddr - how does that work given their date stamps? Please ensure you have identified all causes before being confident of a fix. It seems fortunate that any rpmsave files existed in this instance - or no?

I would say intentional not fortunate. The entirety of the bug is that the .rpmsave files are not being put back.
Thanks,
Todd

From: Luke S Thompson @.>
Sent: Thursday, August 1, 2024 5:40:28 PM
To: cpanel/elevate @.>
Cc: Todd Rinaldo @.>; Mention @.>
Subject: Re: [cpanel/elevate] [BUG] php.ini reverts to default values - ie. date.timezone, memory_limit & so on. (Issue #486)
Thanks folks. @toddrhttps://github.com/toddr - how does that work given their date stamps? Please ensure you have identified all causes before being confident of a fix. It seems fortunate that any rpmsave files existed in this instance - or no?
—
Reply to this email directly, view it on GitHubhttps://github.com/cpanel/elevate/issues/486#issuecomment-2264138653, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAAX4ZB2KGKTAEV4323TKPDZPK2NZAVCNFSM6AAAAABLUFETFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRUGEZTQNRVGM.
You are receiving this because you were mentioned.Message ID: @.***>

Thanks, but I don't see how that makes sense with a May 7th date on the rpmsave file variants? ELevate was this week.

Thanks, but I don't see how that makes sense with a May 7th date on the rpmsave file variants? ELevate was this week.

I believe the date stamp would be the date the file was last modified not when it was renamed.

I believe the date stamp would be the date the file was last modified not when it was renamed.

Ah cool, thanks for clarifying - I'd appreciate if you could please double-check / confirm this, too. :-)

Hey @toddr - don't forget that Changelog.md is missing v51 and v52, and version is missing v52!

Hey @toddr - don't forget that Changelog.md is missing v51 and v52, and version is missing v52!

Release is currently at v50 right now


AMD GPU and Engine crash when running OpenXR scene.

Godot version
v4.0.alpha16.official [86dd3f312]
System information
Windows 11 64-bit, AMD Radeon RX 6800 XT
Issue description
When attempting to run a project made in OpenXR, as soon as the game window appears, my system will freeze and blackscreen.
Log
OpenXR: Running on OpenXR runtime:  SteamVR/OpenXR   0.1.0
Godot Engine v4.0.alpha16.official.86dd3f312 - https://godotengine.org
OpenXR: XrGraphicsRequirementsVulkan2KHR:
 - minApiVersionSupported:  1.0.0
 - maxApiVersionSupported:  1.2.0
Vulkan API 1.2.0 - Using Vulkan Device #0: AMD - AMD Radeon RX 6800 XT

OpenXR: Found supported reference space  XR_REFERENCE_SPACE_TYPE_VIEW
OpenXR: Found supported reference space  XR_REFERENCE_SPACE_TYPE_LOCAL
OpenXR: Found supported reference space  XR_REFERENCE_SPACE_TYPE_STAGE
OpenXR: Found supported swapchain format  VK_FORMAT_R8G8B8A8_SRGB
OpenXR: Found supported swapchain format  VK_FORMAT_B8G8R8A8_SRGB
OpenXR: Found supported swapchain format  VK_FORMAT_R32G32B32A32_SFLOAT
OpenXR: Found supported swapchain format  VK_FORMAT_R32G32B32_SFLOAT
OpenXR: Found supported swapchain format  VK_FORMAT_R16G16B16A16_SFLOAT
OpenXR: Found supported swapchain format  VK_FORMAT_D32_SFLOAT
OpenXR: Found supported swapchain format  VK_FORMAT_D16_UNORM
OpenXR: Found supported swapchain format  VK_FORMAT_D24_UNORM_S8_UINT
OpenXR: Found supported swapchain format  VK_FORMAT_D32_SFLOAT_S8_UINT
USER ERROR: Parser bug (please report): tried to assign unset node without an identifier.
   at: resolve_class_interface (modules/gdscript/gdscript_analyzer.cpp:656) - Parser bug (please report): tried to assign unset node without an identifier.
USER ERROR: Parser bug (please report): tried to assign unset node without an identifier.
   at: resolve_class_interface (modules/gdscript/gdscript_analyzer.cpp:656) - Parser bug (please report): tried to assign unset node without an identifier.
USER ERROR: Parser bug (please report): tried to assign unset node without an identifier.
   at: resolve_class_interface (modules/gdscript/gdscript_analyzer.cpp:656) - Parser bug (please report): tried to assign unset node without an identifier.
USER WARNING: res://assets/misc/ladder.tscn:4 - ext_resource, invalid UUID: uid://d346yp1mwx747 - using text path instead: res://assets/misc/ladder.glb
   at: load (scene/resources/resource_format_text.cpp:448) - res://assets/misc/ladder.tscn:4 - ext_resource, invalid UUID: uid://d346yp1mwx747 - using text path instead: res://assets/misc/ladder.glb
USER WARNING: res://scenes/BasketballCourt.tscn:3 - ext_resource, invalid UUID: uid://cnfvt5mnclsgo - using text path instead: res://assets/misc/ring.glb
   at: load (scene/resources/resource_format_text.cpp:448) - res://scenes/BasketballCourt.tscn:3 - ext_resource, invalid UUID: uid://cnfvt5mnclsgo - using text path instead: res://assets/misc/ring.glb
USER WARNING: res://assets/sketchfab.com/basketball/basketball.tscn:5 - ext_resource, invalid UUID: uid://beketqaubosqr - using text path instead: res://assets/sketchfab.com/basketball/scene.gltf
   at: load (scene/resources/resource_format_text.cpp:448) - res://assets/sketchfab.com/basketball/basketball.tscn:5 - ext_resource, invalid UUID: uid://beketqaubosqr - using text path instead: res://assets/sketchfab.com/basketball/scene.gltf
OpenXR initialised successfully
Using swap chain format: VK_FORMAT_R8G8B8A8_SRGB
USER ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1746) - Condition "err" is true. Returning: ERR_CANT_CREATE
USER ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1746) - Condition "err" is true. Returning: ERR_CANT_CREATE
USER ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1746) - Condition "err" is true. Returning: ERR_CANT_CREATE
USER ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1746) - Condition "err" is true. Returning: ERR_CANT_CREATE
OpenXR: Failed to locate view space in play space [ XR_ERROR_TIME_INVALID ]
USER ERROR: vkCreateGraphicsPipelines failed with error -4 for shader 'SceneForwardClusteredShaderRD:13'.
   at: render_pipeline_create (drivers/vulkan/rendering_device_vulkan.cpp:6850) - Condition "err" is true. Returning: RID()
USER ERROR: Condition "pipeline.is_null()" is true. Returning: RID()
   at: _generate_version (servers/rendering/renderer_rd/pipeline_cache_rd.cpp:60) - Condition "pipeline.is_null()" is true. Returning: RID()
USER ERROR: Condition "!pipeline" is true.
   at: draw_list_bind_render_pipeline (drivers/vulkan/rendering_device_vulkan.cpp:7572) - Condition "!pipeline" is true.
USER ERROR: The vertex format used to create the pipeline does not match the vertex format bound.
   at: draw_list_draw (drivers/vulkan/rendering_device_vulkan.cpp:7778) - Condition "dl->validation.pipeline_vertex_format != dl->validation.vertex_format" is true.
USER ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) - Condition "err" is true. Returning: ERR_CANT_CREATE
USER ERROR: vkBeginCommandBuffer failed with error -4.
   at: _begin_frame (drivers/vulkan/rendering_device_vulkan.cpp:8974) - Condition "err" is true.
OpenXR: Failed to locate view space in play space [ XR_ERROR_TIME_INVALID ]

Steps to reproduce

On windows 11
Download any of the recent alpha builds of godot 4
Create a basic OpenXR project
Run the project

Minimal reproduction project
Godot 4 openxr demo

Duplicate of https://github.com/godotengine/godot/issues/59505.


Closing.


[Bug][dolphinscheduler-dao] Follow the doc development env setup guide,  Cannot log in after the system is started with admin account

Describe the bug
User login failed
To Reproduce
I was build a development environment according to the  "Development environment setup" section of  Developer guide,
After completing all steps, i start the system . But  the system reports an error that the user cannot log in。
Expected behavior
login success with default admin account.
Screenshots
login failed with default admin account.

Which version of Dolphin Scheduler:
-[1.3.4-release]
Additional context
I found the reason through the debugger, The code UpgradeDao.initSchema() like this：
case POSTGRESQL:
            initSqlPath = "/sql/create/release-1.2.0_schema/postgresql/";
            initSchema(initSqlPath);
            break;

then the init sql script dolphinscheduler_ddl.sql like this:

define the t_ds_user table has not  state field, but the entity User has this field as the picture shows.

so system throw an error like this when login:
### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column 'state' in 'field list'
### The error may exist in file [C:\xxx\githubpoj\incubator-dolphinscheduler\dolphinscheduler-dao\target\classes\org\apache\dolphinscheduler\dao\mapper\UserMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: select                  id, user_name, user_password, user_type, email, phone, tenant_id, create_time, update_time, queue, state               from t_ds_user         where user_name=? and user_password = ?
### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'state' in 'field list'
; bad SQL grammar []

Requirement or improvement

CreateDolphinScheduler Class  And related init sql script should optimization.  According to the different versions, call different sql script。

Hi，Glory,please check the pg table，the t_ds_version table has a record, the version is 1.3.1?

Hi，Glory,please check the pg table，the t_ds_version table has a record, the version is 1.3.1?

no, the version is  1.3.4

no, the version is  1.3.4

ta-dolphin-scheduler/sql/upgrade/1.3.0_schema/mysql/dolphinscheduler_ddl.sql

ta-dolphin-scheduler/sql/upgrade/1.3.0_schema/mysql/dolphinscheduler_ddl.sql

Yeah, so code has no problem,  just the guide doc has flaws . After all, according to the document operation,  the system can not login in，cause trouble for novice.
there is only this step in the document like this.

Should add one step,  run the main method of org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler to automatically update the tables.

Yeah, so code has no problem,  just the guide doc has flaws . After all, according to the document operation,  the system can not login in，cause trouble for novice.
there is only this step in the document like this.

Should add one step,  run the main method of org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler to automatically update the tables.


Use standard Spark DataFrameReader to read back partitioned.

Deleted all the nonsense.

Fixes #621

Fixes #667

hmm, don't merge yet -- I'm going to abstract the parquet search and sort code to a utility function

Two minor comments.  So good.


Issue #755 Sort-AppFoldersByDependencies doesn't support "id" in dependencies

I believe the subject issue had been reported as fixed in release <IP_ADDRESS> but I am using version <IP_ADDRESS> and still getting same error. Could you please let me know if I am missing anything?
Error Log:
ForEach-Object : The property 'id' cannot be found on this object. Verify that the property exists.
At C:\Program
Files\WindowsPowerShell\Modules\navcontainerhelper\<IP_ADDRESS>\AppHandling\Sort-AppFoldersByDependencies.ps1:91 char:26
$script:sortedApps | ForEach-Object {
CategoryInfo          : NotSpecified: (:) [ForEach-Object], PropertyNotFoundException
FullyQualifiedErrorId : PropertyNotFoundStrict,Microsoft.PowerShell.Commands.ForEachObjectCommand

It is impossible for me to help without knowing version numbers and a lot lot more.
I prefer the script used to repro the problem and full output of these.

I have attached the script here. NavContainerHelper version I am using is <IP_ADDRESS>. Thanks.
Compile-App.zip

Hi Freddy, did you have a chance to look into this?

Figured it out. Copied your functions to a local PS and tracked the code and saw some illegal chars in app.json that VSC was not showing!!


bitsadmin fails

When i try to execute this line from readme.md
bitsadmin /transfer "GetBatch" "https://git.io/vDDjn" "%cd%\kivy.bat"

It fails with "invalid command" and prints the usage screen.
System: Windows 10 Build 14393.693

Ah, so apparently it's happening. I hoped they'd just forget about its deprecation. Anyway, it's mentioned in the file directly where it's available, so try to download it back if possible for Win10 and then it should work fine.
I was considering writing it in Powershell, but the versions of it seems to vary, yet Batch JustWorks(tm). Well, not in this case I presume.
I'll write some check for bitsadmin.exe as I should have already done before and just use Powershell for downloading like in AppVeyor.

No, bitsadmin is still there, it also says it's depricated, but then it says invalid command and prints the usage screen...
I think there is some problem with the /transfer command of bitsadmin.

Well, I'm confused... Please paste the whole log after the instructions, because the bitsadmin.exe works correctly for me.

I'm currently only on my phone but i will do it tomorrow!
On Mon, Feb 27, 2017, 23:24 Peter Badida<EMAIL_ADDRESS>wrote:

Well, I'm confused... Please paste the whole log after the instructions,
because the bitsadmin.exe works correctly for me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/KeyWeeUsr/KivyInstaller/issues/5#issuecomment-282876400,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFCHvIPg58V2gwsDtyGGLpOia34GFLrCks5rg00dgaJpZM4MNVTE
.

Sorry, my fault!
I was running the command from git bash and didn't think yesterday much about it, but some commands just don't work there, maybe the %cd% messes up the command.
in cmd and powershell everything works fine!


Error causing GPO corruption

In step 19 under "To configure a wireless connection profile for PEAP-MS-CHAP v2", the article states, "To specify that user identity is masked in phase one of authentication, select Enable Identity Privacy, and in the textbox, type an anonymous identity name, or leave the textbox blank."
However, leaving the textbox blank on a Server 2016 DFL domain, doing this corrupts the entire GPO and it will neither display settings in GPMC nor can any endpoints/users that receive the policy do any interactions with Group Policy via HTML (e.g. gpresult /h gp.html will write a blank HTML file and then error out with 'access denied', regardless of the accounts used, even domain admins). This appears to be an issue with corruption of the HTML inside the GPO itself.
The only remedy I could find was to delete our 802.1x policy and start over, and specify a value in the anonymous identity name field. I did not test editing the field without deleting the GPO.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 912eee02-541e-5183-6e4b-cf366c0fbfaf
Version Independent ID: 353c5a11-faf8-7fa7-6199-0bccbc695689
Content: Wireless Access Deployment
Content Source: WindowsServerDocs/networking/core-network-guide/cncg/wireless/e-wireless-access-deployment.md
Product: windows-server
Technology: networking
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Update command_line_options.rb to support password

Thanks for the gem! Attempting to add password support.
-m

Looks good. Thanks. :+1:


Color field empty after migration

The color field is inside a matrix.
I checked the migration file, and the all my color fields are empty.
CraftCMS : 3.1.12
PHP: 7.1.22

@MichaelCaraccio fixed in latest release


Merge vs15rtw -> xplat

Thanks @jeffkl , can't use the GitHub UI to merge branches anymore.

Haha


Santa barbara county california

Added Santa Barbara County, California.

Wondering if changes to Ventura County are intentional, maybe old code from #169 ?

I just pushed a revert commit to undo the changes to ventura-county.js.  This branch is only intending to create a new scraper for Santa Barbara County.

Closed as #176 was merged instead


Omit pom.xml deletion.

This PR makes it so the clean task of any project that applies from the generatePom script does not delete the pom.xml.
The change is made to match the behavior of the generateLicenseReport.

@armiol, PTAL.


fips: Add configure option to only allow pedantic installs

Meaning ensure all build-time defaults are pedantic, and setting them
to non-pedantic values errors out the provider.

Sigh, need to fix all the tests after a rebase.

The fipsinstall app ought to be modified to force the -pedantic option.

I struggled with this. In a split build situation is fipsinstall expected to be run from the fips build or vanilla build? Is it expected that openssl app from any release can activate any fips.so? Or does one need to install fips.so and fipsinstall from the same build?

The new configure option needs to be documented.

Ack.

We should have a CI that tests this option (which will cascade into some level of pain).

Approved only mode.

I don't think we can actually remove indicators completely (not that this attempted to do so).

Sort of. Error is returned, indicator is raised, no output is produced. And module just refuses to accept settable options.

The original intention was for fipsinstall to be used from the build tree for the FIPS provider.  That's kind mutated into fipsinstall installing any version of the FIPS provider.

Also not sure if this should be named "no legacy" or some such.
As the intent is that a build with this configuration option, has implemented all know transitions and chooses not to support any legacy use of anything that will be taken away. Thus streamlining submission, review and approval.


Type definitions resolve generic inputs.

Description
Allows generic types to be used as argument annotations. Fix suggested by @skilkis in #2285.
Types of Changes

[ ] Core
[x] Bugfix
[ ] New feature
[ ] Enhancement/optimization
[ ] Documentation

Issues Fixed or Closed by This PR

#2285

Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Thanks for adding the RELEASE.md file!

Here's a preview of the changelog:

Type definitions resolve generic inputs.
T = TypeVar('T')

@strawberry.type
class Node(Generic[T]):
   @strawberry.field
   def data(self, arg: T) -> T:  # `arg` is also generic
       return arg

Here's the preview release card for twitter:

Here's the tweet text:
🆕 Release (next) is out! Thanks to A. Coady for the PR 👏

Get it here 👉 https://github.com/strawberry-graphql/strawberry/releases/tag/(next)


The method in in FixtureAnyFreeSpecLike is not declared as infix causing Scala 3.1 to stop with error

This is the error message when I am trying to use in in an AnyFreeSpec style test:
[error] 32 |     "between Int observes the bounds" in check {
[error]    |                                       ^^
[error]    |Alphanumeric method in is not declared `infix`; it should not be used as infix operator
[error]    |The operation can be rewritten automatically to `in` under -deprecation -rewrite.
[error]    |Or rewrite to method syntax .in(...) manually.
[error] -- Error: /home/wasowski/work/symsim/src/test/scala/symsim/concrete/RandomizedSpec.scala:111

This is with Scalatest 3.2.14, scalatestplus scalacheck-1-17 <IP_ADDRESS>, and Scala 3.1.3.
Actually just noticed that this may affect many methods in the internal  DSL of scalatest.  I am getting the same errors for the matchers sublanguage:
[error] 36 |      withClue ("3,2") { policy (3,2) should (be (Left) or be (Up))  }
[error]    |                                                        ^^
[error]    |Alphanumeric method or is not declared `infix`; it should not be used as infix operator
[error]    |The operation can be rewritten automatically to `or` under -deprecation -rewrite.
[error]    |Or rewrite to method syntax .or(...) manually.

Should possibly be filed under another issue (or this one should be renamed).
The issue is only present when compiling with -source:future and -Xfatal-warnings flag (apparently this is still not an error in Scala 3.1.3).

@wasowski Bummer, it seems like my last round of cleaning for ScalaTest DSL didn't cover all.  I'll work further on style traits DSL (first case in your example) and the missed and/or in matchers DSL.  I'll try to see if there's more DSL needed infix, in case you notice do feel free to leave a comment here.
Thanks!

@wasowski Fyi I submitted the following PR for this:
https://github.com/scalatest/scalatest/pull/2170


Consider using system-deps

It should make easier to find the host libraries.

PR?

If it is acceptable, I can send one :)

Sure!


s/uniq/distinct

yay removing deprecation warnings. this closes #198, as git grep uniq now comes up empty

also, that first commit failed a build due to flakiness

Looks good :+1:

:ship: :it:

It is flakiness. See this commit for a description of the flake.
I am restarting the build now. I missed your comment b/c I was drowning in notifications at the time. My bad.

Passed. Merging.


[bug] HER not working in environments that have max_step = 1

Describe the bug
HER is not working with environments that have a max step equal to 1. For example, on a modified version of BitFlipping where the agent can make only one action. The desired goal never changes on the "compute_reward()" method. I think it should use the achieved_goal sometimes as the desired one so it can compute a good reward and the agent can learn something. The behavior is ok with the default version of BitFlipping
desired goal used
Code example
code to run
Modified part of BitFlipping, the 'step' method always returns True as the 'done' variable
    def step(self, action):
        if self.continuous:
            self.state[action > 0] = 1 - self.state[action > 0]
        else:
            self.state[action] = 1 - self.state[action]
        obs = self._get_obs()
        reward = self.compute_reward(obs['achieved_goal'], obs['desired_goal'], None)
        done = reward == 0
        self.current_step += 1
        # Episode terminate when we reached the goal or the max number of steps
        info = {'is_success': done}
        done = done or self.current_step >= self.max_steps
        return obs, reward, True, info

System Info
Describe the characteristic of your environment:

lib installed by pip
using CPU
python 3.6.8
tensorflow 1.14.1
gym 0.15.4
stable baselines 2.7.0

Hello,
Thanks for reporting the issue. After looking more closely, I think this is normal for the future strategy.
As mentioned in the code:
https://github.com/hill-a/stable-baselines/blob/4fada47f1b71b7548c935b1f01c6fb04199b3d54/stable_baselines/her/replay_buffer.py#L155-L158
However, using the final strategy, it samples different goal but does not seem to learn much...


Packages for Ubuntu 20.04 LTS (focal)

Check CONTRIBUTING guideline first and here is the list to help us investigate the problem.
Is your feature request related to a problem? Please describe.
Ubuntu 20.04 LTS (focal) was released but official Treasure Agent APT repository doesn't provide packages for this LTS release yet.
Describe the solution you'd like

Add support of Ubuntu 20.04 LTS (focal) to official Treasure Agent APT repository
Update documentation about supported platforms

Describe alternatives you've considered
Additional context

It will be supported by td-agent 4 and don't create issue for td-agent on fluentd repository.


DLL version does not match release version

Please make sure to update DLL version with the release version so it's easier to track what is installed.
Example of current release when creating issue:
Release on github: 0.0.12
Version of DLL file: <IP_ADDRESS>

Thanks, should be fixed for the next release


md2 module not found during angular cli compile when referencing master branch

Bug, feature request, or proposal:
Please update the project to support referencing the master branch.
What is the expected behavior?
According to the README:

Playing with the latest changes from master is also possible
npm install --save https://github.com/Promact/md2.git

What is the current behavior?
The code installs but I see an error when running ng serve
 Cannot find module 'md2'.
What are the steps to reproduce?
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/rQmUz8WYRh5Vz4gwY8E4?p=info
Plunkr not relevant since this seems to be a build issue.
What is the use-case or motivation for changing an existing behavior?
Allow using code from the master branch.
Which versions of Angular, MD2, OS, browsers are affected?
Angular 4, MD2 master, Windows 8, Chrome
Is there anything else we should know?

@tw3 please look issue #133


x/build: frequent test failures due to no space on aix-ppc64 builder

#!watchflakes
post <- repo == "tools" && builder == "aix-ppc64"

Starting last night, the aix-ppc64 builder started failing frequently on both the main repo and x/tools. (I noticed because watchflakes filed ~30 flakes for x/tools tests related to aix-ppc64).
CC @golang/release

Ah, this appears to be the problem:
/.cache/gopls/7f4281e2/analysis/13: no space left on device
CC @adonovan, in case this is related to gopls file caching.

cc @golang/aix

I think this is a defect in the gopls test suite: it appears to me that the tests are leaving behind a lot of data in ~/.cache/gopls.
I ran rm -r /.cache/gopls on a gomote session and it appears to have (slowly!) reclaimed around 7GB (of a 10GB) root partition.

Independently, we should double-check the gopls cache invalidation logic to make sure we don't end up consuming too much space in end users' .cache directories. 😅

If this is fixed in the builder, we can repurpose this issue for following up on cache usage.
@bcmills thank you for investigating.

I think this is a defect in the gopls test suite: it appears to me that the tests are leaving behind a lot of data in ~/.cache/gopls.

I think you're right. I suspect that because it takes so long (over a minute) just to walk the directory tree at full speed, at least on some machines, none of the test processes ever even starts sweeping garbage before it is terminated.

That flake is #59475, which I'm looking at.

I just cleared off many GiB of .cache/gopls from the freebsd-arm64-dmgk builder (https://build.golang.org/log/40dc9e3bd385f3f68c8a12032377c97a91245741).


Produce correct relative URLs

What is the problem this feature will solve?
The URL Standard describes how to combine a string with a relative path with a base URL to produce a valid absolute URL.
This feature request is: given an absolute URL and a base URL, produce a string with a relative path that when joined to the base URL, would produce the original absolute URL.
This is similar to file system path operations like Go's Rel and Python's relpath.
Practical application: some HLS video players expect relative paths, despite the HLS spec allowing for absolute paths. I want to produce correct relative paths given the relevant absolute ones.
What is the feature you are proposing to solve the problem?
Some function like:
ada_relative_path(base, input)

Example:

base: https://example.org:8080/origin/multivariant/playlist.m3u8
input: https://example.org:8080/origin/media/1080p.m3u8
output: ../media/1080p.m3u8
validate: parse output with base, get back input

What alternatives have you considered?
Using the file system tools.

URL spec for relative-URL string: https://url.spec.whatwg.org/#relative-url-string

It seems good for me to give help to this, where is starting point to create those functions? src/ada_c.cpp ? or src/url.cpp

@ardi-nugraha
There are two underlying implementations, ada::url (simpler but slower) and ada::url_aggregator (faster but trickier). You could start with ada::url:
https://github.com/ada-url/ada/blob/f2c7328bf96bc229cfc19cfb526c832da1691b67/include/ada/url.h#L38
Once it works, you could try with ada::url_aggregator:
https://github.com/ada-url/ada/blob/f2c7328bf96bc229cfc19cfb526c832da1691b67/include/ada/url_aggregator.h#L25


Adding new icons

Hi,
First of all, congratulations on the website. It looks really good.
I have been thinking of utilising the same as my own personal website (credited to you!). I was wondering how do I go about adding a new icon, say youtube, to the list of icons in
src/components/icons.
I downloaded an SVG file for the same and converted it to .js file (do you recommend a particular method of doing that?) which is now present as youtube.js at
src/components/icons.
I also added the same in formattedIcon.js and I thought it will be good to go as:
youtube: 'https://www.youtube.com/watch?v=pYe77UhBgKg'
But I am still not able to get the youtube-icon below my project. I would welcome your suggestions

Hey @abhishek-t-naive, It's hard for me to help you without seeing any code! My only suggestion is to double-check your spelling?

Aah! I should have shared my repo with you.
https://github.com/abhishek-t-naive/v4
Here I have posted the most recent version of what I have been working on. The structure is the same as your website.
Moreover, I would like to know from you if there is a specific format in which .js files should be. I am a novice when it comes to JS, so I am not aware. As I don't use a Mac, I can't use Sketch to generate a logo. I tried using Inkscape to generate an SVG file which I converted to a .JS file using  this but that didn't work just like with the youtube-icon.
Is it possible for you to point out any particulars while trying to add new icons, logos or other .js files?

Just took a quick look and it looks like there's nothing wrong with the youtube icon. Is there any more context you can provide?

I am not sure if I have anything else to add to this.
I am using:
.nvm/versions/node/v12.16.2/ on Ubuntu 18.04
Is it possible for you to try out the Youtube icon integration on your end to see if it a system-specific issue?

Hey @abhishek-t-naive I cloned your repo and added youtube as a social media item in config.js -- it seemed to show up fine?

Note that I had to comment out the cover graphql query first in order to get the site to run

The above is working fine for me as well in config.js. But if you have a look at the file index.md, I am trying to display the icon along with the github and external website icon.
My apologies, I don't think I presented you with the actual file with the problem before

Gotcha, you'd have to add youtube to the GraphQL query and pull it into the Featured component

Yeah, this worked perfectly. With the above changes, I also modified other section of Featured component. Thank you!
Before we close the issue, I would just like to ask you that to replace the logo at the start, do I just need to make replace the loader.js with that of the new logo or are there more places to make changes to?
[You can ignore this if it is something that I am supposed to figure out myself, considering that you did not design the website as a template]

You'd also have to change IconLogo in the nav. Glad you figured it out!

Hey @abhishek-t-naive I cloned your repo and added youtube as a social media item in config.js -- it seemed to show up fine?

Note that I had to comment out the cover graphql query first in order to get the site to run

Hey @bchiang7 , why did you have to comment out the 'cover' graphql query in order to get the site to run?

it was throwing an error for me


Feature request: Add an option to disable buffering writes to a closed port

SerialPort Version: 6.2.0

NodeJS Version: N/A

Operating System and Hardware Platform: N/A

Have you checked the right version of the api docs?: N/A

Are you having trouble installing and you checked the Installation Special Cases docs? N/A

Are you using Electron and have you checked the Electron Docs?: N/A

I have a device which is only intermittently connected, and requires a specific handshake sequence each time it is connected. The user may disconnect it without warning. Although I now test the isOpen property before every write, there is a race condition where a device disconnect occurs between the property access and the write, which results in the write being buffered. The next time the device is connected, the handshake sequence is not correct, because of the buffered write.
This could be avoided by adding a Serialport constructor option to disable buffering of writes to a closed port.

Any chance of looking at this now, after the great re-organisation?


Typos in code samples (possibly symptomatic of systematic issue?)

Hi, just thought you might want to update the code samples as a few characters are missing.  There are five instances on this page where a IReadOnlyList is declared incorrectly.
For example, the line:
IReadOnlyList<StorageFilefileList = await picturesFolder.GetFilesAsync();
should be:
IReadOnlyList<StorageFile> fileList = await picturesFolder.GetFilesAsync();
You might want to check that something is not systematically removing the "> " character sequence from the code samples?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 51591798-4020-169a-d74d-c5bd31bb88dc
Version Independent ID: 65327a75-003c-5642-b4ff-257dbd92e697
Content: Enumerate and query files and folders - UWP app developer
Content Source: windows-apps-src/files/quickstart-listing-files-and-folders.md
Product: windows
GitHub Login: @laurenhughes
Microsoft Alias: lahugh

This seems to be an isolated situation (possibly a failed IDE refactoring?) The C++ on the same page contains directives and vectors with properly matched guillemets (I had to look for this word up for the < and > symbols)

This issue appears to be fixed.


Rules with negation logic not retracting facts correctly.

I noticed that when I have a rule with a negation logic (i.e. a rule that looks at the absence of a fact in the session), it doesn't seem to be working as expected with how we'd expect retraction to work.
I have an example to explain the scenario I'm seeing:
;; inside namespace ns.rules

(s/defrecord A [])
(s/defrecord B [val :- s/Num])
(s/defrecord C [val :- s/Num])

(defrule ab-rule
  [A]
  =>
  (insert! (->B 100)))

(defrule bc-rule
  [B (= val 50)]
  =>
  (insert! (->C 1)))

(defrule bc-rule-neg
  [:not [B]]
  =>
  (insert! (->C 0)))

Here's a test case that I have that tries to validate the rule logic:
(deftest negation-rule-test
  (let [query (dsl/parse-query [] [[?c <- C]])

        session (tr/with-tracing (sr/mk-session [ab-rule
                                                 bc-rule
                                                 bc-rule-neg
                                                 query]))

        session-after-rule-firing (-> session
                                      (sr/fire-rules)
                                      (sr/insert (->A))
                                      (sr/fire-rules))

        facts (-> session-after-rule-firing
                  (sr/query query)
                  (set))]

    (is (= 0 (count facts)))
    (println facts)
    (clojure.pprint/pprint (tr/get-trace session-after-rule-firing))))

So when I run this test, it fails indicating that (count facts) is 1 and not 0.  I would expect that the (count facts) to be 0 because of how the rule logic should work:

Initially, I'm firing rules without inserting anything. This should cause the bc-rule-neg rule to be fired, which should insert fact C with :val 0.
Then I'm inserting fact A. This should cause the ab-rule to fire, causing fact B with :val 100 to be inserted.
This should activate the bc-rule, however since the constraint match fails(100 != 50), it will not insert fact C.
Around the same time, I would expect the bc-rule-neg's LHS to no longer match since there exists a fact B, causing fact C with :val 0 to now be retracted. Instead what I see is that this retraction doesn't seem to be happening and the fact continues to exist in the session.

There's possibly an issue with how negation is working in this specific scenario.
Here's the results from the test (Note I have tracing results being printed out as well):
=> facts:
#{{:?c #ns.rules.C{:val 0}}}

=> tracing results
[{:type :add-facts-logical,
  :token {:matches [], :bindings {}},
  :facts ({:val 0})}
 {:type :right-activate,
  :node-id 3,
  :elements ({:fact {:val 0}, :bindings {:?c {:val 0}}})}
 {:type :left-activate,
  :node-id 7,
  :tokens ({:matches [[{:val 0} 3]], :bindings {:?c {:val 0}}})}
 {:type :add-facts, :facts ({})}
 {:type :right-activate,
  :node-id 0,
  :elements ({:fact {}, :bindings {}})}
 {:type :left-activate,
  :node-id 4,
  :tokens ({:matches [[{} 0]], :bindings {}})}
 {:type :add-activations,
  :node-id 4,
  :tokens ({:matches [[{} 0]], :bindings {}})}
 {:type :add-facts-logical,
  :token {:matches [[{} 0]], :bindings {}},
  :facts ({:val 100})}
 {:type :left-retract,
  :node-id 6,
  :tokens [{:matches [], :bindings {}}]}
 {:type :remove-activations,
  :node-id 6,
  :activations
  ({:node
    {:id 6,
     :production
     {:name "ns.rules/bc-rule-neg",
      :lhs
      [[:not {:type ns.rules.B, :constraints []}]],
      :rhs (clara.rules/insert! (ns.rules/->C
 0))},
     :rhs
     #<test_rules$eval13745$fn__13746 ns.rules$eval13745$fn__13746@285d8d24>},
    :token {:matches [], :bindings {}}})}]

I see that a :left-retract is being done along with :remove-activations, so I don't know what else might be missing here. I haven't dug through the working logic of the engine itself, but I thought I'd post what I was seeing here so it's visible.
Let me know if you need anything else.

The above commit should fix this issue, and a clara-rules-0.9.0-SNAPSHOT with the fix is up on the Sonatype repository. I'll get a fix release out today (probably 0.8.4).
https://oss.sonatype.org/content/repositories/snapshots/

I went ahead and pushed a 0.8.4 release containing this change, which addresses an issue that I'm almost certain causes the behavior described here. Thanks for reporting this!
If this or some other issue persists we can reopen this or log a new one.

Thanks for the quick fix Ryan! I tested the change and it's working fine now.


replace the museado logo

The logo sizes aren't right, and we need the logo without the tagline.

@tacman Its fixed yesterday. Let me know if you found any issues on any page. Just share the link with me.


Calling One Saga on Three Actions

I have to call the server multiple times (fetching options) to fetch data. The only difference is the url, the data structure is the same.
export function* requestSelection (data) {
  const { payload: {resolve, reject, selection} } = data

  const headers = new Headers()
  headers.append('Content-Type', 'application/json')
  headers.append('Accept', 'application/json')

  const url = `${API_BASE_URL}/data/${selection}`
  const req = yield call(request, url, {
    method: 'GET',
    headers
  })

  if (!req.err) {
    const selections = []
    req.data.data.forEach((item) => {
      selections.push({
        text: item.value,
        value: item.id
      })
    })
    resolve(selections)
  } else {
    reject(req.err)
  }
}

Here are the actions

export function* requestSelectionOptons1Saga () {
yield * takeLatest(SELECT_OPTIONS1, requestSelection)
}
export function* requestSelectionOptions2Saga () {
yield * takeLatest(SELECT_OPTIONS2, requestSelection)
}
export function* requestSelectionOptions3Saga () {
yield * takeLatest(SELECT_OPTIONS3, requestSelection)
}

I call them in my app in this manner

Promise.all([
this.getSelection('options1'),
this.getSelection('options2),
this.getSelection('options3')
])

Just the `getSelection` method is here

getSelection (selection, state) {
return new Promise((resolve, reject) => {
const payload = {
resolve,
reject,
selection
}
  switch (state) {
    case 'sectors':
      this.props.selectOptions1(payload) // calls the requestSelectionOptons1Saga
      break
    case 'targetingApproach':
      this.props.selectOptions2(payload) // calls the requestSelectionOptons2Saga
      break
    default:
      this.props.selectOptions3(payload) // calls the requestSelectionOptons3Saga
      break
  }
}

}

The problem I have is that when they all fire in the `Promise` somewhere along the way, the requests gets mixed up. I maybe requesting `Options1` but it returns me the result of `NotOptionsResult` saga. When I looked the chrome inspector, it returns the correct response.

My questions or theory here is that:

* Should I separate the `requestSelection ` saga into three separate actions? (i.e: `requestSelectionOptions1` etc ...)
* I am firing too many sagas at one?

Hey, I must say the issue is a little ill-formatted and its hard to read and reason about this.
I aint sure how and what are you dispatching. From your getSelection it seems that you dispatch from inside a Promise constructor's callback.
 I assume you dispatch them correctly - so the dispatched actions have correct types on them. Are they all have different string types?

Should I separate the requestSelection  saga into three separate actions? (i.e: requestSelectionOptions1 etc ...)

You shouldnt split your saga into 3, but please confirm if you have 3 seperate action types.

I am firing too many sagas at one?

Definitely not. :) there should be no problem with such 3 sagas.

If you still need a help, please reopen this. Closing for now, as there was no activity here for over a month


TUL/after_test-5 Overview size doesn't match thumbnail box size

Problem description

I've tried to reproduce this error. Steps:

Create Item with pdf file.
I run the command dspace filter-media

And the thumbnail size was correct.

Part of the problem is old application of filter-media to content. When imported from old installation, the sizes are different and look bad in dspace 7. Using dspace filter-media -f reindexes even those files, therefore creating thumbnails of correct size. The only disadvantage is extra time, which is taken by reindexing ALL bitstream, as opposed to only indexing ones, that were not previously indexed.

Part of the problem is old application of filter-media to content. When imported from old installation, the sizes are different and look bad in dspace 7. Using dspace filter-media -f reindexes even those files, therefore creating thumbnails of correct size. The only disadvantage is extra time, which is taken by reindexing ALL bitstream, as opposed to only indexing ones, that were not previously indexed.

Ok, so after reindexing all old application data using the dspace filter-media -f command this error should disappear.

We will check this behavior after reindexing all old application data.


Update resolver and loader syntax to work with webpack 4

@amireh for some reason, I wasn't able to run the tests on the project.  At first I thought it was because I'm on Windows but I also tried on OSX and it also failed.  I tried these changes my work project using both webpack 3 and webpack 4 and it works for both.  Let me know if any additional fixes are needed.

Codecov Report

Merging #215 into master will decrease coverage by 0.12%.
The diff coverage is 66.66%.

@@            Coverage Diff            @@
##           master    #215      +/-   ##
=========================================
- Coverage   94.53%   94.4%   -0.13%
=========================================
  Files          25      25
  Lines         713     715       +2
=========================================
+ Hits          674     675       +1
- Misses         39      40       +1

Impacted Files
Coverage Δ

lib/HappyLoader.js
82.14% <50%> (ø)
:arrow_up:

lib/WebpackUtils.js
89.06% <71.42%> (-1.27%)
:arrow_down:

Continue to review full report at Codecov.

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

Thanks for the patch!
Regarding the tests, you need to run npm install in every folder under upstream/ so that we can test against different versions of webpack then you run npm test:webpack{1..4} as needed.
It's a bit convoluted but works. Perhaps I'll add some instructions to the README. Anyway, I'm pulling this down for testing.

The tests needed a lot of rework and we still have to fix loaderContext.resolve but I'll do it locally.
Thanks again for the contribution.

Your change has been incorporated in the 5.0.0-beta.1 release (happypack@next) - please give it a try and leave feedback in #200 .


Fixes middle aged humanoids not showing the correct description when examined

This is for Helmsley, 34 is indeed not enough to be considered old.
:cl:

fix: Examining a humanoid with an age between 30 and 60 years old now properly shows them as middle-aged instead of old.

wdym, pretty sure you're considered old by the time you turn 25

wdym, pretty sure you're considered old by the time you turn 25

25??? 🔪

Does this change anything? All I saw is line formatting.

Does this change anything? All I saw is line formatting.

Fixes the return value of the function in the case of a middle aged human.


Added permissions to coordination api for CCM

What this PR does / why we need it:
When deploying CCM with the RBAC settings from https://github.com/kubernetes/cloud-provider-openstack/tree/master/cluster/addons/rbac, it is not allowed to use the coordination API.
Also see comment: https://github.com/kubernetes/cloud-provider-openstack/issues/829#issuecomment-557504452
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Release note:

/lgmt

/approve

/lgtm


Reduce Flicker of Sync Status

Describe the issue
The UI flickers briefly when synchronizing.
This is a followup to #310.
Can you reliably reproduce the issue?
If so, please list the steps to reproduce below:

Create a wallet and watch the home screen
Wait about 35 seconds, watching the area around the balance

Expected behavior
¯_(ツ)_/¯
Not flickering!  In part, we could add a debounce delay before showing the progress indicator.  Implementing that adds another issue, where there wouldn't be an indicator of how fresh the data is.  One option might be to change the text "up-to-date" to reflect changing values.  "Updated less than a minute ago" isn't super helpful, because it still doesn't change during ideal conditions.  "Updated at 12:21pm" might be better, because the value keeps refreshing and providing a user a visual indicator that it actually did something.
Actual behavior + errors
The app is behaving "correctly" in that it shows a loading state while making a request to the server.  The problem is that when requests occur very quickly, the UI appears to flicker as the indicator displays and then disappears.

Assigning to geffenz to get some clarity on what the actual behavior should be.

Subtitles like "up-to-date" don't change unless there is a problem, create a more interactive subtitle or "last updated xx:xx"

The final home screen design has a circular widget that contained the ability to show multiple sync states (and action states).
However, the current MVP may be able to use a more clear double progress bar or simplified your_height/tip_height status.

This is an ongoing discussion right now with syncing optimizations to handle tx spam.

Closing. Will reopen if necessary during design reviews.


Request: hp multipliers

Any chance for multipliers for friendly npcs and summons to go with the enemy hp multipliers?
would make battles with npcs around last alot longer make summons not so easily taken out.
Also hoping it could affect bosses aswell.. two shotting Hosilla.. in battle with Lann.

Currently the code for hp multiplier looks for anything that isn’t a part of the “player faction”. This is how it worked in bag of tricks for kingmaker.
However, it did have a side effect of making it so if if an npc starts out friendly it will not get its hit points multiplied. This would be a nice change to have for this mod.


flow and consistency

Great work! Lots of small errors fixed. There are a few broken links that need to be addressed before merging. This caught me a few times without build with yarn build before pushing. CI will show the issues but adding below for ease.
  Exhaustive list of all broken links found:

  - On source page path = /validators/detailed-instructions:
     -> linking to /validators/quick-start

  - On source page path = /validators/getting-started:
     -> linking to /validators/running-a-validator

  - On source page path = /validators/validator-quickstart:
     -> linking to /validators/running-a-validator


Customise theme to SWeL colours

Colours are detailed in the README file
_config.yml file has been updated to use SWeL blue for links and top banner and SWeL grey for the footer.
Need to update the style sheet to use SWeL blue for headers and SWeL grey for text

@ImranAsif48 to enable the publications to build I've had to include the theme into my branch. You can see this in commit https://github.com/SWeL-EDI/swel-edi.github.io/commit/36c82e4beb4cd5cb763dbb34b273204d490ad6ee


component: header

I created 3 subcomponents :

ToolLinkComponent
DirectLinkComponent
DirectLinkDropdownComponent (that is composed of many of the previous one)

I also used a polymorphic slot for direct_links with the types option, cf viewcomponent doc
This allows calling :

c.with_direct_link_simple title: "thing", path: "#here"
or c.with_direct_link_dropdown title: "other thing" do |cc| ...

and preserve the order when displaying them in the component view with direct_links.each do |direct_link|
The suffix _simple is quite unfortunate but I could not find a way to not have this suffix for the default case.

@freesteph I’m going to need to merge this to be able to use it in a new PR in collectif-objets because I'm already depending on the next PR with the Tabs

Looking


Add Query interfaces

This sparked from a joke on twitter.
I know you will reject this, but maybe it's a discussion worth having?

In theory, this PR is a BC break if someone was extending AbstractQuery in a custom class and was overriding some of the previous contained constants. Constants in an interface can't be overridden by a class or another interface.
In practice, I would ask why that person would do such a thing in a custom class, seeing it as a bad practice at first.

Needs a rebase if you want to push this forward, or closing.

I wouldn't push this forward - queries are very hardly an abstraction IMO
On 8 Dec 2017 03:32, "Michael Moravec"<EMAIL_ADDRESS>wrote:
Needs a rebase if you want to push this forward, or closing.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/doctrine/doctrine2/pull/6692#issuecomment-350155180,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJakFWBwB4A1L8jv0xJCq-lGZJQJt3Hks5s-J_FgaJpZM4POBMH
.


setValue should accept partial value

The setValue function definition was defined as the following:
export declare function setValue<TValue>(value: TValue): ProjectFn<AbstractControlState<TValue>>;
export declare function setValue<TValue>(value: TValue, state: AbstractControlState<TValue>): AbstractControlState<TValue>;

However it  will be better to provide partial values, so the definition can be rewrite as the following (added Partial):
export declare function setValue<TValue>(value: Partial<TValue>): ProjectFn<AbstractControlState<TValue>>;
export declare function setValue<TValue>(value: Partial<TValue>, state: AbstractControlState<TValue>): AbstractControlState<TValue>;

@DerekLiang the setValue function does not really take a partial object. If you want some form control to be optional you need to make that explicit in your form value's interface. The reason for this is that other parts of the ngrx-forms API could fail (either at compile- or at run-time) if only a partial form group was present. For example the validate update function takes a function that is given the form value as a parameter. If some control of a group did not exist even though the form value interface indicates it always does then this opens the door for run-time failures.