text:
Replaced WebUtility.HtmlEncode with IHtmlEncoder.HtmlEncode

Issue - #304
@dougbu @NTaylorMullen

:watch:

Add a test validating that TagHelperOutput uses the provided encoder & add a test that verifies that the TagHelperRunner create TagHelperOutputs with the provided encoder.

:watch:

Updated.

Close, :watch:

Updated.

:watch: just want to see the testing changes.

Updated.

suggest pulling at least the pass-through HTML encoder into the Testing repo as the first step of the aspnet/MVC#2085 fix.

:shipit: once @dougbu is happy.

Passing IHtmlEncoder to TagHelperRunner doesn't work. It throws this error (A field initializer cannot reference the non-static field, method, or property 'RazorPage.HtmlEncoder') when trying to create a private TagHelperRunner __tagHelperRunner = new TagHelperRunner(HtmlEncoder).

I suggest we have Razor create an activate property for the taghelper runner.

@NTaylorMullen good idea.  another way of doing it be something like the following (every time).  activation seems better.  (requires a change from using CSharpTagHelperCodeRenderer.RunnerVariableName, GeneratedTagHelperContext.RunnerTypeName, and not writing out the declaration to something like GeneratedTagHelperContext.RunnerPropertyName)
__tagHelperRunner = __tagHelperRunner ?? new TagHelperRunner(HtmlEncoder);
__tagHelperExecutionContext.Output = __tagHelperRunner.RunAsync(__tagHelperExecutionContext).Result;

Actuallly shoot, I've talked myself out of the [Activate] approach because that'd require us to include the TagHelperRunner in DI which is somewhat odd since none of the other TagHelper bits are in DI. How about a mix of the two and have the __tagHelperRunner be instantiated at the top of the ProcessAsync method?
public Task ProcessAsync()
{
    __tagHelperRunner = new TagHelperRunner(HtmlEncoder);
    ...
}

@NTaylorMullen [Activate] works for services, yes.  but it also works for anything that we wish to special-case in DefaultTagHelperActivator.  so this case could work using [Activate].  the alternate you suggest works as well but involves RazorPage methods directly referencing generated fields.  let's discuss tomorrow.

Updated. @NTaylorMullen @dougbu

:shipit:

:watch: just for the CSharpTagHelperRunnerInitializationVisitor documentation

Updated. @dougbu

:shipit: with one small change

Nuke branch when you're ready.

authors: NTaylorMullen ajaybhargavb dougbu

repo: aspnet/Razor


text:
error using dotnet watch

Could not read the incremental cache file: ...
Not sure what is this, but a proper error message telling me how to fix it will surely help.
is this a bug on the watcher or something wrong with my code?

Please share more details about what you were doing when you got that error. Project files, executed command, dotnet version would be useful

@victorhurdugaci I understand that the info provided is poor, unfortunately i'm not sure what was exactly what happened.
I can provide little info, unless until I get that error again.
I had a working solution,
run dotnet watch
did a lot of changes, specially on model objects (ef entities), had to upgrade database, execute migrations, lots of breaking stuff on controllers/services etc. Somewhere in between the dotnet watch were returning that error and when I get the project to compile successfully again the error was persisted. Had to close and reopen dotnet watch and had same error.
I can't be sure what exactly fixed the issue as I deleted obj/bin folders, clear nuget packages cache, restore again and the it worked.
It was in the middle of a rc1->rc2 migration, there were too many moving parts.
Didn't see the error again. I know this is not of much help... If I ever get this error I will try to be more 'debuging' and less 'try to fix'.
When I filed the issue, I was thinking that the error can be understood by MS developers and maybe apply a proper error message and some info about what this is and a way to fix it. Like (delete obj/bin folders and try again, if it has anything to do with the error, of course.)

I've never seen that message before but I searched for it now. It seems to be coming from dotnet cli https://github.com/dotnet/cli/blob/91fb67835d11f60bbe4763f0de6d3859236cb07a/src/dotnet/commands/dotnet-build/IncrementalCache.cs
It was probably a build bug. I suggest opening a bug on the CLI if you see it again.

Sure. Feel free to close this as I understand is not of much help.

source: gharchive/issue

authors: Bartmax victorhurdugaci

repo: aspnet/dotnet-watch

license_type: permissive

license_source: github-api


text:
Highlight helper not working

