In-Process NuGet doesn't support authentication

In-Process NuGet don't support authentication. It should support obtaining credentials just like nuget.exe
Hints:
https://github.com/NuGet/NuGet.Client/tree/dev/src/NuGet.Clients/NuGet.Credentials
https://www.nuget.org/packages/NuGet.Credentials/

@Insire did you ever had a chance to look at this?
Conversation here

I did take a peak at those resources you linked and i also tried to reproduce the problem reliably. Its been a while now, so the details are somewhat hazy again, but i think i remember that i had to rely on #2014 to reproduce the issue.
So i am not sure how to go forward with this. Easiest for me, would be to wait for #2014 to be merged and then take a look again.

No worries! We’ll merge the PR targeting #2014 as soon as the .NET Core 2 PR is fixed and 0.26 is released.
If you don’t have time or run into issues, I can fix this issue. Just wanted to avoid duplicate work if you already had a solution for this.

I gladly pick this up again, once 0.26 is released. Can you summarize what the CredentialService needs to be able to do? And what, if any additional, tasks have to be completed along site the migration, apart from writing unit tests for for the CredentialService?

@Insire once #2085 is merged, you should be able to consume NuGet.Credentials package.
Don't know how to hook it up. You'll probably need to read some source code here to see how to hook it up.

@mholo65 allright, i'll probably take a look at this the coming weekend. Thanks for the pointers.

so after investigating a little bit and starting a PR already, i am wondering what kind of workflows should I/we support?
There is authentication via NuGet.config.
Then there is authentication via NuGet.config + a credential provider (what i found and started to add in the PR).
Is there any other way, i might have missed or i should focus on?

AFAIK, nuget.exe only supports credentials through NuGet.Config, so that would be a good start. If you have something ready, please send PR and we’ll iterate :smile:

Not yet. I am still piecing things together.

...and now I saw this https://github.com/cake-build/cake/pull/2090 :smile:

While i got your attention - how does the inprocess nuget client work? i was expecting to see nuget API calls, but all i found is processes being started via nuget.exe

Ok, after some digging, i conclude that the "in process client" still leverages the nuget.exe for interacting with the nuget API, its just that cake has functionality baked in for that, so one doesnt have to write cake tasks to restore packages and so on.

