text:
Sassc 2.4.0 installation error in Mac 14.7 (Sonoma) with Ruby 3.3.4

Been trying to bundle install but it keeps failing on sassc.
Here's the tail end of running gem install sassc -v '2.4.0' --verbose
HEAD https://index.rubygems.org/
200 OK
GET https://index.rubygems.org/info/sassc
200 OK
GET https://index.rubygems.org/info/ffi
200 OK
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/.gitignore
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/.gitmodules
<.... TRUNCATED FOR BREVITY ....>
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/test/sass_2_scss_test.rb
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/test/test_helper.rb
Building native extensions. This could take a while...
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/bin/ruby", "extconf.rb"]
creating Makefile
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["make", "DESTDIR=", "sitearchdir=./.gem.20241008-94702-ngoxqy", "sitelibdir=./.gem.20241008-94702-ngoxqy", "clean"]
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["make", "DESTDIR=", "sitearchdir=./.gem.20241008-94702-ngoxqy", "sitelibdir=./.gem.20241008-94702-ngoxqy"]
compiling ./libsass/src/ast.cpp
make: *** [ast.o] Error 1
ERROR:  Error installing sassc:
	ERROR: Failed to build gem native extension.

    current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/bin/ruby extconf.rb
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
make DESTDIR\= sitearchdir\=./.gem.20241008-94702-ngoxqy sitelibdir\=./.gem.20241008-94702-ngoxqy clean
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
make DESTDIR\= sitearchdir\=./.gem.20241008-94702-ngoxqy sitelibdir\=./.gem.20241008-94702-ngoxqy
Building has failed. See above output for more information on the failure.
make failed, exit code 2

Gem files will remain installed in /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0 for inspection.
Results logged to /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/extensions/arm64-darwin-23/3.3.0/sassc-2.4.0/gem_make.out

Same issue here, but I'm using Ruby-3.2.2. @AdamJacobson Did you fix it?

@yzhengya Unfortunately that did not resolve it for me. I will note, I am using a company issued laptop and cannot rule out something going wrong with permissions (I need to request temporary admin access to delete /Library/Developer/CommandLineTools/).

@AdamJacobson did you resolve this issue

@AdamJacobson did you resolve this issue

I wasn't able to resolve the issue on my machine. I ended up requesting a new computer from my company as nobody else on my team was having the issue. New laptop doesn't have the issue so at least I can move on with my life but this will not be helpful to anyone else...

I experienced the same issue. What helped me was running the following command:
sudo rm -R /Library/Developer/CommandLineTools/

After executing this, macOS prompted me to install the developer tools. Once the installation was complete, I was able to run bundle install without any issues.

I did something like this and works:
https://github.com/sass/sassc-rails/issues/182#issuecomment-2389715505

authors: AdamJacobson mahdiar-naufal-shyftplan ownadi truonglocbinh yzhengya

repo: sass/sassc-ruby


text:
Move humanoid bone editor to indedpendent accordion from custom property

Is your feature request related to a problem? Please describe.:バグじゃないけどアドオンの動作でなにか困ってることがあれば
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like:どう動いてほしいかをどうぞ
A clear and concise description of what you want to happen.
Describe alternatives you've considered:他にこんなんでもいいよ、というのがあれば
A clear and concise description of any alternative solutions or features you've considered.
Additional context::なんかほかに書きたいことがあれば
Add any other context or screenshots about the feature request here.

対応済み

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
[Jira Cloud] Xray "old" issue view isn't supported to execute Rhino automation

Not a bug.
Rhino does not have nor will have backward compatibility for 3rd party products.
We support only the latest.
Alternatively, you can create your own fork and add support.

authors: YanivAroch gravity-api


text:
Add more CPU to demo agent pods

What's done:

Increased demo.kubernetes.agent-cpu-requests from 100m to 500m
Increased demo.kubernetes.agent-cpu-limits from 500m to 800m

@sanyavertolet if you will continue debug, please don't create PR in future
better deploy from your branch instead of master

@sanyavertolet if you will continue debug, please don't create PR in future
better deploy from your branch instead of master

That's why I do not want to merge it right now. Will debug with my branch

buy in Console also

We might need it, yes

source: gharchive/pull-request

authors: kgevorkyan sanyavertolet

repo: saveourtool/save-cloud


text:
feat: implement 0x57 - JUMPI

Since
Frontier
Group
Stack, Memory, Storage and Flow Operations
Description
0x57 - JUMPI
Index 1 is top of the stack. See PUSH.
Notes
The program counter (PC) is a byte offset in the deployed code. It indicates which instruction will be executed next. When an ADD is executed, for example, the PC is incremented by 1, since the instruction is 1 byte. The PUSH instructions are bigger than one byte, and so will increment the counter accordingly.
The JUMPI instruction may alter the program counter, thus breaking the linear path of the execution to another point in the deployed code. It is used to implement functionalities like loops and conditions.
Stack input
counter: byte offset in the deployed code where execution will continue from. Must be a JUMPDEST instruction.
b: the program counter will be altered with the new value only if this value is different from 0. Otherwise, the program counter is simply incremented and the next instruction will be executed.
Example
See in playground.
Error cases
The state changes done by the current context are reverted in those cases:
Not enough gas.
Not enough values on the stack.
Counter offset is not a JUMPDEST. The error is generated only if the JUMP would have been done.

I would also like to work on this one. :)

authors: Eikix TotalPizza

repo: sayajin-labs/kakarot


text:
unicode support?

On any input file with unicode (i.e. utf-8 text in Russian) the default train.sh gives:
ERROR: LoadError: On worker 2:
UnicodeError: invalid character index
in yieldto at ./task.jl:71
in wait at ./task.jl:371
in schedule_and_wait at task.jl:352
in consume at task.jl:259
in read_words at [...].julia/v0.4/AdaGram/src/textutil.jl:126
in anonymous at [...].julia/v0.4/AdaGram/src/gradient.jl:136
in anonymous at multi.jl:889
in run_work_thunk at multi.jl:645
in run_work_thunk at multi.jl:654
in anonymous at task.jl:58
in remotecall_fetch at multi.jl:731
in call_on_owner at multi.jl:776
in inplace_train_vectors! at [...].julia/v0.4/AdaGram/src/gradient.jl:158
in include at ./boot.jl:261
in include_from_node1 at ./loading.jl:304
in process_options at ./client.jl:308
in _start at ./client.jl:411
while loading [...]AdaGram.jl/train.jl, in expression starting on line 105
Since Julia language is new to me, I'm wondering maybe I can fix this behaviour without patching the AdaGram code? Because it looks like I have to fix looped_word_iterator at src/textutil.jl:26, do_work at src/gradient.jl:24 and maybe somewhere else. Please help :)

Now a quick fix of looped_word_iterator at src/textutil.jl:26 that works (added 'try/catch' block):
function looped_word_iterator(f::IO, start_pos::Int64, end_pos::Int64)
function producer()
while true
try
w = readuntil(f, ' ')
if length(w) < 1 break end
w = w[1:end-1]
if !adagram_isblank(w)
produce(w)
end
if position(f) >= end_pos seek(f, start_pos) end
catch
end
end
end
  return Task(producer)
end

Awesome, thanks! Maybe you'd like to add this as a pull request?

pull request to master?

Yes, master branch is fine.
пн, 2 нояб. 2015 г. в 14:48, arspin notifications@github.com:

pull request to master?
—
Reply to this email directly or view it on GitHub
https://github.com/sbos/AdaGram.jl/issues/9#issuecomment-152996741.

Hi,
Though I have not able to fix the code, I tackled the issue indirectly. What I did was that I transformed the corpus file to indexes using the dictionary that is made using utils/dictionary.sh. More specifically, I replaced each word in the corpus by its index. So, instead of having a corpus of Unicode characters, I have a corpus of numbers. After the model is trained, I transferred them back to the original words.
Contact me if you need the transformation code.
Arman73k@gmail.com

authors: ArmanKabiri arspin sbos

license: mit

license_source: bigquery


text:
Network API

For sbt 1.0, we'd like to have Network API that can download metadata and artifacts.
Some feature to consider:

Out of the box proxy support
Caching based on URL

Potentially take advantage of Sonatype HTTP headers

Connection pooling that works with https and redirection (repo.scala-sbt.org redirects to Bintray, which redirects to some CDN)
https://github.com/AsyncHttpClient/async-http-client/ wrapper?

Also, think about resumable downloads (on failure).  The aether connectors have example code for how to do that.

"Smartness in terms of caching/Sonatype HTTP headers" what's meant by this? Google didn't come up with anything.

"Smartness in terms of caching/Sonatype HTTP headers" what's meant by this?

This is an idea @jsuereth has been talk about for a while, but gist is that since downloader is specialized to sbt's usage, we want to add smart caching that's aware of what's mutable and what's immutable. Another hint we can use for caching is ETag and custom HTTP headers used by Sonatype and/or Bintray.
See for example:
$ curl -X HEAD -L -i https://oss.sonatype.org/content/repositories/snapshots/com/eed3si9n/treehugger_2.10/0.2.4-SNAPSHOT/maven-metadata.xml
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 273
Content-Type: application/xml
Date: Mon, 31 Aug 2015 20:30:27 GMT
ETag: "{SHA1{d08d5210d442b0aefd51379b3bcce0b94bfb2f68}}"
Last-Modified: Sun, 30 Aug 2015 23:03:42 GMT
Server: nginx
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Connection: keep-alive

treehugger 0.2.4-SNAPSHOT has to be from circa 2013, but the Last-Modified says 2015, so we can't trust it. If SHA1 is correct, we could use the ETag.

Is there any concern on depending on async-http-client on the classpath? Same for probably Netty. I recently had to move away from it (via dispatch) in a Play library as Play 2.3 and Play 2.4 used AHC 1.8 and 1.9 which are binary incompatible (yeah..), and it looks like AHC is working towards a 2.0 which I'm assuming will be incompatible too.

I meant concern WRT to possible, known sbt plugins that already depends on AHC.

That is a major concern. But if sbt shipped with a Network API, maybe all the plugins can just use that and the problem might be resolved. Is that too optimistic?
I feel like bits downloading is something the community or at least our plugin ecosystem should just agree to use one implementation, and just stick with it for a while, similar to JSON ASTs.

@jroper, @richdougherty What's your opinion on this topic since you might be affected in more than one way?  :arrow_forward: :earth_asia:

I assumed sbt's Network API would be a wrapper of a client for the benefit of optimising for artifacts/metadata IO, so not general purpose.

Even then, sometimes the dependencies aren't direct (eg. plugin uses a library for talking to GitHub's API, which uses AHC version 1.8).

If using async-http-client, I'd want to shade it.

Indeed I was thinking the same.

Ugh, looks like Sonatype snapshots keeps update maven metadata files, updating the lastUpdates field of the XML, so the Last-Modified and ETag are constantly changing even if no new publish was made..
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
  <groupId>com.eed3si9n</groupId>
  <artifactId>treehugger_2.10</artifactId>
  <version>0.2.4-SNAPSHOT</version>
  <versioning>
    <lastUpdated>20150902225502</lastUpdated>
  </versioning>