I'm trying to use the highlight helper but it's just not outputting anything:
{{#highlight}}

my code

{{/highlight}}

Is there any config needed or some idea of why it's not working?
Thanks.

There isn't a {{highlight}} helper in this library.

Sorry then, probably a plugin coming from the stack I was using, probably from template-helpers. Thanks.

authors: alejandroiglesias doowb

repo: assemble/handlebars-helpers

license: mit

license_source: bigquery


text:
Créer un tableau de bord interne

Je vous propose de valider le principe et la structuration d’un tableau de bord interne avec possibilité de l’amender. Une fois que validation faite, nous pourrons faire vivre le tableau de bord (après présentation à l’équipe).
https://roamresearch.com/#/app/virtual-assembly/page/s2_xhfB53

@ReX-AV-Gab je ne suis pas sur de bien comprendre la finalité d'un tableau de bord interne.
Peut-on éventullement utiliser les issues et le kanban, plutôt qu'un outil supplémentaire (en fonction de la finalité) ?

La finalité est de pouvoir accéder aux informations internes sans avoir à chercher pendant un trop long moment. Je pense que cela peut être très intéressant pour un nouvel arrivant dans l'équipe.
Si l'utilité n'est pas avérée, je pense qu'il serai alors préférable éviter d'utiliser un "outil" supplémentaire.

@ReX-AV-Gab Les PR permettent de modifier des fichiers (code ou docusaurus), en proposant de merger deux branches. Ce n'est pas adapté s'il n'y a pas de code (d'ailleurs tu as été obligé de faire une comparaison entre deux branches qui n'avaient pas de sens)
Il faut faire une issue à la limite.
Désolé si c'est moi qui n'est pas été assez clair.

@ReX-AV-Gab Je ferme cette PR qui crée du bruit puisque chaque fois que quelque chose est ajouté sur master, ça crée une notifications.
Je t'invite à créer une issue pour ça si tu penses que c'est pertinent.

source: gharchive/pull-request

authors: ReX-AV-Gab bouviermullerp srosset81

repo: assemblee-virtuelle/semapps


text:
$scope value gets undefined (and can't be modified) for CPF, CNPJ masks

I'm on version 2.0.0
If I start a $scope object like this:
$scope.partner = {cpf: someVar};

Then the input below is pre-filled with someVar, but changing it in the slightest will delete the $scope.partner.cpf variable (inspecting, it shows as undefined, and using {{partner.cpf}} on the HTML renders nothing. Even ngChange won't trigger anymore on the input (only once, and the value will be undefined already).
<input type="text" placeholder="CPF" ng-model="partner.cpf" ui-br-cpf-mask>

I found issue #110 to be similar but I'm not sure if it's related. Tried changing it to the ui-br-phone-number directive instead and it works fine. But both ui-br-cpf-mask and ui-br-cnpj-mask lead to this problem.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34168301-scope-value-gets-undefined-and-can-t-be-modified-for-cpf-cnpj-masks?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

What is the type of your data? Number or String?
Which angular version you are using?

Same here. I am getting undefined when try to get the value in the Controller
View/HTML
<input type="text" ng-model="data.amount" ui-money-mask="2" ng-change="onChange('amount')">
Controller
$scope.onChange = function (action, value) {
  amount = $scope.data.amount;
  console.log('value: ' + value)  // <- getting undefined
}

Angular version: v1.3.20
Is that possible use ng-change directive with the ui-masks?

@assisrafael string type, and I'm using angular 1.3.15

Can you build a live demo (plunker, etc) to reproduce your error?

I believe I found the issue, it may be a bug for this scenario.
Scenario
I am using pattern="\d*" into the  for force the numeric keyboard in iPhone.
<input type="text" pattern="\d*" ng-model="data.amount" ui-money-mask="2" ng-change="onChange('amount')">
I reproduced the error in CodePen with and without the pattern.
See CodePen

Thanks for your work and +1 star for you.

@berbare perhaps the cpf number you'ŕe typing down is not being validated?
Make sure your CPF is valid. For this, you can use a service like this one http://www.controlenanet.com.br/validacnp/valida_cnp.php

Had this issue here. Probably your CPF ins't valid. There is any way to remove or toggle validation? If not, I'm going to propose this change.

Resolved?

CNPJ same bug

@ichagas your pattern should deal with the other symbols ($ and .(dot)). I changed your CodePen with a pattern="[$ \d|.]*" and it worked!
The only way I got an undefined was with invalid values, but I think it's the expected behavior. I think the best bet here is @felippeduarte's idea to be able to toggle the validation off.

Hey, sorry for the late response. I'm not sure why but the issue's not bothering anymore. I think it was indeed related to invalid model values, but I can't reproduce the exact problem anymore.
I'm more familiar now with angular and its directives, so I get why it showed up as undefined. Still, I'm now able to overwrite this undefined value and eventually reach a valid input (changing the model property as expected). Back when I opened this issue, I was unable to do this overwriting in case it ever got undefined. That's what I can't reproduce anymore, and I believe the current behavior is as expected.

authors: assisrafael berbare brunoksato detinho felippeduarte ichagas kristiantenfen rcrodrigues

repo: assisrafael/angular-input-masks


text:
Misaligned cards when the description text is long

Aligned now

license: MIT


text:
[Question] Pattern syntax - how to escape characters

Hi there! I'm not able to find documentation about how to escape characters such as /<>. For example, this command
sg -p '\/\/ @ts-check'  -r '/** @ts-check */' -l ts src/**/*.tsx --interactive

is returning the following error: Error: Cannot parse query as a valid pattern. I would greatly appreciate your help. Thank you!
https://ast-grep.github.io/playground.html#eyJtb2RlIjoiUGF0Y2giLCJsYW5nIjoidHlwZXNjcmlwdCIsInF1ZXJ5IjoidXNlU3RhdGU8c3RyaW5nIHwgdW5kZWZpbmVkPiIsImNvbmZpZyI6IiMgQ29uZmlndXJlIFJ1bGUgaW4gWUFNTFxucnVsZTpcbiAga2luZDogY2FsbF9leHByZXNzaW9uXG4gIGhhczpcbiAgICBraW5kOiB0ZW1wbGF0ZV9zdHJpbmdcbiAgICBmaWVsZDogYXJndW1lbnRzXG4iLCJzb3VyY2UiOiJpbXBvcnQgeyB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0J1xuXG5mdW5jdGlvbiBmb290ZXJUZW1wbGF0ZSgpIHtcbiAgICBjb25zdCBbc3RhdGUsIHNldFN0YXRlXSA9IHVzZVN0YXRlPHN0cmluZyB8IHVuZGVmaW5lZD4oKVxuICAgIHJldHVybiA8cD57c3RhdGV9PC9wPlxufVxuIn0=

Hi! Thanks for trying ast-grep out!
For the playground link, the problem is that func<A | B> is not a valid TypeScript syntax. You need add () to make a valid generic function call.

Link
For the command, I think it is because / does not need escaping in shell. This command works for me.
sg -p '// @ts-check'  -r '/** @ts-check */' -l ts  --interactive

I also confirmed with the --debug-query option.
$ sg -p '// @ts-check'  -l ts  --debug-query
Pattern TreeSitter (comment)

Thanks! You are absolutely right! I was trying this
sg -p 'useState<string|undefined>()'  -r 'useState()' -l ts portal/**/*.tsx --interactive

instead of
sg -p 'useState<string|undefined>($A)'  -r 'useState($A)' -l ts portal/**/*.tsx --interactive

Is there any character that needs escaping in shell?

If you are using single quotes ' as string delimiter in shell, you don't need to escape any character except the ' itself.
" needs to escape $ sign though.

authors: HerringtonDarkholme josuemontano

repo: ast-grep/ast-grep


text:
Fix code formatting

Fix code formatting by removing unnecessary spaces and the beginning of the string

Before
After

Thanks, @astaxie! 👍


text:
Radius assignment depends on frame's size

The current algorithm for assigning a limiting radius to a cluster depends on the size of the frame, in the sense that it uses the number of points in the RDP as a variable.
This works fine for well behaved clusters but not so much for slightly more complicated ones. For example: in very large frames containing a small cluster, this will act as a minimum radius constrain artificially increasing the cluster's radius.
Needs to be fixed making the algorithm not depend on the number of points in the RDP but in the total area below the RDP.

A month later, turns out this wasn't an easy task to resolve. Still working on it.

repo: asteca/asteca


text:
Mac OSX .app can not start second time.

Finally i managed to get my astilectron app running on a Mac.
I do not use go-astilectron-bootstrap as discussed and mentioned here: https://github.com/asticode/go-astilectron-bundler/issues/82
Now i have the following issue and i think this is something related to caching issues. But i'm not 100% sure.
I'm creating a bundle and move the generated Mac OS .app File to my /Applications/ Directory.
When i'm starting the App the first time everything works fine. resources and vendor directories are restored under
 /Applications/MyApp.app/Contents/MacOS
Now i'm closing my application and want to restart it. The app icon blinks a second in the Dock and then disappears. Nothing more happens. When i go into the  /Applications/MyApp.app/Contents/MacOS directory and run the application binary via Terminal by hand i get from the logs the following interesting part:
Astilectron has already been provisioned to version 0.41.0, moving on...
Electron has already been provisioned to version 7.1.10, moving on...
Listening...
Executing...
Starting cmd /Applications/MyApp.app/Contents/MacOS/vendor/electron-darwin-amd64/My App.app/Contents/MacOS/My App /Applications/MyApp.app/Contents/MacOS/vendor/astilectron/main.js 127.0.0.1:59333 false
Closing...
astikit: stopping worker...
accept tcp 127.0.0.1:59333: use of closed network connection while TCP accepting
Stopping...

The interesting part here is that the Name of my App is Wrong. In the path the name is My App with a space. But actually my app name is MyApp without a space.
The correct command should be:
Starting cmd /Applications/MyApp.app/Contents/MacOS/vendor/electron-darwin-amd64/MyApp.app/Contents/MacOS/MyApp /Applications/MyApp.app/Contents/MacOS/vendor/astilectron/main.js 127.0.0.1:59333 false

Or am i wrong?
As i said i think it is related to cache issues because the app name My App with a space was the previous name i changed  to MyApp without a space. I already tried to clear the cache but this did not help.
Is it possible that somewhere the old electron / astilectron files are provisioned with my old App Name which i have to delete first?

My only guess is that your binary didn't get updated and your app name is still My App in it. It should be easy to check : just log the app name you're providing astilectron in your GO binary and see whether there's a space in it.

@asticode Nevermind. It was totally my fault. My issue was that i implemented before in my app (when the app had the "old" name with the space) an update functionality where the app downloads and replaces the binary with a potential update from a server.
To my disadvantage the update which still is on that server for testing purpose was compiled with the old app name (the space). Now it makes sense that the issue only appears on the second start..
I am sorry to bother you with sometimes very dumb issues which are my fault...but sometimes you just need someone you can tell your problems to ..

authors: asticode bogdanfinn

repo: asticode/go-astilectron-bundler


text:
fix edge case with PIE804

Summary
foo(**{}) was an overlooked edge case for PIE804 which introduced a crash within the Fix, introduced in #7884.
I've made it so that foo(**{}) turns into foo() when applied with --fix, but is that desired/expected? 🤔 Should we just ignore instead?
Test Plan
cargo test

Thanks!

repo: astral-sh/ruff


text:
New pycodestyle.max-line-width option

Summary
This PR introduces a new pycodestyl.max-line-width option that allows overriding the global line-width option for E501 only.
This is useful when using the formatter and E501 together, where the formatter uses a lower limit and E501 is only used to catch extra-long lines.
Closes #7644
Considerations
Our fix infrastructure asserts in some places that the fix doesn't exceed the configured line-width. With this change, the question is whether it should use the pycodestyle.max-line-width or line-width option to make that decision.
I opted for the global line-width for now, considering that it should be the lower limit. However, this constraint isn't enforced and users not using the formatter may only specify pycodestyle.max-line-width because they're unaware of the global option (and it solves their need).
I'm interested to hear your thoughts on whether we should use pycodestyle.max-line-width or line-width to decide on whether to emit a fix or not.
Test Plan
Added integration test

Current dependencies on/for this PR:

main

PR #8000

PR #8002

PR #8032
PR #8006

PR #8035

PR #8010

PR #8039   👈

PR #8031

This comment was auto-generated by Graphite.

I would say that using the pycodestyle line width is probably the most consistent with the intent, since the intent was to avoid introducing E501 violations.

Thanks, that's helpful input. It wasn't clear to me what the initial intent was.

Merge activity

Oct 24, 3:57 AM: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.


text:
Support nightly PyTorch installs

See: https://github.com/astral-sh/uv/issues/2008.
Commands like pip install -U --prerelease allow torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121 currently fail, and it's inconvenient to add the +cu121 specifiers where necessary because the user is intentionally pulling in the "latest" release, and so doesn't want to add a dedicated version specifier.

I think it's possible we could support that specific case by extracting the name and version from the wheel filename (i.e., the URL). Can I ask why you prefer to use direct references for these?

This is an existing requirements file so it is possible there is no good reason under uv. However, in order for this to work without direct references, you have to specify:
 --extra-index-url https://download.pytorch.org/whl/cu118
torch==2.2.1+cu118
torchaudio==2.2.1+cu118

which I assume has a performance hit for large requirements files? It does for pip-tools.
I did try that with uv and it started to choke on some of our dependencies that were valid:
 certifi==2024.2.2

 --extra-index-url https://download.pytorch.org/whl/cu118

 whisperX @ https://github.com/m-bain/whisperX/archive/befe2b242eb59dcd7a8a122d127614d5c63d36e9.zip
 pyannote-audio @ git+https://github.com/pyannote/pyannote-audio@11b56a137a578db9335efc00298f6ec1932e6317
 torch==2.2.1+cu118
 torchaudio==2.2.1+cu118
 pytorch_triton @ https://download.pytorch.org/whl/nightly/pytorch_triton-2.1.0%2B7d1a95b046-cp311-cp311-linux_x86_64.whl

  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of certifi==2024.2.2 and you require certifi==2024.2.2, we can conclude that the requirements are unsatisfiable.

Ah yeah, that's because certifi is published on https://download.pytorch.org/whl/cu118, but only at a different version. We don't allow dependencies to pull "mixed" versions from across indexes as a security measure.

Anyway, I think we can support this specific thing with the URLs.

I created a new issue to track that here: https://github.com/astral-sh/uv/issues/2623

Ah yeah, that's because certifi is published on https://download.pytorch.org/whl/cu118, but only at a different version. We don't allow dependencies to pull "mixed" versions from across indexes as a security measure.

Hi, just experienced this today, specially the different versions of packages being available in the pytorch.
The @ workaround worked, but wondering if there would be other workarounds by now as it is a bit tedious to copy the link of each package specially when there a number of them.

This works now!
uv pip install -U --prerelease allow torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121

authors: charliermarsh ewhauser fernandogrd

repo: astral-sh/uv


text:
Authentication for private registries

Hello! thanks of all, thanks for your awesome work at astral-sh!
I'm trying to use uv to publish to a private registry (cloudsmith). But I'm getting Unauthorized error. The same token is working using poetry. Here is the line I execute:
uv publish --verbose --publish-url https://python.cloudsmith.io/<my_org>/pip/ --token <cloudsmith_api_key> <my_package>.tar.gz
Here is the output:
DEBUG uv 0.4.20
warning: `uv publish` is experimental and may change without warning
Publishing 1 file to https://python.cloudsmith.io/<my_org>/pip/
DEBUG Using request timeout of 900s
Uploading <my_package>.tar.gz (279.2KiB)
DEBUG Using username/password basic auth
DEBUG Response code for https://python.cloudsmith.io/<my_org>/pip/: 401 Unauthorized
DEBUG Upload error response: {"detail": "Authentication credentials were not provided."}
error: Failed to publish `<my_package>.tar.gz` to https://python.cloudsmith.io/<my_org>/pip/
  Caused by: Upload failed with status code 401 Unauthorized. Server says: {"detail": "Authentication credentials were not provided."}

I've tried using the UV_PUBLISH_TOKEN  env var. And also using username as token and the api key as the password.
Could you please add compatibility with cloudsmith? TY!

@juan-abia Does it work if you configure a .netrc file?
$ cat ~/.netrc
machine python.cloudsmith.io
  login LOGIN
  password TOKEN

Doesn't work @astrojuanlu :(
I also updated to verion 0.4.22 and no luck

Hey folks 👋 I'm representing the Cloudsmith team here, so I'm happy to help diagnose from our side, too.
Also wanted to say that we utilize uv (and ruff too, actually) at Cloudsmith, so we'd be delighted to offer support. :)
If you need a free account to test out, just let us know, too. Cheers!

Thank you so much @lskillen -- really appreciate that! A test account would be super useful. I'll let @konstin follow up.

Hi @lskillen! We'd love to collaborate with you on this, and a test account would be great! You can reach me at konsti@astral.sh (or on discord as konsti2849) for coordinating the details.

Sounds good, I'll drop you an email and intro you to our team. :)

@astrojuanlu For cloudsmith, you need to use username and password authentication: For the username, use your username or token, the password is your token. For --token we use the PyPI default of __token__, which mismatches with the cloudsmith token.

@konstin just confirme that using token works

Cloudsmith updated their backend to also allow __token__, so you can now publish with --token, too. Shoutout to the cloudsmith team for adding this so quickly!

Glad it worked. 😁 Happy to be included on a list if one ever exists of "Supported services that work". 😆

Thanks a lot team! closing the issue

authors: astrojuanlu charliermarsh juan-abia konstin lskillen


text:
uv remove and uv add on a package produces missing RECORD file error on dist-info folder

Hey team, experiencing an issue w.r.t. uv remove and then uv add operations, was looking for direction/wondering if there's a known fix. One similar closed issue I found is this one: https://github.com/astral-sh/uv/issues/1525
uv is already installed.
uv 0.4.27 (36b729e92 2024-10-25)
Searching for Python versions matching: Python 3.8.20
Found existing installation for Python 3.8.20: cpython-3.8.20-linux-x86_64-gnu
Using CPython 3.8.20

The problem seems to be the leftover dist-info folder after running the remove command. Once that file is deleted manually, the re-installation occurs as expected. I've looked around and there are some suggestions to pass --ignore-installed as a flag through pip: https://github.com/pypa/pip/issues/4785.
Appreciate any direction & assistance.
# uv remove xgboost
Resolved 67 packages in 115ms
   Built ds-reports @ file:///home/user/ds_reports
Prepared 1 package in 4.61s
Uninstalled 2 packages in 2.06s
Installed 1 package in 122ms
 ~ ds-reports==1.0.2 (from file:///home/user/ds_reports)
 - xgboost==0.90
# uv add xgboost==2.0.0
Resolved 68 packages in 132ms
   Built ds-reports @ file:///home/user/ds_reports
Prepared 2 packages in 5.88s
warning: Failed to uninstall package at .venv/lib/python3.8/site-packages/xgboost-0.90.dist-info due to missing `RECORD` file. Installation may result in an incomplete environment.
# cd .venv/lib/python3.8/site-packages/xgboost-0.90.dist-info
total 0
# ls -la
total 16
drwxr-xr-x.   2 root root  6144 Oct 29 22:06 .
drwxr-xr-x. 156 root root 14336 Oct 29 22:06 ..

Example tail of verbose prints the following
DEBUG Unnecessary package: nvidia-nccl-cu12==2.23.4
DEBUG Unnecessary package: xgboost==0.90
DEBUG Unnecessary package: xgboost==2.1.2
warning: Failed to uninstall package at .venv/lib/python3.8/site-packages/nvidia_nccl_cu12-2.23.4.dist-info due to missing `RECORD` file. Installation may result in an incomplete environment.
warning: Failed to uninstall package at .venv/lib/python3.8/site-packages/xgboost-0.90.dist-info due to missing `RECORD` file. Installation may result in an incomplete environment.
warning: Failed to uninstall package at .venv/lib/python3.8/site-packages/xgboost-2.1.2.dist-info due to missing `RECORD` file. Installation may result in an incomplete environment.

i guess https://github.com/astral-sh/uv/issues/2467 also implies that previous remove command has gone wrong but not seeing any error/warnings come from the preceding uv remove command.

Is this something you're able to reproduce repeatedly, or just the state of a current environment?

Hey Charlie, yes, we've been able to reproduce repeatedly. The team looked into this further today, and we have a possible lead tied back to the warning: Failed to hard link files; falling back to a full copy. you produce.
In our Linux environment, we have an EFS mount on the /home/ directory, so the /tmp/ and /home/ are on different filesystems, and we think this is leading into issue in downstream uv add or uv remove operations. Example:
DEBUG Failed to hardlink `/home/<REPO>/.venv/lib/python3.11/site-packages/pytz/__init__.py` to `/tmp/.tmphrEC5x/archive-v0/mMQe5cXzRdbHNG9Qcjta6/pytz/__init__.py`, attempting to copy files as a fallback
[...]
error: Failed to install: jmespath-1.0.1-py3-none-any.whl (jmespath==1.0.1)
  Caused by: failed to remove directory `/home/<REPO>/.venv/lib/python3.11/site-packages/jmespath-1.0.1.data`
  Caused by: Device or resource busy (os error 16)

However, if we run uv pip check afterward, everything looks fine, but we experience the issue mentioned in initial post.
# uv pip check
Checked 103 packages in 439ms
All installed packages are compatible

Is it an option to point uv to use a different temporary directory for the above operations other than /tmp directory was the question. If so we could test that and report back. Thank you!

You can use --cache-dir <path> instead of --no-cache

I was about to make this edit :) The reason we went for the --no-cache option were the build/wheel issues we experienced with packages like pandasql=0.7, deap-1.4.1, again related to filesystem setup we have on linux
Understand that it's not intuitive to provide a --no-cache flag and then ask to write that to a different temporary directory other than /tmp/.
looking to confirm then there's no redirecting to another folder then /tmp/ with no-cache option.  Looking at environment variables , I thought XDG_CACHE_HOME is something that can be attempted to change. Thanks for the direction again.

one idea is to change the venv path to be created under the persistent filesystem. Not fully sure about the downsides of that approach and whether project directory is persistenly linked towards that venv that exists outside

--no-cache is equivalent to setting --cache-dir <path> then discarding the directory.
We don't respect XDG_CACHE_HOME for --no-cache, https://github.com/astral-sh/uv/blob/e9f1161b953b017d21e70761a52b3fd426a8c111/crates/uv-cache/src/lib.rs#L139-L147
However, we are just using the standard tempdir function which looks like it respects TMPDIR on Unix.

That should do it - appreciate the direction :saluting_face:

authors: akozlu charliermarsh zanieb


text:
UV not found; Docker install fails with latest install and v0.5.0

Hi, love your work.
My docker builds are failing this morning due to a uv installation issue. I'm following this example from the docs. I was able to fix it by pinning to a older version, but figured it was worthwhile to create the issue.
In my dockerfile, using
ADD https://astral.sh/uv/install.sh /uv-installer.sh

or
ADD https://astral.sh/uv/0.5.0/install.sh /uv-installer.sh

Results in a
RUN uv sync --frozen --no-cache

/bin/sh: 1: uv: not found

Running with an older version, however, does not fail. For example
ADD https://astral.sh/uv/0.4.17/install.sh /uv-installer.sh

Here's part of my Dockerfile just in case
# this is my dockerfile
FROM python:3.11-slim

# The installer requires curl (and certificates) to download the release archive
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates

# Download the latest installer
ADD https://astral.sh/uv/0.4.17/install.sh /uv-installer.sh # <-- pinning version fixed it for me!

# Run the installer then remove it
RUN sh /uv-installer.sh && rm /uv-installer.sh

# Ensure the installed binary is on the `PATH`
ENV PATH="/root/.cargo/bin/:$PATH"

WORKDIR /backend
...
...

I resolved my issue by pinning the version, but figured others might come across the issue. Thanks

Duplicate of https://github.com/astral-sh/uv/issues/8925

In v0.5, we moved the default install location to ~/.local/bin. You can view the release notes here: https://github.com/astral-sh/uv/releases/tag/0.5.0. I think the issue is you need to change this line:
# Ensure the installed binary is on the `PATH`
ENV PATH="/root/.cargo/bin/:$PATH"

That works! Thanks!

authors: charliermarsh dwillhelm my1e5


text:
Document ways of having default dependency groups

The dependency-groups documentation (https://docs.astral.sh/uv/concepts/dependencies/#dependency-groups) should explain how to set default dependency groups included when running uv synv.
I see two ways:
[tool.uv]
default-groups = ["lint", "docs"]

[dependency-groups]
dev = [
    { include-group = "lint" },
    { include-group = "docs" },
]

I think this covers 95% of the use-cases of #8594

Is that not covered by https://docs.astral.sh/uv/concepts/projects/dependencies/#default-groups?

Yep already covered, sorry for wasting your time !

authors: awoimbee charliermarsh


text:
Add various grammar changes to conflict error messages

Summary
If all items are the same kind, we can avoid repeating "extra" and "group". If there are two, we now use "X and Y", etc.

This is a little silly, but 🤷♂


text:
URL encode dataset names to support multibyte characters

Description
In projects containing models with names like the following, dataset creation fails, and an error occurs during execution.
└── dbt
    └── my_project
        └── models
            ├── 日本語名モデル.sql
            └── 日本語名モデル.yml

[2024-09-07T04:10:58.435+0000] {local.py:455} DEBUG - URIs to be converted to Dataset: ['snowflake://***.ap-northeast-1.aws/TEST_DB.TEST_SCHEMA.日本語名モデル']
[2024-09-07T04:10:58.437+0000] {taskinstance.py:3301} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.12/site-packages/cosmos/operators/local.py", line 459, in get_datasets
    datasets = [Dataset(uri) for uri in uris]
                ^^^^^^^^^^^^
  File "<attrs generated init airflow.datasets.Dataset>", line 3, in __init__
    _setattr('uri', __attr_converter_uri(uri))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.12/site-packages/airflow/datasets/__init__.py", line 78, in _sanitize_uri
    raise ValueError("Dataset URI must only consist of ASCII characters")
ValueError: Dataset URI must only consist of ASCII characters

To support model names with multibyte characters, it might be good to URL encode the names.
Related Issue(s)
closes: https://github.com/astronomer/astronomer-cosmos/issues/1197
Breaking Change?

Checklist

[ ] I have made corresponding changes to the documentation (if required)
[ ] I have added tests that prove my fix is effective or that my feature works

@pankajkoti @tatiana
Thank you for your review. I plan to implement a test by placing a model with a multibyte character name in the dev/dags/dbt/simple/ project. If there is a more appropriate directory where this model should be placed, please let me know.
I will write the test by tomorrow at the latest.
Thanks!

Hi @t0momi219 , thank you very much! Sounds like a good plan!

repo: astronomer/astronomer-cosmos


text:
[Bug] v0.20.0 version of dag-factory seems to be broken

DAG Factory version
0.20.0
airflow version
2.8.4
Python version
3.11
Deployment
Astronomer
Deployment details
This is on hosted astro cloud version 10.6.0
What happened?
The following error popped up with a new deployment and we noticed dag-factory to have updated -
`
Broken DAG: [/usr/local/airflow/dags/dag_factory.py]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/socket.py", line 827, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc)
httpcore.ConnectError: [Errno -3] Temporary failure in name resolution
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno -3] Temporary failure in name resolution
`
Pinning the package to 0.19.0 seems to fix the issue
Relevant log output
No response
How to reproduce
Do a deploy without a pinned version of dag-factory
Anything else :)?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Contact Details
No response

This may be an issue specific to version 10.x

HI @vishakseshadri thank you very much for reporting this issue.
We'll investigate this issue.
Could you share a reproducible DAG?

Hello, was seeing the same issue with 0.20.0, and reverting to 0.19.0 fixed it. Python 3.10, airflow 2.4.3.
Example dag generator:
import os
from airflow import DAG
import dagfactory

config_files = ["ctm/ctm_daily_config.yml"]

for config_file in config_files:
    full_config_file = os.path.join(
        os.environ["AIRFLOW_HOME"], "dags", "reports", config_file
    )
    dag_factory = dagfactory.DagFactory(full_config_file)
    dag_factory.clean_dags(globals())
    dag_factory.generate_dags(globals())

hi @rorydonaldson @vishakseshadri
The DAG shared or the error log do not provide enough details to debug this much. Can you please share some more details from your
ctm/ctm_daily_config.yml --  especially what operators it is trying to use, what all params are getting passed.
Just taking a wild guess if it is using the HTTPSensor sensor could you then please update the operator path in your YAML similar to the changes shown in PR
https://github.com/astronomer/dag-factory/pull/265/files

Here's an example of our config file
default:
  default_args:
    owner: ddeely
    start_date: 2024-10-25
    retries: 0
    retry_delay_sec: 300
    email: []
    email_on_failure: False
    email_on_retry: False
    timezone: America/Chicago
    op_kwargs: {"config_path": "/usr/local/airflow/include/dag-config/path/to/config/dag.yml"}

  concurrency: 1
  max_active_runs: 1
  dagrun_timeout_sec: 4800
  catchup: False
  default_view: tree
  orientation: LR
  schedule_interval: None
  render_template_as_native_obj: False

check_name:
  schedule_interval: 0 8 * * *
  description: some description
  tasks:
    load_configs_and_run_query:
      operator: plugins.query_operator.QueryOperator
      job_configs:
        postgres_conn_id: us_replica
        sql: '/usr/local/airflow/include/dag-config/path/to/query/query.sql'
        email_attach_results: True
        jira_attach_results: True
    check_results:
      operator: airflow.operators.python.BranchPythonOperator
      python_callable_name: branch_func
      python_callable_file: /usr/local/airflow/plugins/branch.py
      dependencies: [load_configs_and_run_query]
    escalations_required_no:
      operator: airflow.operators.bash_operator.BashOperator
      bash_command: 'echo No Results Found. No Escalation Required.'
      dependencies: [check_results]
    email_escalation:
      email_args:
        senderEmail: astronomer@enova.com
        subject: Unwanted Results for {{ dag.dag_id }} - Environment - {{ task_instance.xcom_pull(task_ids='load_configs_and_run_query', key='current_env') }}
        body: "{{ task_instance.xcom_pull(task_ids='load_configs_and_run_query', key='count_results') }} results found for {{ dag_run.dag_id }}"
        recipientEmail:
          - "{{'recipients@something.com' if task_instance.xcom_pull(task_ids='load_configs_and_run_query', key='current_env') == 'production' else 'recipients@something.com'}}"
        files: []
      operator: plugins.mail_operator.MailOperator
      dependencies: [check_results]
    jira_escalation:
      jira_method_args: {
        'project': { 'id': '21660'}, # CNUALERTS
        'priority': {'id': '3'}, # 1-Blocker, 2-Critical, 3-Major, 4-Minor, 5-Trivial
        'issuetype': {'id': '1'}, # 1-general
        'description':  "@username"
        }
      operator: plugins.jira_operator.JiraOperator
      dependencies: [check_results]

And this is our dag_factory.py
from dagfactory import load_yaml_dags
from airflow.timetables.trigger import CronTriggerTimetable

load_yaml_dags(globals_dict=globals(), dags_folder="/usr/local/airflow/include/dag-config", suffix=['dags.yml', 'dags.yaml', 'dag.yml', 'dag.yaml'])

authors: pankajkoti rorydonaldson tatiana vishakseshadri

repo: astronomer/dag-factory


text:
Add vae_text example

Port vae_text from texar-TF.

Add external distribution
MultivariateNormalDiag.

Add preprocessing for data batch.

Modify None checking condition for initial_state in
RNNDecoderBase.

Modify max_pos for config_trans_yahoo.py.

Modify connectors mlp function.

Refactor vae_text training & generation decoder.

Refactor vae_text decoder embeddings.

Refactor to import texar.torch.

Polish code.

@huzecong  thanks. One possible reason I think is that the checkpoint needs to store more information than current version, since we are using more than learning_rate to determine the stop of the training.

Then why can't we store more info in order to recover the results? what's the difficulty here?

@ZhitingHu yeah... It is actually used to handle the case that training process pauses. I think we can add a parameter for continue training checkpoints, I'll make that.

Did you mean the current code can reproduce the TF results if training is not paused in the middle?

@ZhitingHu Yes, actually "Yahoo-Lstm" once reached ppl 68.95 in the middle, which is better then current 75.21.

Then report the results without interrupted training

Got it.

This PR is not yet ready for review.

This PR is ready for review now.

Results now look reasonable to me. Let's merge this.
After we merge this, can you take a look at the Executor module and think about how we can migrate this example to using Executors?

authors: TomNong ZhitingHu huzecong

repo: asyml/texar-pytorch


text:
Crash in Profiler::getJavaTraceAsync on OpenJDK 64-Bit Server VM Zulu11.63+52-SA

Hi Andrei! We've hit this crash in a customer's environment. I extracted some of the details from the hserr file, let me know if any other particular sections could be helpful.
# JRE version: OpenJDK Runtime Environment Zulu11.63+52-SA (11.0.18+1) (build 11.0.18.0.102+1-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu11.63+52-SA (11.0.18.0.102+1-LTS, mixed mode, g1 gc, linux-amd64)
# Problematic frame:
# C  [libasyncProfiler.so+0x1499d]  Profiler::getJavaTraceAsync(void*, ASGCT_CallFrame*, int, StackContext*)+0x5ed

Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libasyncProfiler.so+0x1499d]  Profiler::getJavaTraceAsync(void*, ASGCT_CallFrame*, int, StackContext*)+0x5ed
C  [libasyncProfiler.so+0x17203]  Profiler::recordSample(void*, unsigned long long, EventType, Event*)+0x3c3
C  [libasyncProfiler.so+0x181ed]  PerfEvents::signalHandler(int, siginfo*, void*)+0xdd

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000100000012

7f4e64406000-7f4e64448000 r-xp 00000000 103:06 949864                    /tmp/gprofiler_tmp/async-profiler-v2.10g2/glibc/libasyncProfiler.so
7f4e64448000-7f4e64647000 ---p 00042000 103:06 949864                    /tmp/gprofiler_tmp/async-profiler-v2.10g2/glibc/libasyncProfiler.so
7f4e64647000-7f4e64648000 r--p 00041000 103:06 949864                    /tmp/gprofiler_tmp/async-profiler-v2.10g2/glibc/libasyncProfiler.so
7f4e64648000-7f4e64649000 rw-p 00042000 103:06 949864                    /tmp/gprofiler_tmp/async-profiler-v2.10g2/glibc/libasyncProfiler.so

This is the async-profiler build used in gProfiler, it's running this code version that is based on 2.10, and I attached the binary that was actually used for your convenience. async-profiler.tar.gz.
This is not an area we've modified in gProfiler so I suppose the problem exists in vanilla async-profiler as well.

Hi @Jongy,
Register values from hs_err.log would be helpful.
In any case, I believe the issue has been already solved in the up-to-date version in master.
The crash has happened while trying to get the receiver class name for itable/vtable stub (see #736). I had a couple of fixes in this area: https://github.com/async-profiler/async-profiler/commit/7a52d79b16e36e1395e29113d915e5d895a46bdd and https://github.com/async-profiler/async-profiler/commit/25587664abea61cec00a116d4d732effe7a67904, but now the feature is disabled by default. It can be enabled back by -F vtable option.
As an immediate workaround, you may disable vtable targets in your profiler version with --safemode 0x40 bit.

Thanks! We'll give it a try with disabled VTABLE_TARGET, then.
I'll send you the register values if the crash continues to trigger.

Hello, I have the same problem. I want to know under which conditions this problem occurs, such as operating system type, JDK type, etc.

Hi Andrei! We've hit this crash in a customer's environment. I extracted some of the details from the hserr file, let me know if any other particular sections could be helpful.
# JRE version: OpenJDK Runtime Environment Zulu11.63+52-SA (11.0.18+1) (build 11.0.18.0.102+1-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu11.63+52-SA (11.0.18.0.102+1-LTS, mixed mode, g1 gc, linux-amd64)
# Problematic frame:
# C  [libasyncProfiler.so+0x1499d]  Profiler::getJavaTraceAsync(void*, ASGCT_CallFrame*, int, StackContext*)+0x5ed

Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libasyncProfiler.so+0x1499d]  Profiler::getJavaTraceAsync(void*, ASGCT_CallFrame*, int, StackContext*)+0x5ed
C  [libasyncProfiler.so+0x17203]  Profiler::recordSample(void*, unsigned long long, EventType, Event*)+0x3c3
C  [libasyncProfiler.so+0x181ed]  PerfEvents::signalHandler(int, siginfo*, void*)+0xdd

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000100000012

7f4e64406000-7f4e64448000 r-xp 00000000 103:06 949864                    /tmp/gprofiler_tmp/async-profiler-v2.10g2/glibc/libasyncProfiler.so
7f4e64448000-7f4e64647000 ---p 00042000 103:06 949864                    /tmp/gprofiler_tmp/async-profiler-v2.10g2/glibc/libasyncProfiler.so
7f4e64647000-7f4e64648000 r--p 00041000 103:06 949864                    /tmp/gprofiler_tmp/async-profiler-v2.10g2/glibc/libasyncProfiler.so
7f4e64648000-7f4e64649000 rw-p 00042000 103:06 949864                    /tmp/gprofiler_tmp/async-profiler-v2.10g2/glibc/libasyncProfiler.so

This is the async-profiler build used in gProfiler, it's running this code version that is based on 2.10, and I attached the binary that was actually used for your convenience. async-profiler.tar.gz. This is not an area we've modified in gProfiler so I suppose the problem exists in vanilla async-profiler as well.
Hello, I have the same problem. I want to know under which conditions this problem occurs, such as operating system type, JDK type, etc.

@243300852 The condition is using and old version of async-profiler.

authors: 243300852 Jongy apangin

repo: async-profiler/async-profiler


text:
Sometimes there is no sleep time for Stream :: interval method

Sometimes there is no sleep time for Stream :: interval method
Duration :: from_micros (1000) runs immediately with no interval
Duration :: from_secs (1) works as expected
fn main() {
    async_std::task::block_on(async {
        use async_std::stream;
        use std::time::Duration;
        use async_std::prelude::*;

        let mut s = stream::interval(Duration::from_micros(1000)).take(3);
        while let Some(v) = s.next().await {
            dbg!(v);
        }

        let mut s = stream::interval(Duration::from_secs(1)).take(3);
        while let Some(v) = s.next().await {
            dbg!(v);
        }
    })

}

Could that be because dbg!(v) itself takes more than 1000 microseconds? What do you think should be the behavior of the first loop?

authors: k-nasa stjepang

repo: async-rs/async-std


text:
fix(posts): now html codes on post list item content will be trimmed

this PR resolves #25

:tada: This PR is included in version 1.0.0-dev.1 :tada:
The release is available on:

GitHub release
v1.0.0-dev.1

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

v1.0.0
GitHub release
v1.0.0

Your semantic-release bot :package::rocket:


text:
[FEATURE REQUEST] RAML-like traits

Is your feature request related to a problem? Please describe.
I want to be able to better reuse parts of an AsyncAPI document. As an example, if all my messages have 4 headers in common, I'd like to be able to group them using a name and express it in each message.
Can't it be tackled using specification extensions?
No.
Describe the solution you'd like
The idea is to implement something similar to what RAML did with traits. Traits are pieces of information that will be merged into the referencing object. Here are some rules:

Traits will be merged using the JSON Merge Patch algorithm.
The object that uses traits MUST be valid before applying them.
The resulting object after applying the traits MUST be valid too.
Traits can only be applied to operation and message objects.
Message traits MUST NOT contain the payload property. Operation traits MUST NOT contain the message property.
Traits MUST be applied in the order they're defined.
Traits MUST NOT contain traits.
It MUST support variables, allowing for simple variable replacement. Variables MUST be enclosed between {{ and }}.
Where used, the items in the array of traits MUST be either a trait definition or a 2-elements array where the first element is the trait definition and the second is a list of variable values. All variables MUST be fulfilled.

Example
channels:
  my/channel:
    publish:
      traits:
        - [{$ref: '#/components/traits/docs'}, {headerId: 'my-channel-publish'}]
      message:
        traits:
          - $ref: '#/components/traits/jsonOverProto3'
          - $ref: '#/components/traits/kafka'
components:
  traits:
    docs:
      externalDocs:
        url: https://mycompany.com/docs#{{headerId}}
    jsonOverProto3:
      schemaFormat: 'application/vnd.google.protobuf;version=3'
      contentType: application/json
    kafka:
      protocolInfo:
        kafka:
          compression: snappy

https://gist.github.com/MikeRalphson/7ee0624fc1df70c0475717d89a5b6e4b

This is exactly how I was imagining it 👍

Just updated the description with the proposal.

This comment from @handrews is something to take into account: https://github.com/OAI/OpenAPI-Specification/issues/1843#issuecomment-475827718.

Updated the description. Changes are:

Traits have a limited set of properties you can apply. Namely, operation traits can have all the operation object properties except traits and message, and message traits can have all the message object properties except traits and payload.
Variable templating delimiters are now {{ and }} to match what the majority of templating systems use.

@fmvilas how did you take into account the comment of mine that you linked to?  I have not had a chance to catch up on all of these traits proposals, so my apologies if the answer should be obvious.  But given the ongoing discussion in OpenAPI for this I am curious as to your reasoning.

Well, the first of all the measures we took is that we're not allowing traits in schemas, just on the operation and message objects. And to be even more sure that we don't mess things up, only a set of safe/annotations fields are allowed to be "overridden". Plus, it is mandatory the object before and after applying traits MUST be valid.
As you can see, the intention is to roll this out slowly and see how it is used. I hope I'm not missing anything from your comment!

Also, traits are something will be preprocessed before diving into any JSON Schema validation. So it's actually syntax sugar on top of the AsyncAPI document.

@fmvilas thanks!  That makes sense.
In the context of the problems I was describing in the referenced issue, even requiring all of the inputs and outputs of the merge to be valid on their own does not eliminate the problem (the example that I give to illustrate the problem actually meets those criteria).  But if you are keeping traits out of the schema objects then it should be fine.

authors: MikeRalphson fmvilas handrews

repo: asyncapi/asyncapi


text:
How about changing the name of generator and how we call templates

Reason/Context
I was just writing an article where I wanted to briefly explain generator and its templates - I failed again. I'm also failing with it always when tweet about it, some generator or template features.
It is ok for projects like https://github.com/OpenAPITools/openapi-generator to call generator a generator because all is contained in a single repo/project
This is the legacy of our generator, in the past is was also a single project. Now "templates" are standalone projects.
maybe simplest would be
generator -> generator-core 🤔
html-template -> html-generator
any-template -> any-generator
(as a result, yes, it means renaming packages in npm)
Description
I like how yeoman explains what it is, that what we call "templates" are "generators" and what we call "generator" is "yeoman"
I like this because I also many times talk about html-template as "HTML generator" or "Docs generator".
While it is not a problem to rename html-template to html-generator, obviously it won't be easy to find a name for the generator. There was a good name, but is already taken (fluffy-robot) 😞 😆
What do you think?

Hmm... I think I am too biased to answer this since it makes perfect sense to me 😆However for those that do not know the concept of templates (you would have to dig into how the generator work) I can understand if we want to change it.
Therefore I am neither for or against it.

maybe simplest would be
generator -> generator-core 🤔
html-template -> html-generator
any-template -> any-generator

We could name the templates as schematics and leave the generator name :)

and how are schematics different from template? how will this improve the wording and explanation?
@magicmatatjahu

I thought you needed a synonym :trollface:
To be honest I have no problem with the name of the generator and with terms such as html generation (from template, not generator) etc. For others people, naming may be a problem, but for me, it's not. Let the others emerge.

generator -> generator-core 🤔
html-template -> html-generator
any-template -> any-generator

I quite like the rename to generator I think, I guess the generator > template isn't too much of a hurdle, but I'm just used to generator wording.

The descriptions for each template say Generates which I guess generator would make more sense?
But as I said not the end of the world, just another hurdle I have to process to initially understand how generator > templates work, think for me anyway generators would make more sense.

@fmvilas only your opinion is missing. If all codeowners are fine, we could query community

I'd not call them "generators". The tool is also called Generator. Are we going to compose sentences like "Use this generator with Generator"? Or another option is that we change the name of tool as well.

they are not called generators, so you would write not Use this generator with Generator but use Node JS Generator either with AsyncAPI CLI or in case of a library, use generator-core library.
So you will say To generate the code in terminal or CI/CD use NodeJS Generator with AsyncAPI CLI. In case you want to do it in a runtime or integrate with your library, use generator-core library

Alrighty, sounds good 👍

yeah, I do not like the name but I do not think the final idea got much attention, we probably have to give it time

authors: boyney123 derberg fmvilas jonaslagoni magicmatatjahu

repo: asyncapi/generator


text:
Persist filters in Tools view in the URL as query parameters

Current state

go to tools view
select filter
refresh view
filters lost

Expected state

go to tools view like you do for blog posts view
select filter like you do for blogs, and you will see filter is added to the URL
refresh view and filter should be applied again as it is in URL query param, so frontend can read it and automatically apply filter
filter not lost, all happy, you can send someone link like https://www.asyncapi.com/tools?language=go&asyncapiOwned and this person will automatically see only Go projects that are owned by AsyncAPI

message to whoever works on it:
before you submit PR please first propose what would be the names of query params and show some examples of what you want to work on
cc @akshatnema

@derberg Do you think this is a good first issue? Because the current implementation of the Filters works on the State change and React Context API. If you want to search through the URL parameters or if the parameters should change, you need to heavily work on changing the structure of the Filters being applied in the tools and if the query parameter works, the context variables and states should change accordingly with each query change along with UI.
Moreover, with the query parameters, the page should provide static rendering only even if the URL query parameters are changed, which may not be much effective as presently, UseEffect is being used globally to update the contents of the page, based on the change in the context variables.
So, in my opinion, the contributor should first give his plan before start working on this issue. So, I won't be in the opinion to consider this as good first issue. WDYT?

Hey @derberg I would like to work on this

Yeah @sambhavgupta0705 Go ahead. But how are you gonna make these things workout, from my perspective, you need to change the structure and functioning of the filters from the core. So, what's your plan?

Hey @akshatnema ,after understanding the codebase,my plan is first we need to update the url which can be easily done with the next router and router.push function.
Now when a user is sharing the link then first we need to check the url length if it's greater than 0 ,then we need to update filters present inFilters.js from there with the help of context api or prop drilling we can access the toolsdashboard.js for the tools section and render the desired output.

Well it will take me some time to work on this issue as I need to deep dive into the codebase and may need to change a lot of code:)

Hey, @derberg Can I work on this issue?

queryParams name will be like languages, technology, category, etc
And my approach will be like this whenever the selection is made the selected option is appended to an array of the respective category when the user clicks "apply filter" the filter gets applied.
For retaining the filter, I will check if there is any query parameter is set or not in the url. If there is any query parameter then it will apply that filter.

Hey, @derberg Can I work on this issue?

yeah @Tusharjain123, you can work on this issue :+1:

repo: asyncapi/website


text:
chore(blog): add the summary for september

Monthly summary - September Edition

@derberg what did I leave out 😁

thanks @Mayaleeeee added the deadline

@derberg @alequetzalli can I get this merged by tomorrow latest please 😁😁😁😁

@derberg  any additions

/rtm

hey @akshatnema can we solve the lighthouse score and revert it back to 0.92 instead of 1?

Hey @thulieblack, I asked Lukasz regarding this to merge the changes for this workflow in this PR - https://github.com/asyncapi/website/pull/2283. Can you tell me, I can merge this PR now or not?

Yes @akshatnema please merge

/rtm

authors: akshatnema thulieblack


text:
Add hint to cookiecutter server

As described in [#52], cookiecutter-server makes editing the template much easier and we should let people know about it!
FYI: @SimonCW, @carsten-bo, @rauerhans, @davidkuda, @Arrrlex, @shagn

I was thinking about notifying the cookiecutter project about this, because it would be nice to integrate cookiecutter-server as a developer tool into the original cookiecutter project. Not sure if it's whithin the original scope of the project though.

I was thinking about notifying the cookiecutter project about this, because it would be nice to integrate cookiecutter-server as a developer tool into the original cookiecutter project. Not sure if it's whithin the original scope of the project though.

Sounds like a good idea to me! The people developing Cookiecutter  will know best whether it’s in scope from their pov - so why not ask 😊

authors: klamann sbunzel

repo: at-gmbh/at-python-template


text:
AllowAutoRedirect functionality

Hi there
I've gone through the documentation and can't seem to find this anywhere.
Looking for a way to automatically follow a redirect if there is one.
Reference: https://docs.microsoft.com/en-us/dotnet/api/system.net.httpwebrequest.allowautoredirect?view=netcore-3.1

Basically, if I navigate to a page, and I receive a 3xx error, I'd like for the navigation to be retried with the new location.

I thought browser with WebDriver should do it by default. In what browser it happens for you? And what do you see in browser in case of 3xx error?

Running locally it works, but once in a CI pipeline (Gitlab, Docker, Kubernetes on linux), the redirect doesn't happen. Using Selenium.ChromeDriver nuget package.
It's running headless in the pipeline so don't really see much. Will see if I can get a screenshot at point of failure.

I can see that this is common headless Chrome issue. You can google "chromedriver headless redirect" and try some of solutions that people recommend to try, like adding "--ignore-certificate-errors" or "--user-agent=Chrome/77" Chrome arguments.

Awesome, thanks. I will try those

authors: MonzT YevgeniyShunevych

repo: atata-framework/atata


text:
getAll(true) not working

Regrettably getAll(true) is not working as expected with a fitered recordset. Only returns filtered records not all records.
This was true in 1.5 and is still true in 1.6.
I think I can see where the problem is in the source code but have no time to fix it.

We are going to fix that in the new version.

This is already fixed. Thanks for the contribution.

authors: atatanasov webcliq

repo: atatanasov/gijgo


text:
🛑 Wedding HTTPS is down

In afbd6d0, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 1f26ecc.

repo: atatkin/milos-uptime


text:
🛑 Wedding HTTPS is down

In aaef9a4, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 709a08e.


text:
🛑 Wedding HTTPS is down

In 7c19906, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 38cad0a.


text:
🛑 Wedding HTTPS is down

In 72707eb, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in a4d9bee.


text:
🛑 Wedding HTTPS is down

In 5fb3fcd, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 24cd493.


text:
🛑 Wedding HTTPS is down

In 1f95cae, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in a853743.


text:
🛑 Wedding HTTPS is down

In e15ea6f, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in d1d64c6.


text:
Fails to build on OS X

Not sure if you're planning on supporting OS X, but I get the following error during make (on OS X 10.8.5):
bin/sh /Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1/libtool --mode=link cc -DPHP_ATOM_INC -I/Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1/include -I/Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1/main -I/Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1 -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -o forp.la -export-dynamic -avoid-version -prefer-pic -module -rpath /Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1/modules  php_forp.lo forp.lo
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/forp.so -bundle  .libs/php_forp.o .libs/forp.o
duplicate symbol _forp_globals in:
    .libs/php_forp.o
    .libs/forp.o
duplicate symbol _old_execute in:
    .libs/php_forp.o
    .libs/forp.o
duplicate symbol _old_compile_file in:
    .libs/php_forp.o
    .libs/forp.o
duplicate symbol _old_execute_internal in:
    .libs/php_forp.o
    .libs/forp.o
ld: 4 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [forp.la] Error 1

Ran to the same issue on OS X. Would appreciate if someone has figured out a workaround.

authors: birhanum gazsp

repo: aterrien/forp-PHP-profiler


text:
Support all ament linters

I noticed that this extension only supports a subset of ament linters: https://github.com/ament/ament_lint/.
Would it be possible to add problem matchers for the rest of them? If it is a lot of work, would you accept PRs to add problem matchers for the linters that I want to use? I am specifically interested in clang tidy and mypy.

I would definitely accept PRs!

Great! Can you give me a brief overview of what would have to be done to add a problem matcher?

I made some instructions here -> https://github.com/athackst/vscode-ament-task-provider/blob/main/How-to-Add.md

Thanks! I'll close this issue then

repo: athackst/vscode-ament-task-provider


text:
Blog app: add authorization rules

Hi Reviewer 👋,
In this branch I fulfilled:

Install CanCanCan in your project.

Add a role column to the users table. Remember to use a migration for this.

A user can delete a post if it is theirs or if they have an admin role (column role has value "admin"). Use CanCanCan for this authorization.

For that you need to implement the post deleting functionality. Add the "Delete" button to the view and make sure that only authorized users can see it.A

A user can delete a comment if it is theirs or if they have an admin role (column role has value "admin"). Use CanCanCan for this authorization.

For that you need to implement the comment deleting functionality. Add the "Delete" button to the view and make sure that only authorized users can see it.A

✋

Thanks for the review @t-yanick


text:
Uncaught Error: spawn /Users/emma/Downloads/Atom.app/Contents/Frameworks/Atom Helper.app/Contents...

[Enter steps to reproduce below:]

Open Atom
Command + Shift + O to open a project folder.

Atom Version: 1.5.3
System: Mac OS X 10.11.3
Thrown From: Atom Core
Stack Trace
Uncaught Error: spawn /Users/emma/Downloads/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper ENOENT
At events.js:141

Error: spawn /Users/emma/Downloads/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper ENOENT
    at exports._errnoException (util.js:837:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:441:9)
    at process._tickCallback (node.js:355:17)
    at EventEmitter.ipc.sendSync (/Users/emma/Downloads/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/ipc.js:21:31)
    at BrowserWindow.Object.defineProperty.get [as loadSettings] (/Users/emma/Downloads/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/remote.js:160:27)
    at Object.windowState (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/src/window-load-settings-helpers.js:17:39)
    at Object.plus.mapObject (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/underscore-plus/lib/underscore-plus.js:287:37)
    at Object.plus.deepClone (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/underscore-plus/lib/underscore-plus.js:130:21)
    at exports.getWindowLoadSettings (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/src/window-load-settings-helpers.js:15:15)
    at ApplicationDelegate.module.exports.ApplicationDelegate.setRepresentedDirectoryPaths (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/src/application-delegate.js:170:22)
    at /Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:844:44
    at Function.module.exports.Emitter.simpleDispatch (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at Project.module.exports.Project.addPath (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/src/project.js:255:29)
    at /Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:869:41
    at EventEmitter.<anonymous> (/Users/emma/Downloads/Atom.app/Contents/Resources/app.asar/src/application-delegate.js:30:16)
    at emitOne (events.js:77:13)
    at EventEmitter.emit (events.js:169:7)

Commands
     -3:36.7.0 core:close (atom-text-editor.editor.is-focused)
     -3:24.6.0 tree-view:remove-project-folder (span.name.icon.icon-repo)
     -0:13.7.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

Config
{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "script",
      "git-plus",
      "about",
      "package-cop",
      "linter-jshint"
    ],
    "openEmptyEditorOnStart": false,
    "themes": [
      "seti-ui",
      "one-dark-syntax"
    ]
  },
  "editor": {
    "fontSize": 13,
    "invisibles": {},
    "showIndentGuide": true
  }
}

Installed Packages
# User
No installed packages

# Dev
No dev packages

This looks like a duplicate of #10774. Feel free to subscribe there for updates!

authors: emmabeynon joshaber

repo: atom/atom


text:
Uncaught TypeError: Invalid Point: (133, NaN)

[Enter steps to reproduce:]

...
...

Atom: 1.39.1 x64
Electron: 3.1.10
OS: Mac OS X 10.13.6
Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Invalid Point: (133, NaN)
At /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11

TypeError: Invalid Point: (133, NaN)
    at Function.Point.assertValid (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:48794)
    at DisplayLayer.translateScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:89900)
    at DisplayMarkerLayer.translateScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1187509)
    at DisplayMarker.setHeadScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2807483)
    at changePosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:521252)
    at Cursor.changePosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:529796)
    at Cursor.setScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:521218)
    at Cursor.moveLeft (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:524040)
    at modifySelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:533852)
    at Selection.modifySelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:546998)
    at Selection.selectLeft (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:533820)
    at Selection.backspace (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:538344)
    at mutateSelectedText.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16061)
    at getSelectionsOrderedByBufferPosition.map (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16220)
    at Array.map (<anonymous>)
    at transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16209)
    at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:491299)
    at TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:24215)
    at mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16150)
    at TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:39484)
    at TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:39038)
    at TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16113)
    at TextEditor.backspace (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16037)
    at TextEditor.e.(anonymous function) [as backspace] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:257668)
    at TextEditor.core:backspace (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:300877)
    at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:306618
    at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:491299)
    at TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:24215)
    at HTMLElement.s.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:306561)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:348736)