The link you provided is for nuget.exe, but the in-proc (here https://github.com/cake-build/cake/tree/develop/src/Cake.NuGet/Install) uses the NuGet.Client libraries to accomplish the same thing.
Regarding “restore packages and so on”. That are NuGet-aliases located in Cake.Common, and yes, they leverage nuget.exe.
Cake.NuGet, however, is used for pre-processor directives (#addin, #tool and #load). Here, we have two alternatives for communicating with NuGet API: 1) the old nuget.exe based and 2) the in-process (link above) based.

I still need to properly confirm this, but with using the latest version of cake (0.26.1) and moving the VSTS credential provider right next to the nuget exe and providing a NuGet.config next to them, i can properly access a private nuget feed when setting UseInProcessClient to true in the cake.config

@mholo65 so, the goal should be to obsolete the nuget.exe and access the nuget API directly?

@Insire sorry for not getting back to this sooner.

using the latest version of cake (0.26.1) and moving the VSTS credential provider right next to the nuget exe and providing a NuGet.config next to them, i can properly access a private nuget feed when setting UseInProcessClient to true in the cake.config

Is this working for NuGet aliases only? E.g. NuGetRestore? Without me knowing anything about the VSTS credential provider, I'm still don't think it would work with #addin or #tool pre-processor directive with --nuget_useinprocessclient=true.

so, the goal should be to obsolete the nuget.exe and access the nuget API directly?

Yes, for pre-processor directives. (#tool, #addin, #module, #load) NuGet aliases (NuGetRestore, etc..) would/should still shell out to nuget.exe. In order to obsolete, we should at least support getting authentication from NuGet.Config, as nuget.exe knows how to do this.

Is this working for NuGet aliases only? E.g. NuGetRestore? Without me knowing anything about the VSTS credential provider, I'm still don't think it would work with #addin or #tool pre-processor directive with --nuget_useinprocessclient=true.

@mholo65  the last addin is from a private VSTS nuget feed.
I pulled the source for the nuget libraries from github to get an idea whats in there and how they do things and atleast for the credential stuff, it seemed fairly straight forward. They try to load assemblies that match a certain FileName pattern and map that to an interface. After that its just business as usual, as that interface provides a way to supply the required credentials.
My current idea would be to search for a nuget config upwards the folder tree until i hit the root folder for the solution. Not sure yet how i would transform the name and password from the nuget config into something we can use yet.
I'll take another look next weekend. My weeks are rather busy at the moment.

@Insire oh nice! Great progress so far!
Now I see, with this PR https://github.com/cake-build/cake/pull/2090 we will locate the NuGet Extensions (CredentialProviders) which will provide the credentials. So this will at least work for VSTS.

How to handle authentication for the feeds configured in cake.config? Currently, this is only a ini format and the feeds are separated by ;. #2014

Right now, you can add authentication via nuget.config and if you want custom nuget credential providers (e.g. the one for VSTS). In the future, the goal is to move away from the nuget config (atleast for the in process client) and provide options to authenticate with cake only. If you got any ideas in that regard, i'm all ears.

Is this about the popup window that lest you authenticate against DevOps (in my example) the same way Visual Studio does?
Do you think this will ever make it in.. or is there another way to authenticate manaully so that NuGet does not need PAT keys (which are a pain in the parse)

@Insire I'm trying to pull a Cake Recipe package from a private feed in GitHub Packages. I have a nuget.config file with credentials specified, but the credentials are pulled from environment variables:
    <packageSourceCredentials>
        <GitHub>
            <add key="Username" value="%GITHUB_USER%" />
            <add key="ClearTextPassword" value="%GITHUB_TOKEN%" />
        </GitHub>
    </packageSourceCredentials>

This works in NuGet, but does not seem to work in Cake. I'm guessing perhaps the variable replacement is not happening in the Cake In-Process NuGet execution, but I don't know how to tell. Diagnostic logging doesn't give any information beyond this:
+ dotnet cake --target release --verbosity diagnostic
Looking for modules...
Missing /github/home/.nuget/packages/<my_package>/<version>/<my_package>.<version>.nupkg
  GET https://api.nuget.org/v3/registration5-gz-semver2/<my_package>/index.json
  NotFound https://api.nuget.org/v3/registration5-gz-semver2/<my_package>/index.json 94ms     <-- This is expected
  GET https://nuget.pkg.github.com/<my_organization>/<my_package>/index.json                  <-- Package exists here
  NotFound https://nuget.pkg.github.com/<my_organization>/<my_package>/index.json 196ms       <-- This shouldn't fail
Error: System.AggregateException: Bootstrapping failed for '/__w/<my_app>/<my_app>/build.cake'.
build.cake, line #1: Unable to find package '<my_package>'. Existing packages must be restored before performing an install or update.

I can confirm the proper environment variables are set on the build runner. I tried --nuget_useinprocessclient=false, but the build is running on Linux, and NuGet.exe does not exist. We use dotnet nuget for everything instead.
Can you confirm if this is indeed a supported scenario in Cake the way it is in NuGet?
Or is there some way to get additional logging from In-Process NuGet?
Or is there some recommended way to install NuGet.exe on Linux?
Or is there a custom credential provider that would suit this scenario?

Actually, it appears I was mistaken. This looks to be an issue with GitHub itself. The reason it worked for me above is because I used a personal access token to test with. Running on the CI build runner, it was using a different token, and was failing (as metioned in the thread I linked). When I use a PAT, regardless of environment, the substitution appears to be taking place in Cake.
So scratch my posts, they're unrelated after all. :)


Adds universal TOC generator regardless of uframe TOC response.

DO NOT MERGE, needs update, will advise

@DanielJMaher This is ready to merge now

@oceanzus This is the black box of magic and wonderment??


[ Bug ]

Describe the bug
Installation bug when running install.bat which leads to a syntax error in start.bat
To Reproduce
Believe the syntax error in start.bat is caused by the undefined within install.bat
Expected behavior
Working installation. Note start.bat in previous versions is also not working
Screenshots
If applicable, add screenshots to help explain your problem.
System:

OS: Microsoft
Prod Tool Version: 1.3.6

The bug you are facing occurs when the community dragon is not up to date and can not serve you the current version of the item.bin.json, this should happen right after a new patch and can be fixed by setting a temporary alternative version for the static data like shown here https://github.com/RCVolus/league-prod-toolkit/wiki/FAQ#toolkit-shows-multiple-request-timed-out-errors--missing-assets


make can't find the shared_mutex

hi, I configured the clipper environments following the instruction on the github.
I could successfully execute the configure command. But when I executed the "make" command, I  came across the following error.
clipper-develop/src/libclipper/include/clipper/persistent_state.hpp:6:35: fatal error: shared_mutex: No such file or directory
Codes of  persistent_state.hpp are following:
4 #include
5 #include
6 #include <shared_mutex>
A shared_mutex.hpp file is found in path ''boost-1.63/include/boost-1_63/boost/thread/pthread/ . So I modified the include line to "#include <boost/thread/pthread/shared_mutex.hpp> ". But there came another error referred to boost.
So could anyone give me some suggestion?
Thanks.

Hi Frank,
That #include <shared_mutex> in persistent_state.hpp can actually be deleted. Let me know if that fixes your problem.
We removed the dependency on shared_mutex because the libc++ in OSX 10.11 and older doesn't support it (see the answers to this StackOverflow post for details).

hi, @dcrankshaw ,
My PC information is
OS: Ubuntu 14.04.3 LTS
gcc: (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
I deleted  #include<shared_mutex> in persistent_state.hpp. But some other errors happened. The following are the details.
[ 42%] Building CXX object src/libclipper/CMakeFiles/clipper.dir/src/query_processor.cpp.o
In file included from /home/test/workspace/clipper-develop/src/libclipper/src/query_processor.cpp:17:0:
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/future.hpp:41:63: error: parameter declared ‘auto’
[num_futures, completion_promise, num_completed](auto result) mutable {
^
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/future.hpp: In lambda function:
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/future.hpp:48:18: error: ‘result’ was not declared in this scope
return result.get();
^
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/future.hpp:60:63: error: parameter declared ‘auto’
return future.then([completion_promise, num_completed](auto result) mutable {
^
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/future.hpp:105:64: error: parameter declared ‘auto’
return future.then([completion_promise, completed_flag](auto result) mutable {
^
In file included from /home/test/workspace/clipper-develop/src/libclipper/include/clipper/selection_policies.hpp:9:0,
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/task_executor.hpp:66:46: error: expected primary-expression before ‘>’ token
rpc_(std::make_uniquerpc::RPCService()) {
^
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/task_executor.hpp:66:48: error: expected primary-expression before ‘)’ token
/home/test/workspace/clipper-develop/src/libclipper/src/query_processor.cpp:300:5: error: parameter declared ‘auto’
](auto) mutable {
/home/test/workspace/clipper-develop/src/libclipper/src/query_processor.cpp:341:9: error: parameter declared ‘auto’
](auto) mutable {
^
/home/test/workspace/clipper-develop/src/libclipper/src/query_processor.cpp:355:8: error: no matching function for call to ‘boost::future::then(clipper
::QueryProcessor::update(clipper::FeedbackQuery)::__lambda7)’
});
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/future.hpp:40:5: error: no matching function for call to ‘boost::futureclipper::Output:
:then(clipper::future::when_all(std::vector<boost::future >, std::shared_ptr<std::atomic >) [with T = clipper::Output]::__lambda0)’
wrapped_futures.push_back(f->then(
^
/home/test/workspace/clipper-develop/src/libclipper/include/clipper/future.hpp:40:5: error: no matching function for call to ‘boost::future::
then(clipper::future::when_all(std::vector<boost::future >, std::shared_ptr<std::atomic >) [with T = bool]::__lambda0)’
/home/test/tools/boost-1.63/include/boost-1_63/boost/thread/future.hpp:4832:3: error: no type named ‘type’ in ‘struct boost::result_of<clipper::future::when_all(std::vector<boost::future >,
std::shared_ptr<std::atomic >) [with T = bool]::__lambda0(boost::future)>’

Got it. Clipper is built with C++14 so you will need to compile with GCC 5.2 or later.

Closing this issue. If you run into other problems compiling with GCC >= 5.2 please file a new issue.


⚠ Bofrost.be has degraded performance

In a2c835f, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1339 ms

Resolved: Bofrost.be performance has improved in 1c6acb4 after 29 minutes.


arch: arm: fix initial value of _image_ram_start

For all builds, _image_ram_start is initially set to RAM_ADDR,
before it is (possibly) aligned for MPU.
Signed-off-by: Ioannis Glaropoulos<EMAIL_ADDRESS>

Codecov Report

Merging #12112 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #12112   +/-   ##
=======================================
  Coverage   48.07%   48.07%
=======================================
  Files         284      284
  Lines       43328    43328
  Branches    10389    10389
=======================================
  Hits        20828    20828
  Misses      18363    18363
  Partials     4137     4137

Continue to review full report at Codecov.

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


Redefine intersects parameter to accept GeoJSON geometry values (473)

Merging in, thanks for everyone's work!


Update ruby version

Update to version 2.4.0 of Ruby, but still receives warning, coming from dependencies.

Thanks, but typically I wait for the x.x.1 release in most major products, or at least give it a month as is to see what creeps up in bug reports.
Also moving forward, when the Dockerfile eventually gets bumped to use 2.4.x, the syntax would just be 2.4 instead of 2.4.x. This will inform Docker to grab the latest 2.4 release. This is how it was handled for 2.3 currently too.


Unable to remove contacts from F&F list.

-Even after removing the contact, that contact is not getting removed.

-Now the contact is getting removed but not on refresh but it is happening when I come back to F&F screen from another screen.
-contact is being removed immediately from the device from which the contact has been removed.But it is not getting removed from the F&F list of other devices.
-Tested on dev app v1.7.5(300)

-Verified this issue on dev app v1.7.5(301)


Retrying setup: Update failed: division by zero

The above error is shown in the integration panel. Of course, none of the sensors show any data.

most of the API endpoints are back up, but seems like humidity and rainfall endpoints still return no data.
have made a minor update to handle the errors better. pretty annoying that data.gov.sg is so unreliable in staying up


"could not reconcile ExternalSecret" error in GKE pod even if the externalsecret is deleted

Hi guys, hope you're having a great day.
I created an ExternalSecret named external-secret-test for test use, checked it's working fine, and deleted it.
But when I do kubectl logs for external secret pod, I get a bunch of error msg updating as below.
{"level":"error","ts":1644999795.2597,"logger":"controllers.ExternalSecret","msg":"could not reconcile ExternalSecret","ExternalSecret":"default/external-secret-test","SecretStore":"/cluster-secret-store","error":"could not get secret data from provider: key \"uploader-301-config-dev\" from ExternalSecret \"external-secret-test\": unable to access Secret from SecretManager Client: rpc error: code = NotFound desc = Secret [projects/1081233272645/secrets/uploader-301-config-dev] not found or has no versions.","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.3/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.3/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.3/pkg/internal/controller/controller.go:214"}
I've double-checked the external-secret-test does not exists.
minnie_jeong@cloudshell:~$ kubectl get externalsecret -n default
No resources found in default namespace.
How can I get rid of this error msg ?
I'm using ghcr.io/external-secrets/external-secrets:v0.3.10

Hi @minnie-jeong-otsk ! The ts field refers to the date which the message appeared (in this case Wednesday, 16 February 2022 08:23:15 UTC). Can you check if the time of this message happened while the external secret was still on the cluster?

Hi @gusfcarvalho
I was not familiar of the ts field. I've checked the kubectl logs again with tail option, and found that it didn't appear after I deleted external-secret-test, so there was no issue after all.
Thanks for your explanation!


"Permission denied" when Evaluating Crystal code

Specs:

Crystal version: Crystal 1.1.1 [6d9a1d583] (2021-07-26)
OS: Ubuntu

Bug Report
I am trying to evaluate crystal code using Crystal command eval like the following:
# custom_evaluator.cr

require "compiler/crystal/command"
require "compiler/crystal/compiler"
require "compiler/crystal/program"
require "compiler/crystal/command/*"

# Custom file
require 'my_huge_file_name'

puts Crystal::Command.run(["eval", "MyHugeClass.call(10)"])
puts Crystal::Command.run(["eval", "puts \"hello world\""])
# Expected: "hello world"

Run: crystal run custom_evaluator.cr
Result: --: 1: : Permission denied
Is this possible to do it?
Best regards!

We'll need more information on this bug report. Can you determine what exactly causes the permission denied error? Or provide a reproducible example?

I tried to re-create that the best I could. Changing the 'my_huge_file_name' to "./my_huge_file_name" and I get this:
In /usr/share/crystal/src/llvm/lib_llvm.cr:13:17

 13 | VERSION = {{`#{LibLLVM::LLVM_CONFIG} --version`.chomp.stringify}}
                  ^
Error: error executing command: "" --version, got exit status 127

Not sure if that's helpful or not, but figured I'd chime in.

@jwoertink I had the same error, but I skipped it hardcoding to a static value (just for debugging).
These are the steps:

Create a file code_eval.cr with:

require "json"
require "compiler/crystal/command"
require "compiler/crystal/compiler"
require "compiler/crystal/program"
require "compiler/crystal/command/*"

# In real code this part would include libraries to be used when calling eval.

Crystal::Command.run(["eval", "puts \"Wello world\""])

Run the codecrystal run code_eval.cr
Expected $ => Hello world
(Optional) Fix VERSION error in /usr/share/crystal/src/llvm/lib_llvm.cr:13 to "VERSION = 1.0" (just for debugging)

Thanks for reviewing.
Note: I am new in Crystal, but wanted to create a plugin to sync some Rails apps with new possible apps in Crystal.

Welcome to Crystal @owen2345! For a little more info, I see you're using Ubuntu, how did you install Crystal? Was it from the deb repo, or did you clone Crystal and build manually?

@jwoertink I use docker.
In this case I am using Amber framework:
FROM crystallang/crystal:latest
RUN apt-get update
RUN apt-get install libreadline-dev libsqlite3-dev libpq-dev libmysqlclient-dev libssl-dev libyaml-dev libpcre3-dev libevent-dev curl -y
RUN curl -L https://github.com/amberframework/amber/archive/stable.tar.gz | tar xz
RUN cd amber-stable/ && shards install --ignore-crystal-version && make install

WORKDIR /app
COPY shard.* /app/
RUN shards install
COPY . /app
CMD amber watch

The two calls to Crystal::Command.run will build two separate temporary executables and run them immediately; any libraries required in the code itself will not affect their results, so you cannot trick Crystal into evaluating code in an outer context like that.

I tried to re-create that the best I could. Changing the 'my_huge_file_name' to "./my_huge_file_name" and I get this:
In /usr/share/crystal/src/llvm/lib_llvm.cr:13:17

 13 | VERSION = {{`#{LibLLVM::LLVM_CONFIG} --version`.chomp.stringify}}
                  ^
Error: error executing command: "" --version, got exit status 127

Not sure if that's helpful or not, but figured I'd chime in.

You probably don't have LLVM installed (or crystal can't find it). On my distro, I have to use the variable LLVM_CONFIG to set the path.
[blobcodes@davids-pc ~]$ LLVM_CONFIG="llvm-config-11-64" crystal eval '
require "compiler/crystal/**"
puts Crystal::Command.run(["eval", "puts \"hello world\""])
'
/usr/bin/ld: /usr/share/crystal/src/llvm/ext/llvm_ext.o: in function `LLVMExtDIBuilderCreateCompileUnit':
llvm_ext.cc:(.text+0x2bd): undefined reference to `llvm::DIBuilder::createCompileUnit(unsigned int, llvm::DIFile*, llvm::StringRef, bool, llvm::StringRef, unsigned int, llvm::StringRef, llvm::DICompileUnit::DebugEmissionKind, unsigned long, bool, bool, llvm::DICompileUnit::DebugNameTableKind, bool)'
/usr/bin/ld: /usr/share/crystal/src/llvm/ext/llvm_ext.o: in function `LLVMExtWriteBitcodeWithSummaryToFile':
llvm_ext.cc:(.text+0x1c9e): undefined reference to `llvm::buildModuleSummaryIndex(llvm::Module const&, std::function<llvm::BlockFrequencyInfo* (llvm::Function const&)>, llvm::ProfileSummaryInfo*)'
/usr/bin/ld: /usr/share/crystal/src/llvm/ext/llvm_ext.o: in function `llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateAtomicCmpXchg(llvm::Value*, llvm::Value*, llvm::Value*, llvm::AtomicOrdering, llvm::AtomicOrdering, unsigned char)':
llvm_ext.cc:(.text._ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE19CreateAtomicCmpXchgEPNS_5ValueES5_S5_NS_14AtomicOrderingES6_h[_ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE19CreateAtomicCmpXchgEPNS_5ValueES5_S5_NS_14AtomicOrderingES6_h]+0x7d): undefined reference to `llvm::AtomicCmpXchgInst::AtomicCmpXchgInst(llvm::Value*, llvm::Value*, llvm::Value*, llvm::AtomicOrdering, llvm::AtomicOrdering, unsigned char, llvm::Instruction*)'
collect2: Fehler: ld gab 1 als Ende-Status zurück
Error: execution of command failed with code: 1: `cc "${@}" -o /home/blobcodes/.cache/crystal/crystal-run-eval.tmp  -rdynamic -L/usr/bin/../lib64/crystal/lib -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` /usr/share/crystal/src/llvm/ext/llvm_ext.o `"llvm-config-11-64" --libs --system-libs --ldflags 2> /dev/null` -lstdc++ -lpcre -lm -lgc -lpthread -levent  -lrt -ldl`

Anyways, just like HertzDevil said, any libraries required in the code itself won't affect the eval result.
You could use something like this (if the required library is always locally available):
Crystal::Command.run(["eval", "require \"my_huge_file_name\"; puts \"Wello world\""])

Thank you so much. I tried recompiling crystal from scratch + adding my huge library (<amber_app/config/application.cr>) but no luck either.
My idea was to have something like crystal_amber, to run commands without importing config/application.cr each time.
Sample: crystal_amber run "Article.count"
Maybe in the future. Thanks again.


Allow adding non-gm users from the web app

Some sort of admin UI to add users
Add an option to disable/re-enable users
Users should be able to set their own pronouns and color

Put a stripe of their color next to their chat message, or something like that. Maybe a colored shadow on the name.

Users should be able to set their own password

Users can be added, pronouns/color/enable/disable can be part of the presence widget


Better build instructions for tonic

The example of using this with tonic is wrong/incomplete at present. Here is a bit more of a complete version:
use std::{env, fs};
use std::path::PathBuf;
use prost::Message;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Compile the proto files
    let file_descriptors = protox::compile(["root.proto",], [".",]).unwrap();

    // Get the path to the output directory for the file descriptor set
    let file_descriptor_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("file_descriptor_set.bin");

    // Write the file descriptor set to the output directory
    fs::write(&file_descriptor_path, file_descriptors.encode_to_vec()).unwrap();

    // Run tonic code generation
    tonic_build::configure()
        .build_server(true)
        .file_descriptor_set_path(file_descriptor_path)
        .skip_protoc_run()
        .compile(
            &[
                "proto/proto/valorem/trade/v1/root.proto",
            ],
            &["."], // specify the root location to search proto dependencies
        )
        .unwrap();
    Ok(())
}

Additionally, a build dependency for prost = "0.12.1" must be added to the crate building. I do wonder if this should be added to the crates build time dependecies/if that would abstract from the caller.

Thanks for the example - I've fixed the docs in 961527f62889b2c4eb9440a2ffc1d35c72459e2d.
I've also added a re-export of prost so it doesn't need to be directly added as a build dependency, but can be imported as use protox::prost::Message


Storyboard compilation fails on Xcode8.0

I have installed infer version 0.9.3 which is supposed to support Xcode8.0 however when I created a single view project (nothing other than 1 viewcontroller and Main.storyboard) infer fails at the CompileStoryboard step. Attched is the build log.
InferBuildLog.rtf.zip
PS. Project is called MultipleFrameworks because I was going to add frameworks in it to test Infer with but it fails before even adding anything into the project.

Does the build command succeed on its own? i.e. xcodebuild -target MultipleFrameworks -sdk iphonesimulator

Oh wow it seems that's failing too actually but the project runs fine when I run it on Xcode8.0.
The log I get when I run "xcodebuild -target MultipleFrameworks -sdk iphonesimulator":
Build settings from command line:
SDKROOT = iphonesimulator9.3
2016-10-26 09:41:26.903 xcodebuild[59756:5160956] CoreSimulator is attempting to unload a stale CoreSimulatorService job.  Detected Xcode.app relocation or CoreSimulatorService version change.  Framework path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (209.19) does not match existing job path (/Applications/Xcode8.0.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version (303.8).
=== BUILD TARGET MultipleFrameworks OF PROJECT MultipleFrameworks WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
2016-10-26 09:41:27.157 xcodebuild[59756:5160956] Failed to locate a valid instance of CoreSimulatorService in the bootstrap.
If you are using CocoaPods, you may need to use xcodebuild -workspace MultipleFrameworks.xcworkspace instead of target.

No cocoapods in this project. There is no workspace either, its just a single view template from Xcode. That's why I'm surprised it's failing to build.

I would recommend trying to Google how to compile an ios app in the command line with xcode8 and your settings.

Right, thanks for pointing me in the right direction. It wasn't my build settings or the project itself. I had Xcode 7 on my machine as well as Xcode 8. My terminal/command line was using Xcode 7 for building as that was the registered Xcode on the system. I deleted old xcode and ran this in command line: "sudo xcode-select --switch /Applications/Xcode8.0.app" Then command line xcodebuild started using Xcode8.0. Now infer actually finds no issues in the project when I ran it.
Thank you.

Glad you could fix your problem. Will close this one, let us know if you have another problem.


Anyways to get this working with ollama

Kind of a noonish I really dig what your doing but open ai going to be adding quick when releasing to madness I want to use open source is there ways to do this only with the ollama

Yes, I just pushed update to dev branch that supports ollama. I added some support for it a while back and never updated. Let me add some documentation for it.

I added ollama support for embeddings, between that and koboldcpp you can do everything locally. I added documentation on how to switch to it in the readme. To edit ollama settings you will need to change them in embeddings.py (for instance switching the ollama model or the url.)


Conforming literals 0017 messes up code sharing between C++ and HLSL due to non portable float literal suffices

Which proposal does this relate to?
0017 - https://github.com/microsoft/hlsl-specs/blob/main/proposals/0017-conforming-literals.md
Describe the issue or outstanding question.
HLSL will now treat 4.5 as a float literal, while most C++ compilers treat 4.5 as a double literal.
This is an issue when one wants to share lets say a header of mathematical constants between HLSL and C++ (like our bezier and polynomial solvers).
No combination of suffices is portable across Clang, GCC and MSVC that would make the 4.5 a double both in HLSL and C++.
While I understand that in HLSL the default literal type must be float32 for performance reasons, we must have a solution thats more sane than wrapping every literal in a FLOAT64_LITERAL() macro to get the correct compiler specific suffices.
Additional context
Personally I'd add support for the sized f16, f32 and f64 suffices introduced by C++23.

I'd actually implement this first https://en.cppreference.com/w/cpp/language/user_literal

On our side, the most important compatibility is with GLSL, MSL, Nvidia slang and a proprietary console shader language.
They all consider a literal without suffix to be a float.

GLSL and the proprietary console shader language consider the s/S suffix to be for short and us/US for unsigned short.
MSL doesn't have support for double.
The suffix for double already changes between languages, if we were using double, we'd need to use a macro:

GLSL uses lf/LF as the suffix
The proprietary console shader language uses d/D as the suffix
Nvidia slang uses l/L as the suffix

Compatibility with C++ on the literal side isn't quite important because there are a lot of other in compatibilities between HLSL and C++ like structure member alignment, no 8-bit types, bool being 4 bytes... We already use a specialized code generator for code that needs to be shared between shaders and C++.
In our case, we only ever need to share structure definitions with C++ not functions. This is not the same requirements as @devshgraphicsprogramming.
I feel like we'd need a command line switch for dxc to switch between the "shader standard" suffixes and the "C/C++" suffixes.
-fuse-c-literals or something.

I feel like we'd need a command line switch for the HLSL compilers to switch between the "shader standard" suffixes and the "C/C++" suffixes. -fuse-c-literals for example. It could also be #pragma literal c at the top of the file.

This is the kind of thing I'm pretty vocally opposed to. We do not want flags to the compiler that change basic language behaviors. That dramatically increases our testing matrix and leads to difficult to identify, reproduce and resolve bugs.

Understood. Well, we don't have control over C++ and changing the current behavior would bring us back to where we started with spurious double appearing or the wrong data written through Store functions when called with a literal 8 bytes written instead of 4.
So, I really wish we won't go back. But I also wish C++ had a suffix for doubles.

C++23 has kinda low adoption, and doesn't introduce a suffix for short literals. So IMHO user defined literal suffices are probably the most useful for everyone.


Jablotron integration not loaded after HA start.

I have strange issue with jablotron integration. Homeassistant I have on Esxi and after starting of virtual machine with HA sometimes Jablotron didn't start. I have to go to settings and manually reload integration.
Did someone notice that?
Or is it possible to do it automatically either in node red  or automation?
Thank you for help.

Same for me on proxmox vm

It's probably problem in your HA installation.


Change np.bool to bool

Fixes warnings raised by MAgent where np.bool is deprecated and treated like bool internally

LGTM.


Changing Pull radius does not clear pull list

Steps to reproduce (This was with magician using pullwith custom option)

Set pull radius to 1000 and set to puller tank mode, char will start pathing to the mob, turn to manual mode
Set pull radius to 200 and set to puller tank mode, char will start pathing towards the same previous mob if there are no other mobs in the radius

should reset pull state on any pull setting change now


WonderTrade resets the OT of Pokemon put into it to your OT

This is an issue for anything that uses OT for the PokeDex, as well as anyone that blocks breeding unless you're the OT of that Pokemon

I meant to say that it will change the OT of the Pokémon to whoever gets it from WonderTrade :)

Again, is this with Pokemon added by another user or the default ones generated by the mod?

Thought I commented it, but this is when a player trades it to WonderTrade
and someone else receives it
For example:
Daniel trade's his Primeape to the WonderTrade with his OT on it
Mikirae receives said Primeape. The Primeape now has Mikirae's OT
On Fri, Jul 22, 2022 at 7:27 PM Daniel Norris @.***>
wrote:

Again, is this with Pokemon added by another user or the default ones
generated by the mod?
—
Reply to this email directly, view it on GitHub
https://github.com/EnvyWare/WonderTrade-Forge/issues/21#issuecomment-1193020330,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF6FLZICMUM62YW72JKU753VVM37ZANCNFSM54FLI25Q
.
You are receiving this because you authored the thread.Message ID:
@.***>

Seems like it could be a Pixelmon bug as I do not touch the OT

I haven't seen anything mess with it. Guess it could be related to the 0 IV
thing? Maybe it's resetting all stats? Not too sure. I could set the pool
to be like 5 mons and just spam wondertrade it until I get mine?
On Fri, Jul 22, 2022 at 8:23 PM Daniel Norris @.***>
wrote:

Seems like it could be a Pixelmon bug as I do not touch the OT
—
Reply to this email directly, view it on GitHub
https://github.com/EnvyWare/WonderTrade-Forge/issues/21#issuecomment-1193031295,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF6FLZI2IIKBJF3V5PJKCXLVVNCRHANCNFSM54FLI25Q
.
 Works just fine. Closing and sorry for bothering <3


guardn facbook

pkg install python -y
pkg install git -y
pip install requests
gitclonehttps://github.com/Noxturnix/guardn
cd guardn
chmod +x *
python guardn.py

Thanks for reaching out!
We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.
Thanks for understanding and meeting us halfway :grinning:


Fix find_guild function to ignore mismatched timestamps on member data

This fixes issues with various Member functions such as add_role or ban
which refused to work on some users due to their joined_at timestamp being
slightly different over REST requests.
As an example in the guild create event i got the following data for a member:
{
    "deaf": false,
    "joined_at": "2017-03-18T10:33:46.521254+00:00",
    "mute": false,
    "nick": null,
    "roles": [],
    "user": {
        "avatar": null,
        "discriminator": "4321",
        "id": "1234",
        "username": "blah"
    }
}

A following REST request triggered by get_member then got this response shortly after:
{
    "deaf": false,
    "joined_at": "2017-03-18T10:33:46.521000+00:00",
    "mute": false,
    "roles": [],
    "user": {
        "avatar": null,
        "discriminator": "4321",
        "id": "1234",
        "username": "blah"
    }
}

The joined_at timestamps are slightly different and due to that the find_guild function would fail to find this member. Many of the functions in Member depend on it and will not work on some users where this occurs.
To fix it i just removed the timestamp comparison, from what i know the discord API guarantees the user id's to be unique so there should be no need for it.

Thanks for the PR. Unfortunately this isn't the correct solution to the problem. This change will cause the function to return the Id of the first guild that has the member's associated user in it. This is okay for single-guild bots, but becomes more and more inaccurate with larger bots. Theoretically the current code is "good enough" (yet slow for larger bots), but like you said, they can return different values.
I have another solution that I've thought of that I will go write-up in a bit and push, and credit to you. Thanks for finding this bug!


Updated deprecated method call with up to date version

What issue does this PR address?
Documentation fix
Does this PR introduce a breaking change?
No
Please check if the PR fulfills these requirements

[x] The commit follows our guidelines
[ ] Unit Tests for the changes have been added (for bug fixes / features)

Other information:

Hi, thanks - but you are on the wrong branch IdentityServer:aspnetcore1


Improve PHPUnit assertions

Summary

Test improvements.

Type of change

[X] Test improvements.

Changed log

Using the assertTrue to assert expected is same as true.

Your other PR https://github.com/barryvdh/laravel-ide-helper/pull/1100 was already merged, the changes are in master, I just checked 🤷♀

Closed.


Minor fixes to pcprocessing

:)

thanks, I had release 0.6.2 in the afternoon, that will make it for 0.6.3...


citep doesn't suggest references

Note: you can discard the template below if you are requesting support or proposing a new feature.

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
CLion 2018.2.5
Build #CL-182.4892.24, built on October 16, 2018
TeXiFy IDEA version
v0.5.1
What I did (steps to reproduce)

Typed \citep{s

Expected behavior

Reference suggestions with identifiers starting with/containing s

Actual behavior

No suggestions given - though it works fine with \cite{}

(if applicable) The full stacktrace of the exception thrown

Only the \cite command is currently supported.
We will extend it to more well known cite commands.

Good one. I see the following variants of \cite in the natbib package: \citep, \citet, \citeauthor, \citeyearpar. Anything else?
MWE
\documentclass{article}

\usepackage{natbib}
\bibliographystyle{unsrtnat}

\begin{document}
    Citing~\cite{knuth1990} and citet~\citet{knuth1990} and citep~\citep{knuth1990} and citeauthor~\citeauthor{knuth1990} and citeyearpar~\citeyearpar{knuth1990}.

    \bibliography{books}
\end{document}

According to wikibooks there are \cite, \nocite commands by default and \citet, \citep*, \citet*, \citeauthor*, \citeyear, \citeyearpar, \citealt, \citealp in natbib

Fixed in PR #751 for release b0.6.2


[BUGFIX] delete old peerConnection.

ATM, in a p2p call, if you unsubscribe to a stream and you try to re-subscribe you will get an error.

we are actually deleting stream.stream, not stream.pc.
so, if you are on p2p, unsubscribe from a stream and try to resubscribe, you will get an error cause its trying to do things on the old peerconnection, that is actually closed.
apparently, if we delete the peerconnection it will create a new one and everything's fine

can you please merge? so Travis will not be driven crazy


Stopped working yesterday.

The package had trouble installing or updating I guess, because at some point it stopped working and it was giving an error. Can't reinstall or fix the package.

same issue

This seems to not only impact platformio, but it causes any other packages to fail during installation as well.  Platformio was installed, then as of this morning (10/16/2020), Platformio stopped working.  I uninstalled and tried to reinstall to no avail. I tried installing a different terminal application and installation would fail.  I uninstalled and reinstalled Atom and also that didn't work.
I am wondering if this is an Atom issue.

a quick solution would be to reinstall the atom again. I did it and it
worked but after working when I again opened it later the same problem. so
now working with cmd.
On Fri, Oct 16, 2020 at 7:03 PM bossjimmark<EMAIL_ADDRESS>wrote:

This seems to not only impact platformio, but it causes any other packages
to fail during installation as well. Platformio was installed, then as of
this morning (10/16/2020), Platformio stopped working. I uninstalled and
tried to reinstall to no avail. I tried installing a different terminal
application and installation would fail. I uninstalled and reinstalled Atom
and also that didn't work.
I am wondering if this is an Atom issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/platformio/platformio-atom-ide-terminal/issues/914#issuecomment-710031846,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGFJRKQISSOZYWR77RNG2GDSLBACZANCNFSM4SRVYBZQ
.

Fixed in https://github.com/platformio/platformio-atom-ide-terminal/releases/tag/v2.10.1
Please update platformio-ide-terminal to the latest version.


foundation.js isn't working

Foundation.js isn't working of version 6.1.2. But when I put the foundation.js of version 6.1.1 it works fine.

What exactly isn't working? Do you have any errors in your browser console?

No it has no errors in the console but it isn't working ... I put the standard code in app.js which is $(document).foundation();

What plugins do you use? And what functionality of those plugins doesn't work? We'll need to get more specific to figure out why this isn't working.


Styled-jsx migration

I would love to replace aphrodite by styled-jsx.
It would be more consistent to use Zeit tool :)

@chabou I'm using styled-jsx in my electron application 😍

🤔

I've begun work on this here: https://github.com/zeit/hyper/tree/styled-jsx


fix: avoid structuredClone for Node 16

Although we drop Node 16 support soon, we should keep the code compatible with Node 16 due to semver.

@jrandolf I believe Chromium might still be on Node 16. Let's publish this as a patch release.


Jedict cask

This is way way outdated. Casks haven’t looked anything like this for a long time. I urge you to take a look at the documentation and other casks.

Wow..Ok.. It got "lost" so I resubmitted it. Didn't expect things to change that much.


Enhance many_cubes stress test use cases

Objective

Make many_cubes suitable for testing various parts of the upcoming batching work.

Solution

Use argh for CLI.
Default to the sphere layout as it is more useful for benchmarking.
Add a benchmark mode that advances the camera by a fixed step to render the same frames across runs.
Add an option to vary the material data per-instance. The color is randomized.
Add an option to generate a number of textures and randomly choose one per instance.
Use seeded StdRng for deterministic random numbers.

I see we use fastrand in bevy_asset so I switched to that for reproducible random numbers, just to reduce adding a dependency.

Swapping to clap for CLI uses is nice: we should probably update our other examples to use it too.

Switched to google's argh crate for command line parsing. It's small, has only dependencies that we already have (syn, quote, serde, proc-macro2), and is still derive-based so brings most of the ergonomics we need. FromArgs has a blanket implementation for anything that implements FromStr. This means we have to implement FromStr for enums.

Good call. It evolved as I was adding individual features but I like your suggestion.


SwarmDB Docker container exits immediately

Hi,
First, thanks for the Swarm release(s).
Then, the docker container exits immediately, and it's hard to find out why. It exits if I run it on background or foreground.
ile@pc:/home/app/swarm/todo$ docker run  --name swarmdb -p 31415:31415 -v /home/app/swarm/todo:/var/lib/swarm olebedev/swarmdb
ile@pc:/home/app/swarm/todo$

@olebedev must know that

Hi @ile,
I faced with the same problem at DO in my 3 y old ubuntu 14.10. Some of syscalls were not working for the Docker.
We provide a basic SwarmDB server only as a docker image for now.

I'm using Ubuntu 16.04 + latest docker.
Would be nice to have the SwarmDB server as open source as well, for sure. Now I can't debug this problem.

Please provide an output of docker events and docker log commands ran in your context?

The logs is empty, 0 bytes.
Events:
2018-07-04T22:30:55.720414362+03:00 container create af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94 (image=olebedev/swarmdb, name=swarmdb)
2018-07-04T22:30:55.840327270+03:00 network connect fa36e48eb24ecb825b1de87f7ec718c32c78dcfc870739cde2cd42b885d7a949 (container=af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94, name=bridge, type=bridge)
2018-07-04T22:30:56.628485778+03:00 container start af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94 (image=olebedev/swarmdb, name=swarmdb)
2018-07-04T22:30:56.992721006+03:00 container die af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94 (exitCode=132, image=olebedev/swarmdb, name=swarmdb)
2018-07-04T22:30:57.106088381+03:00 network disconnect fa36e48eb24ecb825b1de87f7ec718c32c78dcfc870739cde2cd42b885d7a949 (container=af47525a34cacb2b8d6a257764619d42d4dafb6aeb49fdf9e4042061bf786e94, name=bridge, type=bridge)

exitCode=132 tells us that the CPU architecture is quite old and some of the instructions are not being supported.


Support building with CMake

Description of the feature, modification, idea or suggestion
It'd be useful to be able to build this tool with Clang + MinGW-w64. It should allow cross-building and would remove dependence on proprietary "telemetry"-infested toolchain.
Proposed implementation details (optional)
A good way to achieve it is using CMake as a build system with my set of CMake toolchain setup scripts.

There's a few issues switching to CMake.

CMake doesn't support the security features we're using.
A few institutions and companies are using the project in their course material for training. You can easily manage everything with MSVC and experiment with options/flags without much effort which is good for class environment because it doesn't distract from the course while CMake would require learning both it and the course which isn't ideal?

Using CMake is easy:

A you write down 9 steps...
While in VS all you need it

clone repo
open solution
press build

I vote for a Meson build-system.


Use listings to highlight code

Which area is this feature request for?
LaTeX Export
Describe the feature you'd like to request
Thanks for a great tool. I really think this can transform the way we write scientific papers in the future.
I am trying to write a document with some code blocks. This is not necessarily targeting any specific journals but it could for example be a text book about programming. In this case I would like to swap out the verbatim environment with listing, e.g as explained at the bottom of this page: https://www.overleaf.com/learn/latex/Code_listing
Describe the solution you'd like
I would like to create a template where I can swap out the verbatim environment with listing. Potentially, this could also be an option in the frontmatter.  The template could then define styles for the different languages.
I would guess that information about the language is parsed by myst (e.g here: https://github.com/executablebooks/mystjs/blob/20282a919e9eff1778c50e4fc39c3ac1f1e5fbed/packages/myst-directives/src/code.ts#L143-L156) and that the option of using listing rather than verbatim needs to somehow be implemented in https://github.com/executablebooks/mystjs/blob/20282a919e9eff1778c50e4fc39c3ac1f1e5fbed/packages/myst-to-tex/src/index.ts#L83-L88
I am happy to try to submit a PR, but would need to guidance in how this should be implemented.
Describe alternatives you've considered
Consider the following example in markdown
---
title: Code listing
date: 2023-04-30

exports:
  - format: pdf
    template: ./curvenote
    output: main.pdf
---

Example code with verbatim

```python
def print_hello():
    print("Hello")

x = 42
```

Text after code

Here I am using a local version of the curvenote template (https://github.com/myst-templates/curvenote.git). This produces the following output

However, I would like to get syntax highlighting and possible create a template that uses listing rather than verbatim.
One way to make it working (using the curvenote template) is to add the following lines at the end of curvenote.sty
\usepackage{listings}

\lstdefinestyle{myStyle}{
    belowcaptionskip=1\baselineskip,
    breaklines=true,
    frame=none,
    numbers=none,
    basicstyle=\footnotesize\ttfamily,
    keywordstyle=\bfseries\color{green!40!black},
    commentstyle=\itshape\color{purple!40!black},
    identifierstyle=\color{blue},
    backgroundcolor=\color{gray!10!white},
}
\lstset{style=myStyle,language=Python}
\let\verbatim\someundefinedcommand
\lstnewenvironment{verbatim}
{}{}

Rebuilding the pdf now produces the following output

However the problem is now that I have basically hardcoded in that all verbatim code block should get python syntax highlighting. In stead I would like the tool to recognise the language based on the directive and choose the correct style for the listing

There is an initial commit that is sketching out how to do this here:
https://github.com/executablebooks/mystjs/compare/main...feat/minted

Thanks a lot for the feedback and the initial commit. That is really useful. I will definitely start experimenting with this and eventually submit a PR 😀.
From the user's standpoint I think the ideal way to do it would be something like this
```{code-cell} python
:environment: minted

print("hello world")
```

were environment could be either verbatim (default), minted or listings. I think it would also be useful so add a label to a code cell so that it is possible to refer to it in the document as well as caption. Something like
```{code-cell} python
:environment: minted
:label: mylabel
:caption: Some caption

print("hello world")
```

Not sure if something like this would be possible?
I agree that starting with the code node sounds like a good idea.

While we're talking about syntax highlighting, I have a related question:
I am using the following to render myst html:
  const myst = new MyST();
  const html = myst.renderMdast(data)

It seems like the html generated by myst.renderMdast doesn't contains styling for syntax highlighting for code, unlike what one can do with myst-cli. I am probably missing some rendering options, but not sure, which?
cc @rowanc1

Hi @aktech -- The html export that you are using is very, very basic and doesn't come with styles. The most mature myst-rendering capabilities are in myst-to-react which takes a parsed string as an AST and can render it to React. The sandbox on myst-tools.org is pulling on this code (myst-demo). Hope that helps a bit!

A first version of this was released in v0.1.31! You can now add the minted or listings class to a code block, and that will change the latex export.
@fwkoch I wonder if we can spend a bit of time next week to think through a bit of extensibility on ways to make this possible project wide. If we can get a bit of a roadmap for this @finsberg mentioned he might be interested in contributing parts of it!

We are adding in settings for this in #764. You will be able to:
project:
  settings:
    myst_to_tex:
      code_style: minted # "verbatim" | "listings" | "minted"

Two follow on steps from this that will continue to make this more extensible:

allowing this to be set in the template; and
overriding the latex renderer for any node

Hi @rowanc1,
I tried this and noticed that setting the code_style to "minted" produced empty code outputs in the PDF.

"listings" did work, but I didn't like the output of, the font family, etc.
What do I need to get minted working? Does it work with any of the LaTeX templates?


Change from BST to GMT - event_current_date_rates and event_next_day_rates sensor update incorrectly

Describe the bug
On Sunday 27th October the clocks go back 1 hour from BST to GMT in the UK.
event.octopus_energy_electricity_XXXXXXXXX_XXXXXXXXXX_current_day_rates
This sensor contains rates for slots 0100-0130 and 0130-0200 twice as expected for the clock changes:

When the sensors are updated after 16:00, the 2300-2330 and 2330-0000 slots are not added to the current_day_rates, they are added to next_day_rates. This adds slots from the 27/10/2024 to the next_day_rates which are for 28/10/2024.  Any code that uses dates to select slots from the sensor attributes then fails or produces nulls on the 27th and misses the data on the 28th as it's the wrong day.
event.octopus_energy_electricity_XXXXXXXXX_XXXXXXXXXX_next_day_rates

Reproduction steps
Please see above.
Expected behaviour
The current and next day rates sensors should not mix dates.
Current day rates should have 48 slots on the 27/10/2024 to cater for the clocks changing.
When the rates come through after 16:00, the 2300-2330 and 2330-0000 slots should be added to the current day rates making 50 slots altogether.
The next day rates should start at 0000 as normal and contain 46 slots with the correct 28/10/2024 date until updated after 16:00 when there will be 48 slots.
Tariff Code
N/A
Integration Version
13.0.2
Home Assistant Version
Core 2024.10.3 Supervisor 2024.10.3 Operating System 13.2 Frontend 20241002.3
Fresh Install?
Not specified
Home Assistant Logs
N/A
Confirmation

[X] I confirm that I cannot find my solution within the documentation
[X] I confirm that I cannot find my solution within the FAQ

Hello and sorry you're seeing this issue. This should rectify itself over the next couple of days, but I'll try and fix it for the next time the clocks change.

This has been fixed in v13.1.0. This should fix the issue for next year, but time will tell :)

Thank you Dave, much appreciated!


CPU lightmapper does not react to non-default environment Color, Energy or Sky Contribution when using the Scene environment mode

Related to https://github.com/godotengine/godot/issues/56138 (which is the same issue but for master's GPU lightmapper).
Godot version
3.4.stable, 3.5.beta (71d8ccbe9)
System information
Fedora 34, GeForce GTX 1080 (NVIDIA 470.74)
Issue description
The CPU lightmapper does not react to non-default environment Color, Energy or Sky Contribution in WorldEnvironment when the BakedLightmap is configured to use the Scene environment mode. I made sure to bake lightmaps again after changing the Environment's ambient light properties.
The CPU lightmapper does react to custom sky orientation/rotation though.
This may also be occuring when using the Custom Sky environment mode in BakedLightmap, but I didn't test that yet.
Left: real-time ambient lighting, right: baked ambient lighting
Default environment settings

Ambient Color #000000, Sky Contribution = 0.5, Energy = 1.0

Ambient Color #000000, Sky Contribution = 1.0, Energy = 0.5

Ambient Color #604020, Sky Contribution = 0.0, Energy = 1.0

Steps to reproduce

Add a WorldEnvironment node. Configure a ProceduralSky.
Add a BakedLightmap node. Set the environment mode to Scene.
Instance two identical 3D scenes imported with the Gen Lightmaps option. One of them must be placed inside the BakedLightmap's bounds, whereas the other one must be placed fully outside – its AABB must not touch the BakedLightmap's bounds.
Select the BakedLightmap node and click Bake Lightmaps at the top of the 3D editor viewport.
Remember to bake lightmaps every time you adjust the ambient light settings!

Minimal reproduction project
test_lightmap_environment_3.x.zip

Fixed by #62260.