</metadata>

I've explored HTTP response headers for the repos that we care about:
// aka "public"
https://repo1.maven.org/maven2/
https://jcenter.bintray.com/

https://oss.sonatype.org/content/repositories/releases/
https://oss.sonatype.org/content/repositories/snapshots/

https://repo.typesafe.com/typesafe/releases/
https://repo.typesafe.com/typesafe/ivy-releases/

https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/

// A supported alternative
https://repo.typesafe.com/typesafe/maven-releases/

// These 3 don't actually exist, and can't because they redirect to Bintray which doesn't support snapshots
https://repo.typesafe.com/typesafe/snapshots/
https://repo.typesafe.com/typesafe/ivy-snapshots/
https://repo.scala-sbt.org/scalasbt/sbt-plugin-snapshots/

and recorded the responses and some notes on each: https://github.com/dwijnand/sbt-net/blob/master/notes.md
One of the surprising discoveries is that Last-Modified/If-Modified-Since doesn't work for the Typesafe repos, but does for the sbt plugin repo, despite both being redirects to Bintray. Even when using the underlying Bintray URL directly. For reference the jCenter Bintray repo does support it.

Please let me know if there are other repos I should care about. Perhaps fetching for ~/.m2/repository/?

Please let me know if there are other repos I should care about.

Local installation of Artifactory and Nexus I guess.

Some interesting facts from sbtがpomやjarを解決する際の無駄なhttpアクセス storifying @tkawachi's analysis on sbt traffic. The following is my translation of what he tweeted:

when .pom is found, .pom.sh1 goes back to the same server, but for .jar, it will try from the first resolvers.
HEAD calls can add latency (depending on where you live)
redirection from repo.typesafe.com to dl.bintray.com adds around 200ms. there's no Keep-Alive
when grabbing .pom.sha1, there are two HEAD calls, and then a GET -> 200.
for a pair of ivy.xml and ivy.xml.sha1 it took 2032ms. without redirection it will be 1104ms. further more without HEAD, it will be 445ms.
resolvers are attempted sequentially from the first one. it might make sense to bring Maven Central the first one instead of repo.typesafe.com or repo.scala-sbt.org

That explains a lot.

Coming in late here, but presuming that the ivy libs we're using also rely on the blocking JDK based APIs to reach across the network, I'd imagine we'd be ok in doing so here too - at least in order to keep our dependencies to a minimum. I agree that our API here though should be non-blocking and async of course.

Caching API is here -- it's set up for Play WS right now, but I can abstract it to be directly on async-http-client: https://github.com/playframework/play-ws-cache

authors: dwijnand eed3si9n huntc jroper jsuereth wsargent

repo: sbt/sbt


text:
Support JDK9 JEP 238: Multi-Release JAR Files

We're looking to adopt JDK9 rather early in order to provide Akka users additional performance by using the new fences and var handle APIs etc.
In order to manage that as a clean transition and not complete fork of Akka we'll need Multi-Release JARs that are coming in in JDK9: http://openjdk.java.net/jeps/238
It is rather simple AFAICS and boils down to putting classes under META-INF if they are meant to be "only jdk9" etc:
jar root
  - A.class
  - B.class
  - C.class
  - D.class
  - META-INF
     - versions
        - 9
           - A.class
           - B.class

Is this something you have looked at or not yet, if not yet and not planning to I'm willing to help out (work on it, may need some hints).
Do you think this is something that would fit well to provide in sbt itself and not as a plugin?
I thought it would be good to provide this in sbt itself since it's a JDK thing - WDYT?

Hmm... I guess actually it may relate more to the packaging plugin and not sbt itself hm WDYT @eed3si9n ?

The thing that i can say 2.12 and those sources only are used in 2.12.

https://github.com/sbt/sbt/pull/1799

.. and there @eed3si9n points to crossPaths and crossTarget. That should start pointing you to the right places.

Ok thanks, will poke around it on airports then 👍

I think this would be great @ktoso. Glad to hear you're working on it.

Status update: not currently working on it, will report back if on it.

Status update, we'll definitely need it so will look into it I guess

Can this feature be utilised for cross building Scala as well?

I don't think so, it's hardcoded to know about JDK versions, nothing else. It can handle /META-INF/versions/9, /META-INF/versions/10 etc, but there's no way to smuggle in scala versions there AFAICS

That's a pity.

It's something we could perhaps bring up during our discussions with them - @retronym FYI.
I guess they did the minimal thing they needed for 9, rather than doing a full API around it since time pressure to ship 9.

Blog about how to configure this with Maven.

I have done so in a strawman proposal for Akka https://github.com/ktoso/akka-streams-jdk9-strawman-mvn :)

I'm working on it FYI @retronym @dwijnand @eed3si9n
Starting as a plugin: https://github.com/sbt/sbt-multi-release-jar
I hope to have it complete by the end of this week. Fingers crossed there won't be any roadblocks to uncover.

authors: dwijnand jroper jvican ktoso retronym


text:
Tailwind config, screens for easier responsive designs

I was building my prototype when I noticed that the tailwindConfig file does not contain screens for responsive designs which can make making responsive designs easier and faster.

We can use the defaults that come with tailwind, no need to add any in the config.

authors: IbrahimIjai sverps


text:
JavaConverts.mapAsJavaMapConverter fails on containsKey with non compatible type.

import scala.collection.JavaConverters.mapAsJavaMapConverter
val scalaMap = new scala.collection.mutable.HashMap[String, String] {
  override def contains(key: String): Boolean = super.contains(key)
}
val javaMap = scalaMap.asJava
javaMap.containsKey(42)

In the JVM it return false while in JS it fails with:
scala.scalajs.runtime.UndefinedBehaviorError: An undefined behavior was detected: 42 is not an instance of java.lang.String

Found by minimizing scalaTestSuite scala/collection/convert/MapWrapperTest.scala blacklisted test.

The source of this issue is an asInstanceOf that cant be avoided.

repo: scala-js/scala-js


text:
chore: update sbt-tpolecat from 0.5.0 to 0.5.1

About this PR
📦 Updates org.typelevel:sbt-tpolecat from 0.5.0 to 0.5.1
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "sbt-tpolecat" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.typelevel", artifactId = "sbt-tpolecat" }
}]

labels: sbt-plugin-update, early-semver-minor, semver-spec-patch, version-scheme:early-semver, commit-count:1

Superseded by #166.

repo: scala-jwt/oath


text:
Update sbt-dynver to 5.0.1

About this PR
📦 Updates com.dwijnand:sbt-dynver from 4.1.1 to 5.0.1 ⚠
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.dwijnand", artifactId = "sbt-dynver" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.dwijnand", artifactId = "sbt-dynver" }
}]

labels: sbt-plugin-update, early-semver-major, semver-spec-major, commit-count:1

Updated manually

authors: mcallisto scala-steward

repo: scala-tessella/ring-seq


text:
Tagging: --include-tags does not override the option set in sbt

Hello,
In my use-case I want to have two set of integration tests:

Ones that I can run entirely locally. No tags set.
Others that require connecting to a real testing environment. Tests tagged with uat-integration.

By default I want to skip tests in 2. but optionally override the sbt command to run those same tests. As in:
IntegrationTest / testOptions += Tests.Argument("--exclude-tags=uat-integration"), // also works albeit different from the docs

And then:
$ sbt "it:test -- --include-tags=uat-integration"

However, it seems that the parameter does not override the default option. Passing parameters to sbt is a bit finicky so I might be wrong as well.
My current workaround is to create a custom sbt task LocalIntegrationTest that excludes the tag (however I wanted to avoid that approach). I might be approaching munit incorrectly therefore I look forward for your feedback.
If the problem is not clear, I can setup a sample project with this scenario when I get the chance.

I no longer have a need for this but leave the issue open as it documents unexpected behaviour as far as I can tell.

repo: scalameta/munit


text:
Fix multiline comments + singnificant-indentation processing

Fixes #2436

@tgodzik I included an additional fix that finally solves problems that were spotted by scalafmt tests. I checked them locally - everything pass.

repo: scalameta/scalameta


text:
feat(cli): scalar config linter

This PR adds the lint cli command to validate scalar.config.json files using a JSON schema and ajv
JSON schema for the ScalarConfig type generated using https://github.com/vega/ts-json-schema-generator
This PR is a WIP and would love some feedback!
Todo

[ ] expand the ScalarConfig type to include all possible fields
[ ] improve file input paths
[ ] fetch input files from url
[ ] error formatting
[ ] release as VSCode plugin
[ ] more error output
- would be really cool to output all potential errors instead of just throwing the first one
- iteratively run the validator while dynamically updating the validator type to find all possible errors?

Love it!! Added two comments regarding the naming and structure of this approach, but I think we’re on the right track. Can’t wait to have this in. 😊

authors: hanspagel tmastrom

repo: scalar/scalar


text:
1.0.3

@rultor release, tag is 1.0.3

@rultor release, tag is 1.0.3

@ronenhamias OK, I will release it now. Please check the progress here

@rultor release, tag is 1.0.3

@ronenhamias Oops, I failed. You can see the full log here (spent 9s)
+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 14156
+ echo '2.0-SNAPSHOT BUILD'
2.0-SNAPSHOT BUILD
+ date
Fri Dec 16 13:09:01 UTC 2016
+ uptime
 13:09:01 up 27 days, 19:23,  0 users,  load average: 0.00, 0.02, 0.05
+ head=git@github.com:scalecube/RabbitMQ.git
+ head_branch=master
+ vars=('--env=head=git@github.com:scalecube/RabbitMQ.git' '--env=head_branch=master')
+ image=yegor256/rultor
+ directory=
+ scripts=()
+ container=scalecube_rabbitmq_3
+ as_root=false
+ mkdir -p /home/rultor/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/rultor/.ssh/config
+ git clone git@github.com:scalecube/RabbitMQ.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z '' ']'
+ '[' -e pom.xml ']'
+ scripts=('mvn clean test')
+ echo 'pom.xml is here, I guess it is Apache Maven'
pom.xml is here, I guess it is Apache Maven
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'mvn clean test'
+ rm -rf .gpg
+ '[' -z '' ']'
+ echo 'tag name is not provided in the request, see http://doc.rultor.com/basics.html'
tag name is not provided in the request, see http://doc.rultor.com/basics.html
+ exit -1
'cid' file is absent, container wasn't started correctly

authors: ronenhamias rultor

repo: scalecube/RabbitMQ


text:
Log file rotation

The path you chose for the local log file (/var/log/openvpn-tcp443.log) will not be rotated by logrotate.
It's better to not provide this directive and let syslog do the job
# VPN logfile location
# If you don't specify a location here, logging will be done through
# syslogd and write to /var/log/messages
log-append /var/log/openvpn.log

openvpn now logs to journald (22c5aaf)

authors: multun nlm