Commands
     -1:01.1.0 editor:newline (input.hidden-input)
     -1:00.8.0 core:move-up (input.hidden-input)
     -1:00.6.0 core:paste (input.hidden-input)
     -0:59.7.0 snippets:next-tab-stop (input.hidden-input)
     -0:59.7.0 snippets:expand (input.hidden-input)
     -0:59.7.0 editor:indent (input.hidden-input)
     -0:59.2.0 core:undo (input.hidden-input)
     -0:58.7.0 editor:move-to-first-character-of-line (input.hidden-input)
     -0:58.1.0 snippets:next-tab-stop (input.hidden-input)
     -0:58.1.0 snippets:expand (input.hidden-input)
     -0:58.1.0 editor:indent (input.hidden-input)
     -0:57.7.0 core:save (input.hidden-input)
  3x -0:16.7.0 core:backspace (input.hidden-input)
     -0:09.0 core:save (input.hidden-input)
     -0:04.4.0 core:move-down (input.hidden-input)
  5x -0:03.9.0 core:backspace (input.hidden-input)

Non-Core Packages
atom-html-preview 0.2.6
auto-encoding 0.7.1
japanese-menu 1.14.0
textile-preview 0.1.2

Thanks for contributing!
We noticed that this looks like a duplicate of https://github.com/atom/atom/issues/19114 so you can subscribe there for updates if you'd like.   If you have repro steps or other information to share, please let us know in https://github.com/atom/atom/issues/19114.

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


text:
[v0.184.0] @syntax-text-color has wrong value

When i use @syntax-text-color in my stylesheet or in package stylesheet it is #333333 but for monokai syntax theme it should be #F8F8F2.
Changing the either UI or syntax theme doesn't change its value.

@xlaywan It seems like the #333333 comes from the "fallback" @syntax-text-color: https://github.com/atom/atom/blob/master/static/variables/syntax-variables.less#L5
Where are you trying to use the @syntax-text-color variable? In a theme or in your styles.less? You probably need to first import monokai's syntax variables before you can use them:
@import "syntax-variables";
.my-class {
  color: @syntax-text-color;
}

Oh, thanks. Can be closed.

authors: simurai xlaywan


text:
Editor does not autoscroll to undo location

Open package.json from atom/atom in Atom
Type an a on the first line
Scroll to the botom
Undo

Editor is still scrolled to the bottom instead of to the top where the edit was just undone.

:green_heart:

I'm seeing this happen again on master

Actually issue is different now and is cursor position related, not scrolling related.

Since Atom auto-updated me to 190, I have noticed numerous times that when I undo, Atom scrolls to a seemingly arbitrary location having absolutely nothing to do with what was undone (it may not have actually needed to scroll at all).  I'm not sure whether this is a regression related to this, but it makes undo completely unwieldy.  (Should I report this separately?)