repo: scaleway-community/scaleway-openvpn


text:
Handle the case in which the attribute value is not a map in derived format

Currently this would fail with a null pointer exception:
case class Thing(foo: String, bar: Int)
DynamoFormat[Thing].read(new AttributeValue().withS("whatevs")) // throws NPE

sealed trait Base
case class Foo(f1: String) extends Base
case class Bar(f2: Int) extends Base
DynamoFormat[Base].read(new AttributeValue().withS("whatevs")) // throws NPE

This PR should fix it and return an error.
I can add tests if required.

Sorry have been rubbish at keeping up with things lately. This looks sensible. A test would be lovely, but not required.

Added two simple tests which should reproduce the problem. Also modified the way it's checked that the AttributeValue is a map. I had initially done this inside the derived implementation but the problem with doing this is that in the hcons case we are restricted to return an InvalidPropertiesError which may not make sense to do here, given that it's not just a specific property error, but a structure error. Let me know what you think.

I've had a quick look at this, it's a good spot.  I was wondering if it would be more appropriate to move the checking to the point where it's used rather than doing it preemptively?
More specifically, I believe that we could do the null check just before the asScala conversions, to keep the java->scala boundary in one place. i.e. Option(av.getM).map(_.asScala)  Then we can decide what to do in that one place.
It would be on lines:
https://github.com/scanamo/scanamo/blob/10faff7c922e039e2f80b5426239c365181a44a5/formats/src/main/scala/com/gu/scanamo/DerivedDynamoFormat.scala#L39
https://github.com/scanamo/scanamo/blob/10faff7c922e039e2f80b5426239c365181a44a5/formats/src/main/scala/com/gu/scanamo/DerivedDynamoFormat.scala#L74
Any thoughts about this?

@johnduffell that was my initial approach. Problem is that for the hcons case we are restricted to return errors of type InvalidPropertiesError which I'm not sure is the adequate one for this situation.
I think we can start by deciding which error we want to return. We probably want this error to be the same in both cases. My idea was a single TypeCoercionError(new Exception(s"Expected $av to be a map")) error. Any opinion about this?

Hello @miguel-vila , I'm open to widen the error channel in ValidatedPropertiesError[T] and ConstructedDynamoFormat[T] to DynamoReadError, so that this limitation is lifted and you can move check at the calling site. If you have appetite to do that, we can get this merged! Thanks a lot for your contribution.

100% onboard with that change, so feel free to reopen when/if you have appetite for it.

authors: johnduffell miguel-vila philwills regiskuckaertz

repo: scanamo/scanamo


text:
Reduce false positives on comparing unrelated types

scala> BigDecimal(5) == 0
val res0: Boolean = false

scala> BigDecimal(0) == 0
val res1: Boolean = true

Scapegoat still seem to get the Literal instead of the boxed variants which I observed in bytecode after diagnosing a violation in my codebases. This special clause will handle these cases.

Codecov Report
Base: 87.11% // Head: 87.19% // Increases project coverage by +0.08% :tada:

Coverage data is based on head (970327b) compared to base (7407ec6).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #710      +/-   ##
==========================================
+ Coverage   87.11%   87.19%   +0.08%
==========================================
  Files         141      141
  Lines        1521     1523       +2
  Branches      221      221
==========================================
+ Hits         1325     1328       +3
+ Misses        196      195       -1

Impacted Files
Coverage Δ