Should I report this separately?

I think that would be best, thanks.

Can we get a link to the new issue in this one?  I also am getting undo -> arbitrary scroll location, which is really frustrating.  This is the first relevant bug I found, so the other one must not be as searchable.  Thanks!

This issue is back again as of 2.0.8

authors: MentalGear kevinsawicki kfranqueiro wwoods


text:
Idea: Remote atom development server

Hi,
I wonder if there is a way to run different atom instances for different users on one linux server and enable the access through Apache or NginX using e.g. different sub domains?
The Idea is that (windows) users could develop remotely (linux) applications using their Chrome, or Firefox without installing all dependencies locally. Like https://www.nitrous.io.
Or is this idea rubbish?

+1 for this feature. I must perform data analysis on a remote machine, so it would be nice to have atom installed on the server, and run it through a desktop.

I believe what you're describing is super similar to Nuclide's remote-folders workflow (a set of Atom packages developed by Facebook), check it out: http://nuclide.io/docs/remote/

@paulcbetts Very nice! It does what I want. I think this feature should be merged to tree-view.

authors: Bjoernsen kaizhang paulcbetts


text:
Inconsistencies in Menu Items

I have noticed two inconsistencies in menu items.
The first is under View->Toggle Tree View. The hotkey for this menu item is labelled 'Ctrl+Backslash' This goes against the adopted convention of hotkey labels that are usually like 'Shift+Ctrl+=' instead of 'Shift+Ctrl+Equals' or 'Shift+Ctrl+-' instead of 'Sift+Ctrl+minus'.
The second inconsistency is the same idea as the first, and is under Selection->Single Selection. The hotkey is labelled 'Escape', while the key on the keyboard is labelled 'Esc'.

What OS are you on?

Atom version is 1.3.0-dev-516d6ed
OS is Ubuntu 12.04.5 LTS


text:
Add atom.project.observeBuffers

This makes onDidAddBuffer symmetrical with other onDidAddX methods and their observeXs. It also documents onDidAddBuffer and adds tests for it.
Released under CC0.

This great. Thanks @zertosh!

We really need to move buffers out of project someday, but when we do this can come with them.

authors: maxbrunsfeld nathansobo zertosh


text:
Windows: Cannot navigate menu using keyboard left / right

On Windows the Menu does not behave very native. For one, pressing Alt should select the first menu ("File"). Then, pressing Arrow-Left or Right I cannot navigate between the menu items. Arrow-Up and down works within the menu.

This is a duplicate of #1700.

authors: bpasero zcbenz

repo: atom/electron


text:
Failed installation on Windows 10 x64

I tried to install runas and it failed with this output:
C:\Users\pupeno\Documents\Dashman\clients>npm install runas

> runas@3.1.1 install C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas
> node-gyp rebuild

C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas>if not defined npm_config_node_gyp (node "C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\pupeno\AppData\Local\Programs\Python\Python36-32\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:114:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\pupeno\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas
gyp ERR! node -v v7.8.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN clients No repository field.
npm WARN clients No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! runas@3.1.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the runas@3.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\pupeno\AppData\Roaming\npm-cache\_logs\2017-06-12T19_01_57_700Z-debug.log

C:\Users\pupeno\Documents\Dashman\clients>

I don't understand the error about Python:
C:\Users\pupeno\Documents\Dashman\clients>C:\Users\pupeno\AppData\Local\Programs\Python\Python36-32\python.EXE --version
Python 3.6.1

C:\Users\pupeno\Documents\Dashman\clients>%PYTHON% --version
Python 3.6.1

C:\Users\pupeno\Documents\Dashman\clients>

2017-06-12T19_01_57_700Z-debug.log contains:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\pupeno\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'runas' ]
2 info using npm@5.0.3
3 info using node@v7.8.0
4 verbose npm-session 3f79ff767b1acbc3
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/runas 215ms
8 silly pacote tag manifest for runas@latest fetched in 256ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly install loadAllDepsIntoIdealTree
13 silly resolveWithNewModule runas@3.1.1 checking installable status
14 http fetch GET 200 https://registry.npmjs.org/nan 31ms
15 silly pacote range manifest for nan@2.x fetched in 53ms
16 silly resolveWithNewModule nan@2.6.2 checking installable status
17 silly currentTree clients
18 silly idealTree clients
18 silly idealTree +-- nan@2.6.2
18 silly idealTree `-- runas@3.1.1
19 silly install generateActionsToTake
20 silly diffTrees action count 2
21 silly diffTrees add nan@2.6.2
22 silly diffTrees add runas@3.1.1
23 silly decomposeActions action count 16
24 silly decomposeActions fetch nan@2.6.2
25 silly decomposeActions extract nan@2.6.2
26 silly decomposeActions preinstall nan@2.6.2
27 silly decomposeActions build nan@2.6.2
28 silly decomposeActions install nan@2.6.2
29 silly decomposeActions postinstall nan@2.6.2
30 silly decomposeActions finalize nan@2.6.2
31 silly decomposeActions refresh-package-json nan@2.6.2
32 silly decomposeActions fetch runas@3.1.1
33 silly decomposeActions extract runas@3.1.1
34 silly decomposeActions preinstall runas@3.1.1
35 silly decomposeActions build runas@3.1.1
36 silly decomposeActions install runas@3.1.1
37 silly decomposeActions postinstall runas@3.1.1
38 silly decomposeActions finalize runas@3.1.1
39 silly decomposeActions refresh-package-json runas@3.1.1
40 silly install executeActions
41 silly doSerial global-install 16
42 verbose correctMkdir C:\Users\pupeno\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
43 verbose lock using C:\Users\pupeno\AppData\Roaming\npm-cache\_locks\staging-5ac6bd3e2a0f2b53.lock for C:\Users\pupeno\Documents\Dashman\clients\node_modules\.staging
44 silly doParallel extract 16
45 silly extract nan@2.6.2
46 silly pacote trying nan@https://registry.npmjs.org/nan/-/nan-2.6.2.tgz by hash: sha1-5P805slf37WuzAjeZZb0NgWn20U=
47 silly extract runas@3.1.1
48 silly pacote trying runas@https://registry.npmjs.org/runas/-/runas-3.1.1.tgz by hash: sha1-Ut1TjbDkF0U5lTWjRwkbpFzA6rA=
49 silly pacote data for sha1-5P805slf37WuzAjeZZb0NgWn20U= not present. Using manifest.
50 silly pacote data for sha1-Ut1TjbDkF0U5lTWjRwkbpFzA6rA= not present. Using manifest.
51 http fetch GET 200 https://registry.npmjs.org/nan/-/nan-2.6.2.tgz 84ms
52 http fetch GET 200 https://registry.npmjs.org/runas/-/runas-3.1.1.tgz 85ms
53 silly pacote runas@https://registry.npmjs.org/runas/-/runas-3.1.1.tgz extracted in 128ms
54 silly pacote nan@https://registry.npmjs.org/nan/-/nan-2.6.2.tgz extracted in 194ms
55 silly doReverseSerial remove 16
56 silly doSerial move 16
57 silly doSerial finalize 16
58 silly finalize C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas
59 silly finalize C:\Users\pupeno\Documents\Dashman\clients\node_modules\nan
60 silly doParallel refresh-package-json 16
61 silly refresh-package-json C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas
62 silly refresh-package-json C:\Users\pupeno\Documents\Dashman\clients\node_modules\nan
63 silly doParallel preinstall 16
64 silly preinstall runas@3.1.1
65 info lifecycle runas@3.1.1~preinstall: runas@3.1.1
66 silly preinstall nan@2.6.2
67 info lifecycle nan@2.6.2~preinstall: nan@2.6.2
68 silly lifecycle runas@3.1.1~preinstall: no script for preinstall, continuing
69 silly lifecycle nan@2.6.2~preinstall: no script for preinstall, continuing
70 silly doSerial build 16
71 silly build runas@3.1.1
72 info linkStuff runas@3.1.1
73 silly linkStuff runas@3.1.1 has C:\Users\pupeno\Documents\Dashman\clients\node_modules as its parent node_modules
74 verbose linkBins runas@3.1.1
75 verbose linkMans runas@3.1.1
76 silly build nan@2.6.2
77 info linkStuff nan@2.6.2
78 silly linkStuff nan@2.6.2 has C:\Users\pupeno\Documents\Dashman\clients\node_modules as its parent node_modules
79 verbose linkBins nan@2.6.2
80 verbose linkMans nan@2.6.2
81 silly doSerial global-link 16
82 silly doParallel update-linked 16
83 silly doSerial install 16
84 silly install runas@3.1.1
85 info lifecycle runas@3.1.1~install: runas@3.1.1
86 verbose lifecycle runas@3.1.1~install: unsafe-perm in lifecycle true
87 verbose lifecycle runas@3.1.1~install: PATH: C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas\node_modules\.bin;C:\Users\pupeno\Documents\Dashman\clients\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Redis\;C:\Program Files\nodejs\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Amazon\AWSCLI\;C:\Program Files\Git\cmd;C:\Program Files\Heroku\bin\;C:\Users\pupeno\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\pupeno\AppData\Local\Programs\Python\Python36-32\;C:\Users\pupeno\AppData\Local\Microsoft\WindowsApps;C:\Users\pupeno\AppData\Local\Programs\Git\cmd;C:\Users\pupeno\AppData\Roaming\npm;C:\Users\pupeno\.lein\bin;C:\Users\pupeno\.bin
88 verbose lifecycle runas@3.1.1~install: CWD: C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas
89 silly lifecycle runas@3.1.1~install: Args: [ '/d /s /c', 'node-gyp rebuild' ]
90 silly lifecycle runas@3.1.1~install: Returned: code: 1  signal: null
91 info lifecycle runas@3.1.1~install: Failed to exec install script
92 verbose unlock done using C:\Users\pupeno\AppData\Roaming\npm-cache\_locks\staging-5ac6bd3e2a0f2b53.lock for C:\Users\pupeno\Documents\Dashman\clients\node_modules\.staging
93 warn clients No repository field.
94 warn clients No license field.
95 verbose stack Error: runas@3.1.1 install: `node-gyp rebuild`
95 verbose stack Exit status 1
95 verbose stack     at EventEmitter.<anonymous> (C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:283:16)
95 verbose stack     at emitTwo (events.js:106:13)
95 verbose stack     at EventEmitter.emit (events.js:194:7)
95 verbose stack     at ChildProcess.<anonymous> (C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
95 verbose stack     at emitTwo (events.js:106:13)
95 verbose stack     at ChildProcess.emit (events.js:194:7)
95 verbose stack     at maybeClose (internal/child_process.js:899:16)
95 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
96 verbose pkgid runas@3.1.1
97 verbose cwd C:\Users\pupeno\Documents\Dashman\clients
98 verbose Windows_NT 10.0.14393
99 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\pupeno\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "runas"
100 verbose node v7.8.0
101 verbose npm  v5.0.3
102 error code ELIFECYCLE
103 error errno 1
104 error runas@3.1.1 install: `node-gyp rebuild`
104 error Exit status 1
105 error Failed at the runas@3.1.1 install script.
105 error This is probably not a problem with npm. There is likely additional logging output above.
106 verbose exit [ 1, true ]

node-gyp requires Python v2.

repo: atom/node-runas


text:
idf version?

having issues with 4.x can you confirm the idf version you are using?

Let me check to see what happens with the latest version in platformio

This is the output from platform io when I kick off the build:
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (3.3.2) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-espidf 3.40300.0 (4.3.0)
 - tool-cmake 3.16.4
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-ninja 1.9.0
 - toolchain-esp32ulp 1.22851.191205 (2.28.51)
 - toolchain-xtensa32 2.80400.210211 (8.4.0)

thanks!

I should have checked - is it issues with building or running?

there seems to be issues with zlib and reading the files, lots of loadprohibeted and abort() errors.  Not sure if it is my partitioning, i don't think I changed anything but it was an issue.  I tried just the single vader and xwing files but I also had issues.
I could get the spi working by making my own draw2() function and just feeding x/y so that part worked great.

authors: cgreening jschoch


text:
Wrong requested subject when opening atomicdata.dev as agent

sign in to atomicdata.dev
refresh the page
Wrong requested subject

This arises from the get_auth_from_cookie function. Relates to #525  #520

Large chance that the PR for #525 will fix this

repo: atomicdata-dev/atomic-data-rust


text:
Word highlighting range does not work when multiple words are on one line

Right now the wordHighlighter range works per line, not per occurrence of words. So this fails to highlight the occurrences of words correctly:
```js /word/1,2
const word = 'word'; // word
const word2 = 'word'; // word
```

Only the word const and the word string on the first line should be highlighted, but it highlights every occurrence of word on the first and second lines.
I think this function needs to take an argument:
https://github.com/atomiks/rehype-pretty-code/blob/0c14334d1a92b00ee6f09006062ef196787e260e/src/word-highlighter/wordHighlighter.js#L32
cc: @renrizzolo

From memory, the numbers represent the lines, not the occurrences. This might have been a misunderstanding on my part.
It checks out in the fixtures, just the line number one doesn't have duplicated words in them to make it obvious.

Yeah it was intended to be per occurrence/instance of the word, irrespective of the line. This makes it more granular and configurable, while the line method is more limiting (although could be useful in certain cases, seems less so)

Oh do you mean to ignore lines all together for word highlighting?
so
carrot carrot
carrot

becomes
carrot carrot
carrot
(as opposed to resetting the count each line)

Yep exactly

authors: atomiks renrizzolo

repo: atomiks/rehype-pretty-code


text:
How to setup periodical timer interrupt on SeeedStudio Xiao(SAMD21)?

I've tried following code but it doesn't seem to be working:
        let mut peripherals = Peripherals::take().unwrap();
        let mut clk_controller = GenericClockController::with_external_32kosc(
            peripherals.GCLK,
            &mut peripherals.PM,
            &mut peripherals.SYSCTRL,
            &mut peripherals.NVMCTRL,
        );
        let clock =clk_controller.gclk1();
        let tc2tc3clock = clk_controller.tcc2_tc3(&clock).unwrap();
        let mut t = TimerCounter::<TC3>::tc3_(&tc2tc3clock, peripherals.TC3, &mut peripherals.PM);
        t.enable_interrupt();

Am I doing anything wrong?

You are not starting the timer. Check out the sleeping_timer examples for some usages.
You can also call start directly to kick off a count down timer, and then in the interrupt handler you can kick it back off by calling start again.

@windoze , any success?

@windoze, I'm going to close this. Please feel free to reopen if you have any more questions.

Sorry for the late response.
I tried and it works, thanks!

authors: TDHolmes bradleyharden windoze

repo: atsamd-rs/atsamd


text:
More tasks in screenshots

We should probably have screenshots of the task list, where there are some more tasks showing, some starred, some not, and some completed, with some "dummy" task names, so it show more of what its capable of.

Hold out on this one for now, I will push some stuff that will update the look of the tasks screen slightly.


text:
🛑 RestAPI is down

In de3c93d, RestAPI (https://mern-crud-ki1x.onrender.com/db-status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RestAPI is back up in ef07c59 after 1 hour, 57 minutes.


text:
Refactor common code for checking if a directory is templated

Just filing an issue so that we don't lose track...
@michaeljoseph had some suggestions about this as part of his #260 proposal:

c804ead460d1691f317327b7ea1d5cf96f3d8430
1023b7dedbc16ac9dece2798c5bfbcfa27392e3b
42a2811aa78da6f13e62860c3cb003d6edd170b3
and possibly other commits from #260, which I'll list as I find them

To keep my merging work on #260 manageable for myself, I skipped addressing these and didn't merge them, but it would be good to revisit this.
Some thoughts:

Since the code for this can be hard to read, keeping it in a function would probably be good
I'm not entirely sold on refactoring the function's code into a list comprehension, seems a bit hard to read, debug via breakpoints, and enhance with more logic in the future as edge cases are found. (just thinking aloud here)

Closing this issue as it's been inactive for several months. Please feel free to open a new issue or reopen this issue. Thanks! 👋

repo: audreyr/cookiecutter


text:
doc(Binding): fromView, capture

@EisenbergEffect @jdanyow Still not confident with what I put in 😅 . Please review

looks good to me :+1:

authors: bigopon jdanyow

repo: aurelia/binding


text:
CSS loader and 404 CSS font URLs

Hi there,
I updated to the latest Aurelia dist. I'm using <require from="bootstrap.css"></require> inside my views. There seems to be a major issue with the CSS loader and font URLs.
Bootstrap and others usually use relative URLs for loading glyph resources. It turns out, using the latest distribution of Aurelia, I'm getting 404s for font resources.
For example, what I'm getting now:
http://localhost:11865/fonts/fontawesome-webfont.woff2?v=4.4.0

What I should be getting:
http://localhost:11865/pkg/github/lipis/bootstrap-social@4.10.0/assets/fonts/fontawesome-webfont.woff2?v=4.4.0

I think the problem stems from the CSS loader using injectStyles which loads the CSS inline. Ex:
<html>
    <head>
          <style>CSS content here... using url(../font) relative</style>
    </head>
</html>

Inline CSS URLs would be relative to the document in which the Aurelia app is mounted from; which in this case leads to the wrong relative path.
Instead, if we used:
<html>
    <head>
          <link rel="stylesheet" href="path to css on server" />
    </head>
</html>

Link will respect the relative-ness of the path defined inside the CSS.
Thoughts?

We can't use link because that won't work either with shadow dom or with bundling. What we will have to do is use regex to patch up the style urls so they are based on the location that the styles were loaded from.

Regex notes
let matcher = /url\(\'?\"?([\S]*)\'?\"?\)/g;

I think this will match all urls with parens and with or without single or double quotes. The capture group should allow replacement.

I can reproduce the issue in the skeleton. I'll investigate using the technique above to see if I can get this fixed soon.

No worries. Enjoy the weekend; and thanks, just glad you were able to reproduce the issue and log it as a bug. :+1:

Almost got it I think. Regex isn't correct. That's not my strong point. Working on it now :)

Pushed release out. Run jspm update to get v0.15.1

Thanks @EisenbergEffect , updated and it's working :+1: . Thank you. I did see a significant bump in loading. FWIW:

But I think this would only apply when the app it's not bundled.

Does this work automatically if in a view I do for example:
<require from="summernote/dist/summernote.css"></require>
ie. the regex will execute to replace the font src path? Or do i need do to something extra to tell aurelia to re-write the css font src...

authors: EisenbergEffect JamesReate bchavez

repo: aurelia/templating-resources


text:
Set bash/fish/zsh history file options

When re-connecting to a closed tab, it would be awesome if the history was preserved, and specific to the tab.
Fish: https://github.com/fish-shell/fish-shell/issues/102
Bash:
Zsh:
Save history in ~/.tab/history/<name>.txt

For Bash/Zsh, I set the HISTFILE env var.  I tested it tonight and it's working.

repo: austinjones/tab-rs


text:
Wallet Connect Fails -  Unhandled Rejection (Error): No RPC Url available for chainId: 56

Followed full instructions as per branch (Sign In With Web3).  I am able to connect to MetaMask via chrome, however if I scan the QR code on MetaMast via my iPhone, I receive the following error:
Error 1 of 2
Unhandled Rejection (Error): No RPC Url available for chainId: 56
WalletConnectProvider.updateRpcUrl
src/index.ts:411
WalletConnectProvider.
src/index.ts:386
▶ 3 stack frames were collapsed.
callback
src/index.ts:320
(anonymous function)
src/events.ts:66
EventManager.trigger
src/events.ts:61
WalletConnect._handleSessionResponse
src/index.ts:899
callback
src/index.ts:981
(anonymous function)
src/events.ts:66
EventManager.trigger
src/events.ts:61
WalletConnect.
src/index.ts:959
fulfilled
node_modules/tslib/tslib.es6.js:71
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.  Click the 'X' or hit ESC to dismiss this message.
2 of 2
TypeError: Cannot read property 'name' of undefined
App
src/App.jsx:176
173 | message={"⚠ Wrong Network"}
174 | description={
175 |

176 |     You have {NETWORK(selectedChainId).name} selected and you need to be on{" "}
| ^  177 |     {NETWORK(localChainId).name}.
178 |
179 | }
View compiled
▶ 17 stack frames were collapsed.
getPrice
src/hooks/ExchangePrice.js:20
17 |     );
18 |     const pair = await Fetcher.fetchPairData(DAI, WETH[DAI.chainId], mainnetProvider);
19 |     const route = new Route([pair], WETH[DAI.chainId]);
20 |     setPrice(parseFloat(route.midPrice.toSignificant(6)));
| ^  21 |   }
22 | }
23 | getPrice();
View compiled

hi - did you have BSC Mainnet selected in your Metamask mobile?

@mickeysox @azf20 is this issue still relevant? Looking to groom the backlog.

I think we can close this, @mickeysox please re-open if you are still having issues, thanks!

authors: azf20 captnseagraves mickeysox

repo: austintgriffith/scaffold-eth