...inspections/equality/ComparingUnrelatedTypes.scala
96.00% <100.00%> (+4.69%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: Johnnei codecov-commenter

repo: scapegoat-scala/scapegoat


text:
cannot get token by username and password

try to get the token from password mode by entering username and password.
the system give you the error :

Error: param does not match pattern ^[a-zA-Z0-9_:-]+$.

in OAuth2RequestFactory.createTokenRequest in the code:
        if (authorizationGrantType == PASSWORD) {
            String username = readParameter(requestParameters, "username", STRING_PATTERN);

Can you paste the username? Does it match the pattern?

Can you paste the username?

the username is: all@dipendente.it

Does it match the pattern?

no, cause it contains "." and "@"

authors: gianpaolo-tndigit matteo-s

repo: scc-digitalhub/AAC


text:
WIP: Generating invalid data

Resolves #65 and #66

[ ] properly filter data, generated by not_from_schema - should be dictionaries and for path probably not arrays or objects
[ ] high level tests for not valid data
[x] CLI option for invalid data generation
[ ] Support in CLI / Runner
[ ] Support in lazy schemas
[ ] changelog entry
[ ] docs

Closed in favor of #831

repo: schemathesis/schemathesis


text:
Create CameraView Control Panel

This panel will first control brightness and zooming in every camera view.
It should be poped-up on double clicking mouse button.
It should be either validated by ok or canceled by cancel actions.

Let's do this in a further life...

repo: schmouk/ArcheryVideoTraining


text:
Dev cpp

Fetch-like operation.

Finally, won't do that way...


text:
Bizarre sphere-heightmap collisions.

Hello again!
Whenever a sphere collides with my heightmap, it either falls through or, in the case of the player's collision sphere, begins - for lack of a better word - spasming. I've tried testing with the ContactMaterial but to no avail. Is there a way of making the collision with the heightmap smoother. I have included a link to the work-in-progress game so you can see what I mean. I'm more of an artist-in-training than a programmer so please excuse the slightly naive nature of my posts :)
http://yiyeuniverse.github.io/game.html
Code to create terrain:
	var matrix = [];
            var sizeX = 128,
                sizeY = 128;

for (var i = 0; i < sizeX; i++) {
                matrix.push([]);
                for (var j = 0; j < sizeY; j++) {
                    var height = Math.cos(i / sizeX * Math.PI * 1) * Math.cos(j/sizeY * Math.PI * 1) * 2 + 2;
                    if(i===0 || i === sizeX-1 || j===0 || j === sizeY-1)
                        height = 5;
                    matrix[i].push(height);
                }
            }

            var hfShape = new CANNON.Heightfield(matrix, {
                elementSize: 200 / sizeX
            });

            var hfBody = new CANNON.Body({ mass: 0});
            hfBody.addShape(hfShape);

           // hfBody.position.set(-sizeX * hfShape.elementSize / 2, -sizeY * hfShape.elementSize / 2, -1);
		   hfBody.position.set(0,0,0);
		   //hfBody.position.set(0, 4.1, 0);
		   hfBody.position.set(-sizeX * hfShape.elementSize / 2, 60, -100);
		   var rot = new CANNON.Vec3(1,0,0)

            world.add(hfBody);
			hfBody.quaternion.setFromAxisAngle(rot,(Math.PI/2));

var geometry = new THREE.Geometry();

            var v0 = new CANNON.Vec3();
            var v1 = new CANNON.Vec3();
            var v2 = new CANNON.Vec3();
            for (var xi = 0; xi < hfShape.data.length - 1; xi++) {
                for (var yi = 0; yi < hfShape.data[xi].length - 1; yi++) {
                    for (var k = 0; k < 2; k++) {
                        hfShape.getConvexTrianglePillar(xi, yi, k===0);
                        v0.copy(hfShape.pillarConvex.vertices[0]);
                        v1.copy(hfShape.pillarConvex.vertices[1]);
                        v2.copy(hfShape.pillarConvex.vertices[2]);
                        v0.vadd(hfShape.pillarOffset, v0);
                        v1.vadd(hfShape.pillarOffset, v1);
                        v2.vadd(hfShape.pillarOffset, v2);
                        geometry.vertices.push(
                            new THREE.Vector3(v0.x, v0.y, v0.z),
                            new THREE.Vector3(v1.x, v1.y, v1.z),
                            new THREE.Vector3(v2.x, v2.y, v2.z)
                        );
                        var i = geometry.vertices.length - 3;
                        geometry.faces.push(new THREE.Face3(i, i+1, i+2));
                    }
                }
            }
            geometry.computeBoundingSphere();
            geometry.computeFaceNormals();
			geometry.mergeVertices();
			geometry.computeVertexNormals();
            terrainmesh = new THREE.Mesh(geometry,collisionmaterial2);
			scene.add(terrainmesh);
					   var rot = new CANNON.Vec3(1,0,0)
    terrainmesh.quaternion.setFromAxisAngle(rot,(Math.PI/2));
	terrainmesh.position.set(-sizeX * hfShape.elementSize / 2, 60, -100);

Kind regards,
Matthew

Don't worry! I fixed it! The reason why was quite embarrassing. When I rotated it by 90 degrees, I may have rotated it so that it was upside down. That was... oh dear.


text:
error(dev-setup): error setting up dev environment

While running the npm run bootstrap command in the Installing From Source (Latest) section of the microdrop-3 README, I encountered an error.
Here is the complete console output from the npm run bootstrap command: 2018.02.02-dev setup error.log
Here is one of the log files referenced in the error output which may be relevant: 2018-02-02T14_24_12_171Z-debug.log

I updated the README instructions for building from source (I was missing a --recursive flag)
My suspicion is that lerna was installing an old version of micropede (since it was not cloned recursively), which still had an accidental node-gyp dependency.
Try:
git clone --recursive https://github.com/sci-bots/microdrop-3
cd microdrop-3
npm i --global lerna
npm install
npm run upgrade:micropede
npm run bootstrap
npm run build
npm run start

I still get the same error when I use the steps from the latest README (from 7feff7aa1ff2dbfc03d21652dd1d68ad154a568e).
Here is the full error log from the console: 2018.02.02-dev setup error-7feff7aa.log
I also tried again after running the optional npm run upgrade:micropede command, but got the same error.  Here is the full error log from the console: 2018.02.02-dev setup error-7feff7aa-with upgraded micropede.log

Missing ncu requirement for npm run upgrade:micropede
Also, I noticed that to run npm run upgrade:micropede, I first needed to install ncu.  Otherwise I would receive this error:
(md-3-dev) PS C:\Users\chris\Documents\github\microdrop-3> npm run upgrade:micropede

> @ upgrade:micropede C:\Users\chris\Documents\github\microdrop-3
> lerna exec -- ncu -u @micropede/client @micropede/broker

lerna info version 2.8.0
'ncu' is not recognized as an internal or external command,
operable program or batch file.
lerna 'ncu' is not recognized as an internal or external command,
operable program or batch file.
ERR!'ncu' is not recognized as an internal or external command,
operable program or batch file.
 exec Errored while executing 'ncu -u @micropede/client @micropede/broker' in '@micropede/broker'
lerna ERR! execute callback with error
lerna ERR! Error: spawn ncu ENOENT
lerna ERR!     at notFoundError (C:\Users\chris\Miniconda2-x86\envs\md-3-dev\node_modules\lerna\node_modules\cross-spawn\lib\enoent.js:11:11)
lerna ERR!     at verifyENOENT (C:\Users\chris\Miniconda2-x86\envs\md-3-dev\node_modules\lerna\node_modules\cross-spawn\lib\enoent.js:46:16)
lerna ERR!     at ChildProcess.cp.emit (C:\Users\chris\Miniconda2-x86\envs\md-3-dev\node_modules\lerna\node_modules\cross-spawn\lib\enoent.js:33:19)
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
lerna ERR! exec Errored while executing 'ncu -u @micropede/client @micropede/broker' in '@microdrop/buildutils'
lerna ERR! exec Errored while executing 'ncu -u @micropede/client @micropede/broker' in '@micropede/mixins'
{ Error: spawn ncu ENOENT
    at notFoundError (C:\Users\chris\Miniconda2-x86\envs\md-3-dev\node_modules\lerna\node_modules\cross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (C:\Users\chris\Miniconda2-x86\envs\md-3-dev\node_modules\lerna\node_modules\cross-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (C:\Users\chris\Miniconda2-x86\envs\md-3-dev\node_modules\lerna\node_modules\cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn ncu',
  killed: false,
  stdout: null,
  stderr: null,
  failed: true,
  signal: null,
  cmd: 'ncu -u @micropede/client @micropede/broker',
  timedOut: false,
  exitCode: 1 }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ upgrade:micropede: `lerna exec -- ncu -u @micropede/client @micropede/broker`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ upgrade:micropede script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\chris\AppData\Roaming\npm-cache\_logs\2018-02-02T16_40_54_614Z-debug.log

The README should be updated to reflect this.

Same issue after cloning 8cf86a411f7018a50447b593e73e2f66c5c797c5.  Here's the console log output:
2018.02.02T14h52-dev setup error-8cf86a41-with upgraded micropede.log
Might it have something to do with a specified version dependency for node-sass?  The snippet from the log below suggests that the file win32-ia32-57_binding.node from node-sass from version 3.13.1 is required, but that file does not exist in the node-sass 3.13.1 GitHub release.  However, the win32-ia32-57_binding.node does exist in the 4.5.3 node-sass release.
Any thoughts on how to resolve the node-sass issue?

Log snippet showing node-sass error:
....
lerna info version 2.8.0
lerna info Bootstrapping 11 packages
lerna info lifecycle preinstall
lerna info Installing external dependencies
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: npm install
lerna ERR! Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-ia32-57_binding.node":
lerna ERR!
lerna ERR! HTTP error 404 Not Found
lerna ERR!
lerna ERR! Hint: If github.com is not accessible in your location
lerna ERR!       try setting a proxy via HTTP_PROXY, e.g.
lerna ERR!
lerna ERR!       export HTTP_PROXY=http://example.com:1234
lerna ERR!
lerna ERR! or configure npm proxy via
lerna ERR!
lerna ERR!       npm config set proxy http://example.com:8080
lerna ERR! gyp info it worked if it ends with ok
...

Should work now after updating dat.GUI . Also: I had a mistake in the instructions (should install npm-check-updates globally instead of ncu [seems to be a weather package ;p ])

Thanks @Lucaszw !  I am no longer getting any error following the README development set up instructions.
When I run npm run start, the following window is now launched:

However, when I try to browse to http://localhost:3000 my browser says the site can't be reached:

I'll look into this to see what I can figure out, but wanted to mention it here in case you've come across this before and have a quick fix.

There can sometimes be a delay between when the application loads that message, and when the web server is ready. If you reload the page ~10s after the message appears, does the web-page still not load?

I pushed a few changes to master that might help resolve the issue, can you try pulling and see if things still seem to be broken?

Thanks for your help.  I tried reloading several minutes after launching using npm run start and still no luck.
After updating to c0d6186e489eece943558673b1720f0de400161a, I still cannot load the page.  In addition, I now get an error about not finding backbone.  Note that I still get a node process running in a separate window:

Here is the full console log:
(md-3-dev) PS C:\Users\chris\Documents\GitHub\microdrop-3> npm run start

> @ start C:\Users\chris\Documents\GitHub\microdrop-3
> npm run --prefix ./packages/application start

> @microdrop/application@1.1.25 start C:\Users\chris\Documents\GitHub\microdrop-3\packages\application
> node index.js

Launching Electron APP
Launching Models
module.js:538
    throw err;
    ^

Error: Cannot find module 'backbone'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\chris\Documents\GitHub\microdrop-3\Micropede\packages\client\src\client.js:4:18)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
module.js:538
    throw err;
    ^

Error: Cannot find module 'backbone'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\chris\Documents\GitHub\microdrop-3\Micropede\packages\client\src\client.js:4:18)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
module.js:538
    throw err;
    ^

Error: Cannot find module 'backbone'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\chris\Documents\GitHub\microdrop-3\Micropede\packages\client\src\client.js:4:18)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)

It looks like I was missing backbone as a dependency in @micropede/client . That might have been responsible for the issue earlier. Could you try again after pulling the latest commit (make sure to also pull the latest from the Micropede submodule ({root}/Micropede) .

Setup

Display console log window by setting show: true in BrowserWindow
constructor for mainWindow in microdrop-3/packages/application/app.js.
Under microdrop-3 root, run npm run start.

Observed behaviour
Javascript console log displayed errors indicating the following packages were missing
from Micropede\packages\broker:

ioredis
mongodb
msgpack-lite

For example:

Workaround

Under Micropede\packages\broker, run: npm install ioredis mongodb msgpack-lite
Under microdrop-3 root, run npm run start.

Fix (to do)
@Lucaszw is looking into a proper fix for this.

Appears to be due to old dependencies hoisted into the main repos and some redis and mongodb requirements in ascoltatori (fixed now via a pkg fork). Closing this issue.

authors: Lucaszw cfobel


text:
Inconsistências no link "Mostrar mais" das janelas dos periódicos

As janelas modais que aparecem ao clicar no título do periódico estão apresentando comportamentos inconsistentes.

Quando o periódico não é da Coleção SciELO Brasil, ao clicar no link "Mostrar Mais", está caindo na home da Coleção ao invés de cair na home do periódico. O parâmetro ISSN é informado na URL então deve abrir o periódico.

Ao clicar no título de um periódico não-Brasil e depois em um periódico Brasil, a janela mostra menos dados do que deveria. Ao fechar e clicar novamente no título do periódico Brasil, a janela volta a mostrar a quantidade certa de dados.

O problema 2 foi corrigido, mas o problema 1 persiste no primeiro clique.
Quando o periódico não é da Coleção SciELO Brasil, ao clicar no link "Mostrar Mais", está caindo na home da Coleção ao invés de cair na home do periódico.

@alexxxmendonca
Não estou mais conseguindo reproduzir o erro acessando o ambiente de homologação. Provei com diferentes navegadores e ao clicar o no link "Mostrar mais" esta redirecionando corretamente para a home do periódico.
Poderia tentar limpar completamente o cache do navegador e também verificar usando outros navegadores?
Obrigado

Testei em uma guia anônima e em outro navegador e deu certo.
Testei em outras duas máquinas diferentes e também deu certo.
Acho que era cache da minha máquina mesmo.

:+1:

authors: alexxxmendonca deandr

repo: scieloorg/search-journals


text:
Admin dialogue #121

Admin settings + IOP URL check connection

Move this PR here:
https://github.com/pondersource/nc-sciencemesh/pull/238

repo: sciencemesh/nc-sciencemesh


text:
MNT: Use '--skip-existing' over '--force'

Use anaconda-client upload command's --skip-existing flag over the --force flag to avoid redundant uploads, saving time, and to avoid uploading when legitimate errors exist. From anaconda upload --help:
...
--force: Force a package upload regardless of errors
--skip-existing: Skip errors on package batch upload if it already exists
...

I'm pretty sure IPython overwrite the same .dev0 as well, not because I want to, but because I never had the time to properly set it up to actually bump the dev version on nightly build and cleanup the setup.py (yet we still have a setup.py, I know, and yes I want to remove it).

Given https://github.com/Anaconda-Platform/anaconda-client/issues/655#issuecomment-1570392111 anaconda-client is uploading based off of name, so I'll have to think about if there is some cleaner way to do this. Putting this into draft for the time being, but maybe closing later if I can't think of something better.

I have no objections of having parameters, but at the same time I also do not want to make this a kitchen-sink utilities. At some point it should be ok to say "this is beyond the scope of this action, if you wish to have more control please use XXX". For example https://github.com/OpenAstronomy/publish-wheels-anaconda has more parameters and also take care of the removal.

authors: Carreau matthewfeickert

repo: scientific-python/upload-nightly-action


text:
scikit_build_core.errors.CMakeNotFoundError: Could not find CMake with version >= 3.12

`C:\Users\F2>cmake --version
cmake version 3.26.4-msvc4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
C:\Users\F2>where cmake
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe
C:\Users\F2>python -m pip install llama-cpp-python --force-reinstall --upgrade --no-build-isolation -v
Using pip 23.0.1 from C:\Python310\lib\site-packages\pip (python 3.10)
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting llama-cpp-python
Using cached llama_cpp_python-0.2.6.tar.gz (1.6 MB)
Running command Preparing metadata (pyproject.toml)
2023-09-17 22:51:22,033 - scikit_build_core - WARNING - Could not determine CMake version, got 'cmake version 3.26.4-msvc4\n\nCMake suite maintained and supported by Kitware (kitware.com/cmake).\n'
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "C:\Python310\lib\site-packages\scikit_build_core\build_init_.py", line 73, in prepare_metadata_for_build_wheel
return _build_wheel_impl(
File "C:\Python310\lib\site-packages\scikit_build_core\build\wheel.py", line 106, in _build_wheel_impl
cmake = CMake.default_search(minimum_version=settings.cmake.minimum_version)
File "C:\Python310\lib\site-packages\scikit_build_core\cmake.py", line 49, in default_search
raise CMakeNotFoundError(msg)
scikit_build_core.errors.CMakeNotFoundError: Could not find CMake with version >= 3.12
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'C:\Python310\python.exe' 'C:\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py' prepare_metadata_for_build_wheel 'C:\Temp\tmpxp4x5hqz'
cwd: C:\temp\pip-install-e3s9k50w\llama-cpp-python_170c3a56e66a46bbb21c22d5e92eeaf7
Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
C:\Users\F2>
`

Problem solved. I should use official cmake distribution, not packed with microsoft visual studio 2022 or  build tools 2022.

We should allow parsing 3.26.4-msvc4. It should work fine as 3.26.4. Should be easy to include.

authors: DaveScream henryiii

repo: scikit-build/scikit-build-core


text:
feat: json format output & a fix

Follow up to #46. Fixes a bug and adds output format option. Closes #41.

Okay, think that is working. The question is, what’s the best output format, dict of lists or dict of dicts (with the keys being the check ids).

repo: scikit-hep/repo-review


text:
[READY] DOC - add example of scikit-learn GridSearchCV

This verifies that we do support scikit-learn GridSearchCV and thereby adds an example to the documentation to illustrate that.

@Badr-MOUFAD thanks! the example name must start with plot_ otherwise it is not run (that's why there is a running time of 0s here: https://output.circle-artifacts.com/output/job/ce6fb6a7-a421-48ad-b1e3-554d3621231d/artifacts/0/dev/auto_examples/grid_search_cv.html#sphx-glr-auto-examples-grid-search-cv-py)
In addition can you add a plot inside the example, to make the example visual ? (and so that sphinx picks it up as a thumbnail)

authors: Badr-MOUFAD mathurinm

repo: scikit-learn-contrib/skglm


text:
Weka wrapper issue

Hello everyone,
I am trying to run the MEKA wrapper in my python code using skmultilearn. I am using the code in the paragraph 4.2 in http://scikit.ml/meka.html step by step. However, I got this error:
File "C:\Users\ferna\Anaconda3\lib\site-packages\skmultilearn\ext\meka.py", line 374, in parse_output
predictions = self.output.split(predictions_split_head)[1].split(
IndexError: list index out of range
I have tried the code in three different machines and keep staying. you can find it in the figure attached.

What is wrong?

Which version are you using?

Version 0.1.0 of sk multilearn
Version 1.9.2 of Weka

Hello, any news?

I can't reproduce this, the extact same code works (minus a different data path). But it seems you have some problem with your installation, as self.output has been renamed to self.output_ in scikit-multilearn 0.1.0. Could you retry with a clean installation of scikit-multilearn? Line 374 of ext/meka.py looks like this in 0.1.0:

        predictions = self.output_.split(predictions_split_head)[1].split(
            predictions_split_foot)[0].split('\n')[1:-1]

your error shows that you might have an old version (0.0.5) somewhere.

I tried reinstalling 0.1.0 and even with the new version 0.2.0 and the error is still there.
Maybe is about the java path? What command do you use in terminal to get the path?

Can you report the new error? Is can't be exactly the same given new versions have different code lines.

I had this error and in my case it was because I was using a dataset where the labels are the first columns rather than the last ones. So I was using the wrong columns for the labels.

I finally solved it. The proble was that I need to do pip install liac-arff instead of pip install arff. Thank you all

authors: FernandoSaez95 niedakh queirozfcom

repo: scikit-multilearn/scikit-multilearn


text:
Update the documentation

Update the documentation

Hello @EmmaRenauld, Thank you for updating !

In the file dwi_ml/models/projects/my_project.py:

Line 3:56: W292 no newline at end of file

In the file source/conf.py:

Line 23:1: E303 too many blank lines (3)
Line 33:2: W292 no newline at end of file


text:
doc: clarify SCMP reality vs. ambition

The SCMP "specification" document described support for SCMP as mandatory. Furthermore, it mandates the use of SPAO+DRKey authentication for SCMPs. This does not correspond to what is currently implemented. SCMP support has been treated as at least semi-optional e.g. in discussions around the dispatcher-less end host stack.
Regarding the authentication, there is no full implementation of this neither in router (support in "our" router is experimental/demo-level, no other router implementation supports it at all) nor in end hosts (currently, nothing at all). There is not sufficiently clear consensus around this to pretend that we'll realize this ambition shortly.
Update the documentation specs to reflect this reality. Move the SCMP authentication description into a design document.
Closes #4528

This change is

repo: scionproto/scion


text:
Extra function arguments to scipy.integrate.quad_vec

Hello, thanks for the work on scipy!
I was looking at the docs/source for scipy.integrate.quad_vec and I noticed that there isn't a provision to provide arguments for the callable function we wish to integrate. For the scipy.integrate.quadrature, we have the args argument that we can pass to the function for such a behaviour. Is there a way to do that with quad_vec?
Thanks!

Thanks for the suggestion. In the meantime, you can pass the parameters by using functools.partial for instance.

Ah thanks! I forgot about partial, for some reason. I'll do that for now. But it'll be great to have this feature built-in too in future!

@tupui I can send a PR to add this argument. Should be straightforward.

authors: AnirudhDagar chahak13 tupui

repo: scipy/scipy


text:
scipy.stats.ttest_ind_from_stats does not accept arrays

the use of float in the denominator prevents using arrays
Reproduce via:
In [158]: import scipy

In [159]: scipy.__version__
Out[159]: '0.16.1'

In [160]: from scipy.stats import ttest_ind_from_stats

In [161]: ttest_ind_from_stats(np.array([1., 2.]), np.array([.5, .3]), np.array([130, 140]), np.array([3., 4.]), np.array([.4, .5]), np.array([100, 150]))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-161-9db73ee48a1a> in <module>()
----> 1 ttest_ind_from_stats(np.array([1., 2.]), np.array([.5, .3]), np.array([130, 140]), np.array([3., 4.]), np.array([.4, .5]), np.array([100, 150]))

/Library/Python/2.7/site-packages/scipy/stats/stats.pyc in ttest_ind_from_stats(mean1, std1, nobs1, mean2, std2, nobs2, equal_var)
   3465     """
   3466     if equal_var:
-> 3467         df, denom = _equal_var_ttest_denom(std1**2, nobs1, std2**2, nobs2)
   3468     else:
   3469         df, denom = _unequal_var_ttest_denom(std1**2, nobs1,

/Library/Python/2.7/site-packages/scipy/stats/stats.pyc in _equal_var_ttest_denom(v1, n1, v2, n2)
   3406 def _equal_var_ttest_denom(v1, n1, v2, n2):
   3407     df = n1 + n2 - 2
-> 3408     svar = ((n1 - 1) * v1 + (n2 - 1) * v2) / float(df)
   3409     denom = np.sqrt(svar * (1.0 / n1 + 1.0 / n2))
   3410     return df, denom

TypeError: only length-1 arrays can be converted to Python scalars

Indeed a bug. Should be easy to fix by changing df = n1 + n2 - 2 to df = n1 + n2 - 2.0 for example.

authors: danfrankj rgommers


text:
Allow user-provided LU solver for radau and bdf solvers

The new ivp solvers in integrate look wonderful. However, it seems that the bottleneck of implicit methods would be the LU decomposition, that currently uses SPLU provided via scipy. In our experience, other sparse solvers, notably MUMPS may significantly faster (easily 2x). Therefore it might be advantageous to allow the user to provide pluggable LU solver.
Pinging @nmayorov as the author of the new ODE solvers.

Hey, Anton! Glad you liked it.
It sounds reasonable, I suppose it can be designed as additional argument lu=None which must have two methods factor and solve. But are you sure it is worth it to farther extend already long list of options for 2-x speed improvement? For example, using MUMPS --- can you call it from Python easily, how often it will be used? I mean scipy is not really for high performance computing (in my opinion), so maybe it's not worth it to consider such improvements, if they won't be used often.
If you think it is indeed an important improvement (and want to use it yourself perhaps), then send a pull request (it shouldn't take much time), then we'll ask someone else. I'm neutral on that.
Also please do report any issues or ideas for new solvers.

authors: akhmerov nmayorov


text:
DOC: updated reference guide text for consistency in writing style

punctuation, minor stylistic issues

Reference issue

What does this implement/fix?

Additional information

General question: are we writing down the style rules anywhere? Otherwise people are likely to forget things like "section headings should be lower case".

I guess we could add a CI check for some of these things, but that might drive people crazy.

Yes, @person142, I'm writing down the 'consistency rules' for future maintenance. As for the CI check, it'd sure be useful but, as you point out, might be annoying. Once I've corrected the docs, I'll relay this question to others in my summary.

@mkg33 so far you've just updated the tutorial and governance/CoC docs, but I thought it'd be good to point out that @brandondavid is working on similar fixed for the stats reference guide specifically in gh-10863. Would be good to make sure you don't do the same files twice.

@rgommers good thinking! Thanks for pointing this out. I've revised 15 more files but decided against pushing them because I still haven't solved the issue with the previous commits. I've gone through the complete CI check report but still haven't managed to pinpoint the issue. I've paid attention to all backticks, inserting a hyperlink properly, etc. Do you have any idea what could have gone wrong? Sorry for bothering you with this but I can't find the problem myself.

This is one of the problems with Sphinx, it's hopelessly bad at telling you what the problem may be. I'll try to help later today and if I find the problem, share how I went about debugging it. From the CI build log it's indeed not clear.

@rgommers thanks a lot. I mean, I hate to bother you with it because I caused this mess but I can't proceed with the commits, so it's probably the right time to ask for help :-) I've already wasted a bit of time on analysing the log several times...

The HTML seems to complete fine:
...
dumping object inventory... done
build succeeded.

The HTML pages are in build/html-scipyorg.

But the Latex build complains:
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
Makefile:32: recipe for target 'scipy-ref.pdf' failed
make: *** [scipy-ref.pdf] Error 12
make: Leaving directory '/home/circleci/repo/doc/build/latex'
Exited with code 2

So the problem is in pdflatex returning 256. It's probably from this:
./scipy-ref.tex:26660: Missing delimiter (. inserted).
<to be read again>

So some ref got messed up in scipy-ref.tex. Unfortunately we don't store doc/build/latex as a CircleCI artifact, so I ran the build locally. For me this succeeded but landed on the Wiener filter line:
    y=\left\{ \begin{array}{cc} \frac{\sigma^{2}}{\sigma_{x}^{2}}m_{x}+\left(1-\frac{\sigma^{2}}{\sigma_{x}^{2}}\right)x & \sigma_{x}^{2}\geq\sigma^{2},\\ m_{x} & \sigma_{x}^{2}<\sigma^{2},\end{array}\right,

I would undo this change and see if it fixes things. It already seems to render okay on 1.3.0 at least:
https://docs.scipy.org/doc/scipy/reference/tutorial/signal.html#wiener-filter

Something is off in the CircleCI log for commit 663c2b4 (the last commit). Unfortunately it cuts off the top lines, but downloading the log the first few lines are
Building, see build.log...
    ... build in progress (0:01:00.165203 elapsed)
    ... build in progress (0:02:00.232684 elapsed)
Build OK (0:02:03.736803 elapsed)
make: Entering directory '/home/circleci/repo/doc'
mkdir -p build/html build/doctrees
LANG=C "/home/circleci/repo/venv/bin/python" -msphinx -WT --keep-going -t scipyorg -b html -d build/doctrees  "-j2" source build/html-scipyorg
Running Sphinx v2.2.0
SciPy (VERSION 1.4.0.dev0+257958d)
making output directory... done
[autosummary] ....

Shouldn't that be the SciPy version under build, which would be the current commit?

@mkg33 I'm not too sure if having style checks in the CI will work too well. I've been using GNU Style & Diction along with (codespell)[https://github.com/codespell-project/codespell] in a githook. It works with a human to check the mistakes but I'm not sure how well it transfers to CI.

@larsoner thanks for looking into this; I'll make the change you suggested and we'll see how it turns out. @Kai-Striega I suppose we should avoid the style checks, totally agree. So far, I've noticed that most documentation doesn't suffer from poor grammar / explanations. The only issues are very rare typos and sticking to conventions (plus proper punctuation).

All right, build_docs is green and the one failure is a CI timeout. Merging. Thanks @mkg33!

Thanks, @rgommers! I was just about to come back to this issue (tomorrow) and now the problem has solved itself :-)

No worries. I thought it'd be good to get this in, since PRs like these tend to accumulate merge conflicts.

authors: Kai-Striega larsoner mattip mkg33 person142 rgommers


text:
BUG: stats.unuran: fix support for old compilers

Reference issue
What does this implement/fix?
try to address failers pointed out in #14631. I have tried to remove definitions that enabled the use of C99/C95 functions. TBD if we want to merge this or gh-14631
Additional information

I have tried to remove definitions that enabled the use of C99/C95 functions.

You can use C99 functionality. It just needs an explicit flag for older compilers (in particular gcc 4.x, which we anyway should drop soon). You can do this via:
from scipy._build_utils.compiler_helper import set_c_flags_hook

(see scipy/special/setup.py for an example).

Yes, echoing Ralph here -- I recall making a similar fix for one of the HiGHS libraries in gh-13089

Yes, echoing Ralph here -- I recall making a similar fix for one of the HiGHS libraries in gh-13089

I already do that in the pre-build hook. Looking at the build logs, it seems like the -std=c99 flag is never added. Not sure why is that the case.

See https://github.com/scipy/scipy/pull/14631/files for the correct fix

Closing this in favor of #14631. Please feel free to add your reviews on #14631, thanks!

authors: isuruf mckib2 rgommers tirthasheshpatel


text:
TST: sparse.linalg: Loosen tolerance for the lobpcg test 'test_tolerance_float32'

This test has been failing occasionally in CI, with errors slightly greater than
the requested tolerances.
For example, in both https://github.com/scipy/scipy/pull/16754 and https://github.com/scipy/scipy/pull/16680, the failure report is
____________________________ test_tolerance_float32 ____________________________
[gw0] linux -- Python 3.9.13 /opt/hostedtoolcache/Python/3.9.13/x64/bin/python
/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:355: in test_tolerance_float32
    assert_allclose(eigvals, -np.arange(1, 1 + m), atol=1.5e-5)
E   AssertionError:
E   Not equal to tolerance rtol=1e-07, atol=1.5e-05
E
E   Mismatched elements: 1 / 3 (33.3%)
E   Max absolute difference: 1.62124634e-05
E   Max relative difference: 5.40415446e-06
E    x: array([-1.      , -1.999997, -3.000016], dtype=float32)
E    y: array([-1, -2, -3])

The tolerances have been bumped before, in https://github.com/scipy/scipy/pull/15271.  I think we're still working out just how accurate we can expect the function to be when the inputs are float32.

The refguide check failure is unrelated, and it was just fixed in https://github.com/scipy/scipy/pull/16754.


text:
fix static linking of blas/lapack with openblas

This PR fixes problem of https://github.com/scisoft/autocmake/pull/96#issue-103926105  which I detected on my SciLinux cluster.
Tests on this cluster are OK:
milias@login.grid.umb.sk:~/Work/qch/software/software_projects/autocmake_devel/autocmake_miroi/.py.test -vv test/test.py
============================================================================== test session starts ===============================================================================
platform linux2 -- Python 2.6.6 -- py-1.4.28 -- pytest-2.7.1 -- /usr/bin/python
rootdir: /home/milias/Work/qch/software/software_projects/autocmake_devel/autocmake_miroi/test, inifile:
collected 19 items

test/test.py::test_cxx_custom PASSED
test/test.py::test_extra_cmake_options PASSED
test/test.py::test_cxx PASSED
test/test.py::test_cxx_static PASSED
test/test.py::test_fc PASSED
test/test.py::test_fc_git_info PASSED
test/test.py::test_fc_int64 PASSED
test/test.py::test_fc_mpi_module PASSED
test/test.py::test_fc_mpi_include PASSED
test/test.py::test_fc_omp PASSED
test/test.py::test_fc_static PASSED
test/test.py::test_fc_blas PASSED
test/test.py::test_fc_blas_static PASSED
test/test.py::test_fc_lapack PASSED
test/test.py::test_fc_lapack_static PASSED
test/test.py::test_python_interpreter PASSED
test/test.py::test_python_interpreter_custom PASSED
test/test.py::test_python_libs PASSED
test/test.py::test_python_libs_custom PASSED

=========================================================================== 19 passed in 86.91 seconds ===========================================================================
milias@login.grid.umb.sk:~/Work/qch/software/software_projects/autocmake_devel/autocmake_miroi/.

Thanks!

authors: bast miroi

repo: scisoft/autocmake


text:
Analyses collection

Closes #808
Important notes:

added db upgrade and indexes
AnalysisStorage is now subclassing ContainerStorage
AnalysisHandler is a custom handler (not a ListHandler anymore)
analysis notes are handled via NotesListHandler
analysis files are still handled via the custom method (partly redundant w/ FileListHandler - separating the logic would take some time)
changed DELETE analysis output schema! {modified: 1} -> {deleted: 1}
analyses are not persisted if job=true and job couldn't be created #775
abao revealed that analyses used to be on "GET /{Container}" - it is my understanding they shouldn't be, and now there are not even analysis _id's (no analyses attr whatsoever) upon container get_all
moving AnalysisStorage into containerstorage.py introduced an import cycle (gear validation), which is currently "resolved" w/ delayed imports in AnalysisStorage methods
huge diff, sorry for any merge inconvenience later...

Review Checklist

Tests were added to cover all code changes
Documentation was added / updated
Code and tests follow standards in CONTRIBUTING.md

@ambrussimon-invenshure looks good! I gave it once-over, but I'll probably be back tomorrow to look over it again. Still thinking about that circular reference problem ..

Also I'd like @hkethi002 to take a look at this when he gets a chance as well.

@nagem thanks for catching those, updated PR accordingly! (The only one left is the ugly late import.)

All the changes look good 👍.
We'll have to hold off on merging until our search infra moves over to the new analysis location in mongo.

@nagem merged master into feature, resolved conflicts and made sure everything clicks. In the process I found the flaky time-dependent test reared it's head again, PR'd that separately (that's why there's a CI failure on this branch.)

authors: ambrussimon-invenshure nagem

repo: scitran/core


text:
Fix implementation of unstable tests

A whole application can be unstable (like pipenv-test-app) not a specific test case (like test_application).
Cc: @zmiklank

Oh, from all the conversations and the naming of variables I understood, that it is the tests, which can be unstable, not apps, sorry. As I look again at your PR now, I see, that I must have overlooked that.
However, as my point of view on this topic changed now a lot, I begin to think, if it was not useful to implement the unstable apps and the unstable tests too.
This should be technically easy, as the apps are never named the same as the tests.
It could look something like this:
if [[ " ${UNSTABLE_TESTS[*]} " =~ " ${test_case} " ]] ||  [[ " ${UNSTABLE_TESTS[*]} " =~ " ${app_name} " ]] then

However, I am not sure if this use case is needed or if it is important. Maybe this could be added just after some container would need that.
WDYT?

My point of view might be biased because I know all the details only from the Python container but I think ignoring the results of unstable tests is needed only for applications, not for specific tests of that application.
If any external influence might impact a test, I want to mark the whole app as unstable because it does not matter which test I run on top of the application.
Correct me, if I'm wrong but this was my initial intention.

@frenzymadness But what about if UNSTABLE_TESTS is not defined: https://github.com/sclorg/s2i-nodejs-container/pull/337#issuecomment-1147171019

[test-all]

I have also proposed to let the user know, that the test result was ignored because of an unstable test.
Retest:
[test-all]

@zmiklank @frenzymadness Please rebase on the top of master.

From my point of view, it LGTM. especially tag [FAILED][UNSTABLE-IGNORED]

I think the tag does not work as expected. See my inline comment.

This issue blogs https://github.com/sclorg/mariadb-container/pull/178#issuecomment-1148287702

From my point of view, it LGTM. especially tag [FAILED][UNSTABLE-IGNORED]

I think the tag does not work as expected. See my inline comment.

I see, it should be [PASSED][UNSTABLE-IGNORED]

@frenzymadness Sorry, I am lost with this issue. What should be the real outcome?
If the test is unstable what should be a tag in the results [FAILED] or [PASSED]. Definitely tests suit should not failed with 1 but 0

@frenzymadness Sorry, I am lost with this issue. What should be the real outcome?
If the test is unstable what should be a tag in the results [FAILED] or [PASSED]. Definitely tests suit should not failed with 1 but 0

The new tag [UNSTABLE-IGNORED] should be there only if the result is really ignored but now it's there even if the result is not ignored and testsuite fails. I'm gonna fix that and send a commit here.

I see that @zmiklank already changed that. Thank you. Let me test it.

[test]

When I have pipenv-test-app (intentionally broken for the testing purposes) in the list of unstable tests and I do not specify IGNORE_UNSTABLE_TESTS, the result is:
…
 [FAILED] for 'pipenv-test-app' test_application (00:00:37)
 [FAILED] for 'pipenv-test-app' test_application_with_user (00:00:37)
 [FAILED] for 'pipenv-test-app' test_application_enable_init_wrapper (00:00:37)
…
Tests for quay.io/fedora/python3-39:0 failed.

And the exit code is 0. <-- this does not seem to be correct but it's probably fixed by https://github.com/sclorg/container-common-scripts/commit/b0bd592ffa3ee5da92296ea8c197aaba644c8468
When I specify IGNORE_UNSTABLE_TESTS=1 on the command line like IGNORE_UNSTABLE_TESTS=1 make test TARGET=fedora VERSIONS=3.9, the result is:
 [FAILED][UNSTABLE-IGNORED] for 'pipenv-test-app' test_application (00:00:37)
 [FAILED][UNSTABLE-IGNORED] for 'pipenv-test-app' test_application_with_user (00:00:38)
 [FAILED][UNSTABLE-IGNORED] for 'pipenv-test-app' test_application_enable_init_wrapper (00:00:38)
…
Tests for quay.io/fedora/python3-39:0 failed.

And the exit code is 0 which is fine.
I'm gonna rebase this branch to the top of the master branch and do another round of testing. Stay tuned.

After a call with @phracek and @zmiklank we have realized that the exit code is a bug we have to fix and we're gonna do it here.

I can confirm that it works now. I've tested all four combinations of the two new variables.

@phracek wanna do the final check?
Also, don't forget to squash all the commits to one when merging.

@frenzymadness great. I have squashed the commits into two commits, as the testsuite result fix has a little common with unstable tests.

And @frenzymadness, thank you for the thorough review :)

authors: frenzymadness phracek zmiklank

repo: sclorg/container-common-scripts


text:
Unable to register images for plug-in steps for bulk messages (CreateMultiple/UpdateMultiple)

An exception is generated when attempting to sparkle a plug-in containing an image that has been configured for a bulk message, i.e. CreateMultiple or UpdateMultiple.
The exception is: 'Message property name 'Target' is not valid on message UpdateMultiple.'

On investigation I've found that the issue exists within the RegisterImage method of the PluginRegistration.cs.
`
switch (stepAttribute.Message)
{
case "Create":
image.MessagePropertyName = "Id";
break;
            case "SetState":
            case "SetStateDynamicEntity":
                image.MessagePropertyName = "EntityMoniker";
                break;

            case "Send":
            case "DeliverIncoming":
            case "DeliverPromote":
                image.MessagePropertyName = "EmailId";
                break;

            default:
                image.MessagePropertyName = "Target";
                break;
        }

`
Making the following change to the switch statement would appear to fix the issue:
default:                     image.MessagePropertyName = (stepAttribute.Message.ToLower() == "createmultiple" || stepAttribute.Message.ToLower() == "updatemultiple") ? "Targets" : "Target";                     break;

Discovered that CreateMultiple requires the property name of Ids rather than target

repo: scottdurow/SparkleXrm


text:
Not showing any key press changes in ui

Not showing any key press changes in ui of key-mon . Tried 3-4 times and on different applications after fixing issues of SafeConfigParser and replacing it with ConfigParser. I installed using arch repo in my arch linux which is running hyprland (wayland compositor) .

Unable to reproduce here, I'll try this weekend at home.

repo: scottkirkwood/key-mon


text:
Timestamp in milliseconds with minus (-) - parsing failes/returns None

Hi,
Version:
dateparser==0.7.1
parsing a timestamp in milliseconds with an minus in front of it, returns None.
Example:

dateparser.parse("-186454800000")
None

The correct date would be:
Feb 03 1964 23:00:00
If I remove the minus or pass any other positive timestamp in milliseconds, everything works as expected, so it´s definetly the minus.
I obviously can´t remove it, because it will return a wrong datetime value.
Converter for timestamp in milliseconds:
https://currentmillis.com/
Thanks and best regards

It would be really nice to add support for negative timestamps, but we should handle some side effects.
For example, the timestamps for:  1969-12-31 23:59:59 is -1 (and in milliseconds is:  -1000). Obviously, this would raise a lot of false positives every time we find a negative number. However, we could create a separate, optional, parser called negative-timestamp and allow users to activate it if they need it. We could mention it in the docs near the timestamp parser.

I believe what @noviluni describes is to make a separate parser just to support negative numbers, and not make it a part of the default value of the PARSERS setting. Instead, we document the existence of the parser, so that users may add it to their PARSERS setting if they so wish.

authors: Gallaecio Salfiii noviluni

repo: scrapinghub/dateparser


text:
Configure bumpversion

Running bumpversion --dry-run --verbose patch with bumpversion installed after these changes seems to describe the right list of changes to apply.

Thanks for a careful PR!

authors: Gallaecio kmike

repo: scrapinghub/splash


text:
Check: integration tests are busted?

This isn't meant to be merged, but to run the integration tests in a specific way to verify whether an error exists.

238516f652467ebb2738f7cb02052723d5d8a179 / https://github.com/scroll-tech/ceno/pull/692 seems to be the first bad commit that fails with:
$ RUST_BACKTRACE=1 cargo run --package ceno_zkvm --example riscv_opcodes -- --start 10 --end 11
    Finished `dev` profile [optimized + debuginfo] target(s) in 0.05s
     Running `target/debug/examples/riscv_opcodes --start 10 --end 11`
thread 'main' panicked at ff_ext/src/lib.rs:53:13:
assertion `left == right` failed
  left: 8
 right: 2
stack backtrace:
   0: rust_begin_unwind
             at /rustc/c94848c046d29f9a80c09aae758e27e418a289f2/library/std/src/panicking.rs:681:5
   1: core::panicking::panic_fmt
             at /rustc/c94848c046d29f9a80c09aae758e27e418a289f2/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /rustc/c94848c046d29f9a80c09aae758e27e418a289f2/library/core/src/panicking.rs:364:5
   4: ff_ext::impl_goldilocks::<impl ff_ext::ExtensionField for goldilocks::structs::GoldilocksExt2>::from_bases
             at ./ff_ext/src/lib.rs:53:13
   5: <transcript::basic::BasicTranscript<E> as transcript::Transcript<E>>::read_challenge
             at ./transcript/src/basic.rs:35:17
   6: ceno_zkvm::scheme::prover::ZKVMProver<E,PCS>::create_proof
             at ./ceno_zkvm/src/scheme/prover.rs:125:13
   7: riscv_opcodes::main
             at ./ceno_zkvm/examples/riscv_opcodes.rs:304:30
   8: core::ops::function::FnOnce::call_once
             at /home/matthias/.rustup/toolchains/nightly-2024-12-06-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

repo: scroll-tech/ceno


text:
Error detected while processing function nerdtree#ui_glue#invokeKeyMap

Getting error on opening project with nerdtree
Error detected while processing function 225..205..211:
line    2:
E605: Exception not caught: NERDTree.TreeNotOpen
Error detected while processing function nerdtree#ui_glue#invokeKeyMap..73..72..<SNR>40_activateFileNode..101..118..168..169:
line    8:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap..73..72..<SNR>40_activateFileNode..101..118..168:
line    4:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap..73..72:
line    3:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap..73:
line   18:
E171: Missing :endif
Press ENTER or type command to continue

Ubuntu 15.04,
vim 7.4+
.virmrc

On Ubuntu 14.04 everything worked well. Thanks.

I've did git hard reset to revion
commit 1cbd52aa77541682658f4c8a6d217c77a78c3879
Merge: cd5f168 f6cad7e
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Fri May 1 14:13:13 2015 +0100

    Merge pull request #434 from handcraftedbits/master

    Use different arrow characters for compatibility.

now it works well, wait for fix :smile:

wait for fix too!

Hey guys, this should be fixed now. Let me know if there any more problems :)

ty, fixed!

I got the same errors on MAC

authors: BruceChen7 itsNikolay lisiur scrooloose

repo: scrooloose/nerdtree

license: WTFPL


text:
Force sort to recalculate the cached sortKey.

Fixes #880.
The problem in issue #880 was caused by the sort using the old sortKey.
For example, given nodes A, B, and C, if B were renamed to D, the sort
was still using B as its sortKey, thus not moving it.
It's a bit of a hack, but if we set g:NERDTreeOldSortOrder to an empty
list, the cached sortKey will be recalculated. I did the same thing for
both the Copy and Add functions as well.

The most logical place to DRY this code up is to put let g:NERDTreeOldSortOrder = [] in the b:NERDTree.root.refresh() function before sorting, but we would run into the same performance issue you noticed in #856. Question is: How often will refresh be called in the real world?

Question is: How often will refresh be called in the real world?

I wonder this myself.  I use it all the time... but it's mainly when I'm testing NERDTree code!
In light of your observation, I say merge it.  The fs_menu.vim code needs some refactoring later, anyway.  A comment may help clarify things, but I'm otherwise okay with everything you've got here.

authors: PhilRunninger lifecrisis


text:
How to get it to work with a wrapper component while being reactive?

I'm trying to create a reusable wrapper component with 'tiptap' passing props with: content etc.
However I can't get it to to work seamlessly while being reactive. Is there anyway to use clearContent() and setContent without losing the text focus position?
Setting focus causes it to start at index 0. Is there a way to set focus where the user was typing?
export default {
  ...
  props: {
    content:  {
      type: String,
      default: '',
  },
  data() {
    localHtml: '',
    return {
      editor: new Editor({
        content: this.content,
        onUpdate: ({ getHTML }) => {
          this.contentHtml = getHTML();
          this.$emit('input', this.localHtml);
        },
      }),
    };
  },
  watch: {
    content: {
      immediate: true,
      handler(val) {
        if (this.content && this.editor) {
          this.editor.clearContent();
          this.editor.setContent(this.content);
          this.$nextTick(() => {
            this.editor.focus();
          });
        }
      },
    },
  },
  ...
}

Is there any method to get the current position of the cursor? If I want, for example, to insert anything after the current cursor position, I need to know, where to place it.

Thanks, I had the same problem, I implemented a solution similar to the @exnihilo-creatio worked very well for me, I will explain how I did to help future friends, when I instantiated my editor and set the initial value whenever a dialog is opened In my application, it happened that the cursor was only at the beginning, and implementing the following routine worked for me. The cursor went to the end.
setConfigEditor({ content, editable, extensions }) {
      if(typeof this.editorProps == 'object') {
        this.editorProps.destroy();
      }
      const editor = new Editor({
        extensions: [
          ...extensions,
          new Heading({ levels: [1, 2, 3] }),
          new BulletList(),
          new ListItem(),
          new TodoItem(),
          new TodoList(),
          new Bold(),
          new Italic(),
        ],
        onUpdate:(args) => {
          this.product.details= args.getHTML();
        },
        content,
        editable
      });

      this.$nextTick(() => {
        editor.setContent(content);
      }, 3000);

      return editor;
    }

I had to put my editor content twice, when instantiated and after intended to reposition the cursor, clearly there is a better way to declare this construct, but so far we're fine.
tiptap 1.25.0
tiptap extensions 1.27.0
vue 2.6.10

authors: crosskpixel dark-red haexhub

repo: scrumpy/tiptap


text:
How to use in combination with baseHref on external url?

🧩 Feature request
Description
Hey guys,
I was testing scully and encountered an issue that when you define baseHref in angular.json to an external URL such as:
 "configurations": {
            "production": {
              "outputPath": "dist/prod",
              "baseHref": "https://cdn.com/app/",
              "optimization": true,
              "outputHashing": "all",
              ...

the generated html files are pretty much empty, which makes sense because the files are not yet uploaded to external source and requests to files fail with 404. The external source in this case is CDN where the final build is pushed.
Is there a way to let scully use "local" base href to generate html files, but use external baseHref in final output build so that it can then be deployed to external destination?

Same with all custom baseHref's which are different than the default "/". It a baseHref is set, the prerendered html files are empty within the  part. Same things happen when you use the angular i18n tools and build your project with the --localize flag, then angular automatically sets the baseHref to "/de/" or "/en/" automatically because angular builds a separate project for each language into a subfolder...
I thing this is definitely a bug, because setting the baseHref is a default feature of angular but scully is not yet using the baseHref

@dyingangel666 Setting the base-href is a feature of Angular-CLI. Angular itself does actually nothing.
I'm currently working on a plugin that allows you to rewrite the base-href. That will be configurable, and even different for routes. Ihope this will be available this week.

authors: Enngage SanderElias dyingangel666

repo: scullyio/scully


text:
No matching definition for argument type

Hi,
When I run sq.gr.nhood_enrichment(sdata["table"], n_jobs=10, cluster_key='id'), the following error occurred:
No matching definition for argument type(s) readonly array(uint32, 1d, C), array(uint32, 1d, C), array(uint32, 1d, C)
  File "/home/wangjw/data/work/spatial/pipeline.smk", line 317, in __rule_spatial_graph
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/squidpy/gr/_nhood.py", line 186, in nhood_enrichment
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/squidpy/_utils.py", line 171, in wrapper
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 1952, in __call__
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 1595, in _get_outputs
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 1699, in _retrieve
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 1734, in _raise_error_fast
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 736, in get_result
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 754, in _return_or_raise
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/concurrent/futures/thread.py", line 58, in run
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
^CException ignored in: <module 'threading' from '/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/threading.py'>
Traceback (most recent call last):

Is it relate to the parameters numba_parallel and backend ?

I'm experiencing the same issue!

Setting n_jobs=1 can avoid the bug.

can you post the whole traceback?

authors: giovp p-lombard wangjiawen2013

repo: scverse/squidpy


text:
Generate key in PKCS#8 format instead of PKCS#1

Due to language constraints java driver desperately needs the key to be in PKCS#8 format.
I'm not fully aware if this change would break any other tool.

Only too tests in the python-driver are using this code, I'll check them tomorrow, and if it works I'll merge.
If not, we'll see how we parameterize it, or create multiple keys.

@Bouncheck tested, and it's works o.k. for the scylla-driver test.

authors: Bouncheck fruch

repo: scylladb/scylla-ccm


text:
Keycloak reporting error when first time connecting to MySQL

I'm running blueprint on MacOS High Sierra. All dependencies have been provided, but when running "sudo ./run.sh" it gave errors like this:

keycloak-server_1             | Caused by: java.sql.SQLException: Access denied for user 'keycloak'@'172.18.0.5' (using password: YES)

I could see the MicroShop page when pointing to localhost:8787, but the keycloak auth didn't show up.
Any idea why this happens, and whether it has anything to do with keycloak/mysql misconnection?

Hi Please note that I have the same problem.

authors: Toomy minosniu


text:
文本检测问题：用PaddleOcr训练的检测模型，在PaddleSharp中效果不好

大佬，帮忙看看什么问题？
第一张是在paddlesharp运行的结果
paddlesharp没有做任何修改
第二张是在paddleocr运行的结果
paddleocr中有修改source code，注释了一下两行code：
'limit_side_len': args.det_limit_side_len,
'limit_type': args.det_limit_type,

需要更多信息。

#57

authors: eyesyang n0099 sdcb

repo: sdcb/PaddleSharp


text:
Source for 3.9.3

See #18 for details

See #18  for comment

Statistics Canada. Table 13-10-0156-01 Deaths, by cause, Chapter XX: External causes of morbidity and mortality (V01 to Y89)
DOI: https://doi.org/10.25318/1310015601-eng
Unintentional Poisonings = X40, X43, X46-X48, X49
Source: https://www.who.int/docs/default-source/gho-documents/global-health-estimates/ghe2019_cod_methods.pdf
July 1st pop to get rate per 100,000


text:
add all soapy drivers to soapyrtlsdr

Would probably be better to add all the various soapy drivers when soapy is installed in soapyrtlsdr and change containers compatible with soapy to use soapyrtlsdr as the baseimage in their Dockerfiles.
https://github.com/sdr-enthusiasts/docker-dumphfdl/blob/main/Dockerfile
https://github.com/sdr-enthusiasts/docker-rtlsdrairband/blob/main/Dockerfile
https://github.com/sdr-enthusiasts/docker-dumpvdl2/blob/main/Dockerfile
https://github.com/sdr-enthusiasts/docker-acarsdec/blob/main/Dockerfile

Besides the listed containers, do we have any others that rely on soapy? dump978? Any of the readsb containers? I think the answer is no but I want to be sure.

I did a quick look when I posted this but will do another tomorrow.
Semi related thought about sdrplays based on discord discussions - since the V3 driver does the weird api service thing that doesn't seem to be shareable between containers, should the base image just come with libmiri and sdrplay v2? Not exactly sure of meaningful differences between v2 and v3. Still feeling out libmiri, but it seems mostly usable.

dump978 base image uses the soapy baseimage.
would be easy enough to decouple though if we don't want all the baggage.
piaware builds on top of dump978 and installs various drivers so there could be conflicts there.

Considering it's called soapyrtlsdr ... maybe just make new base image called soapy that includes all the drivers?

authors: fredclausen rpatel3001 wiedehopf

repo: sdr-enthusiasts/docker-baseimage


text:
selected language in snippet panel is hard to see

Open user snippet config, and use array key to navigate. You can see that the default theme is easy to identify current selected item.

Oh good call! Thanks for reporting this, I'll try to fix soon.

@xiaoyu-tamu seems like duplicate of https://github.com/sdras/night-owl-vscode-theme/issues/139?

@svipben yeah. closing it.

authors: sdras svipben xiaoyu-tamu

repo: sdras/night-owl-vscode-theme


text:
[CLI] Hide backend logs on error

Version: main
UI: dev-1497e86
Commit ID: 7346fa3e2f32c2e7a19d3454f50e7842a11cfe1b
Env: AWS EC2 Ubuntu 22.04 amd64
The CLI command currently prints too many backend logs when an error occurs.
root@ip-192-168-1-101:~/.seal# seal -v
seal version main (7346fa3e2f32c2e7a19d3454f50e7842a11cfe1b)

root@ip-192-168-1-101:~/.seal# seal config setup --project-name pro2
2023-08-04T09:33:25.386Z	D	Error Stack: goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x65
main.Run.func1()
	github.com/seal-io/seal/cmd/cli/main.go:32 +0x46
panic({0x962c60, 0xc0001c7180})
	runtime/panic.go:884 +0x212
main.NewConfigCmd.func2(0xc0001c5200?, {0x9f9d5f?, 0x2?, 0x2?})
	github.com/seal-io/seal/cmd/cli/command.go:108 +0x127
github.com/spf13/cobra.(*Command).execute(0xc0001c5200, {0xc000035040, 0x2, 0x2})
	github.com/spf13/cobra@v1.7.0/command.go:944 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001c4c00)
	github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/cobra@v1.7.0/command.go:992
main.Run()
	github.com/seal-io/seal/cmd/cli/main.go:55 +0xee
main.main()
	github.com/seal-io/seal/cmd/cli/main.go:23 +0x77

error while execute: endpoint is required

root@ip-192-168-1-101:~/.seal# seal config setup -s https://xxx --project-name pro2 --token xxx
2023-08-04T09:35:39.481Z	D	Error Stack: goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x65
main.Run.func1()
	github.com/seal-io/seal/cmd/cli/main.go:32 +0x46
panic({0x98fa60, 0xc00036ac30})
	runtime/panic.go:884 +0x212
main.NewConfigCmd.func2(0xc0001c5200?, {0x9f9d5f?, 0x6?, 0x6?})
	github.com/seal-io/seal/cmd/cli/command.go:108 +0x127
github.com/spf13/cobra.(*Command).execute(0xc0001c5200, {0xc000068d80, 0x6, 0x6})
	github.com/spf13/cobra@v1.7.0/command.go:944 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001c4c00)
	github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/cobra@v1.7.0/command.go:992
main.Run()
	github.com/seal-io/seal/cmd/cli/main.go:55 +0xee
main.main()
	github.com/seal-io/seal/cmd/cli/main.go:23 +0x77

error while execute: Get "https://xxx/v1/projects?query=pro2": x509: certificate signed by unknown authority

Expected Results:
root@ip-192-168-1-101:~/.seal# seal config setup --project-name pro2
error while execute: endpoint is required

root@ip-192-168-1-101:~/.seal# seal config setup -s https://xxx --project-name pro2 --token xxx
error while execute: Get "https://xxx/v1/projects?query=pro2": x509: certificate signed by unknown authority

Environment

Walrus version:  main 2314b9d4571c3b6b341dee7ed630a5ffc5793dfe
UI version: dev-0835269

Result
When enter 'Ctrl+C' to interrupt command, it also returns the backend logs.
 ~/.walrus/ wa config setup
? Server:  https://192.168.50.182:4433
? Token:  ***********************************************************************************************************************************
? Insecure:  No
? Project:  (default)
2023-08-22T15:33:22.187+0800	D	Error Stack: goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x64
main.Run.func1()
	github.com/seal-io/walrus/cmd/cli/main.go:32 +0x3c
panic({0x100b24880, 0x14000110d60})
	runtime/panic.go:884 +0x204
main.NewConfigCmd.func2(0x140001fd200?, {0x1009d2c10?, 0x0?, 0x0?})
	github.com/seal-io/walrus/cmd/cli/command.go:101 +0x114
github.com/spf13/cobra.(*Command).execute(0x140001fd200, {0x100f94048, 0x0, 0x0})
	github.com/spf13/cobra@v1.7.0/command.go:944 +0x5b0
github.com/spf13/cobra.(*Command).ExecuteC(0x140001fcc00)
	github.com/spf13/cobra@v1.7.0/command.go:1068 +0x35c
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/cobra@v1.7.0/command.go:992
main.Run()
	github.com/seal-io/walrus/cmd/cli/main.go:55 +0x100
main.main()
	github.com/seal-io/walrus/cmd/cli/main.go:23 +0x70

interrupt

Environment

Walrus version: v0.4.0-rc2 af772a7ae049670658fdb2d2249cfde51277db8e
UI version: v0.4.0-rc2

Test Result: pass
./cli config setup
? Server:  https://192.168.50.78:443
? Token:  ***********************************************************************************************************************************
? Insecure:  No
? Project:  default
? Environment:
interrupt

authors: Finenyaco shanewxy

repo: seal-io/walrus


text:
Object type variables do not display properly on forms

Describe the bug

Object type variables do not display properly on forms.
Steps to reproduce

Add a template with source https://github.com/unitong/test-variable. The variable test_object is defined as follows,

variable "test_object" {
  type          = object({
    name        = string
    age         = number
    email       = optional(object({
        address = string
        domain  = string
    }))
  })
  default       = {
    name        = "Bob"
    age         = 23
    email       = {
        address = "bob"
        domain  = "example.com"
    }
  }
}

Result

Properties in the object are displayed directly on the form and it is not clear which field they belong to. And the default values are not displayed.

Checked the schema.

        test_object:
          default:
            age: 23
            email:
              address: bob
              domain: example.com
            name: Bob
          properties:
            age:
              title: age
              type: number
            email:
              properties:
                address:
                  title: address
                  type: string
                domain:
                  title: domain
                  type: string
              required:
                - address
                - domain
              title: email
              type: object
            name:
              title: name
              type: string
          required:
            - age
            - name
          title: test_object
          type: object

Expected behavior

User can find the test_object field and clearly see the structure of the object type variables.

Environment

Walrus version: main 6d4903951fc8b6284473bfbae8fe8f0fea34ecd4
UI version: dev-d45e562

Additional context
Add any other context about the problem here.

It cannot display the complex type list(map(any) as well.
Variable definition:
variable "list_map_any" {
  type        = list(map(any))
  description = "List of maps containing node pools"

  default = [
    {
      name = "default-node-pool"
    },
  ]
}

Display on the form：

Checked the api response:

Environment
Walrus version: v0.4.0-rc2 af772a7ae049670658fdb2d2249cfde51277db8e
UI version: v0.4.0-rc2
Test Result: pass