Add copy button to Gitlab

Describe the problem
In Gitlab I have the following  .gitlab-ci.yml file:
image: python

before_script:
  - apt-get update -y
  - apt-get install -y pandoc

pages:
  stage: deploy
  script:
    - pip install numpy ipykernel
    - pip install sphinx furo nbsphinx
    - mkdir -p doc; cd doc
    - pip install sphinx-copybutton
    - sphinx-build -b html source ../public/
    - echo 'Done'
  artifacts:
    paths:
      - public
  only:
    - master

And in conf.py I added:
# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'nbsphinx',
    'sphinx-copybutton'
]

When I now run the workflow to deploy the site from Gitlab Pages, I get this error:
$ pip install sphinx-copybutton
Collecting sphinx-copybutton
  Downloading sphinx_copybutton-0.4.0-py3-none-any.whl (12 kB)
Requirement already satisfied: sphinx>=1.8 in /usr/local/lib/python3.9/site-packages (from sphinx-copybutton) (4.1.2)
Requirement already satisfied: babel>=1.3 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (2.9.1)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (1.1.5)
Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (2.9.0)
Requirement already satisfied: docutils<0.18,>=0.14 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (0.17.1)
Requirement already satisfied: Jinja2>=2.3 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (3.0.1)
Requirement already satisfied: alabaster<0.8,>=0.7 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (0.7.12)
Requirement already satisfied: requests>=2.5.0 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (2.26.0)
Requirement already satisfied: sphinxcontrib-devhelp in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (1.0.2)
Requirement already satisfied: packaging in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (21.0)
Requirement already satisfied: imagesize in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (1.2.0)
Requirement already satisfied: sphinxcontrib-jsmath in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (1.0.1)
Requirement already satisfied: setuptools in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (57.4.0)
Requirement already satisfied: sphinxcontrib-applehelp in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (1.0.2)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (2.0.0)
Requirement already satisfied: sphinxcontrib-qthelp in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (1.0.3)
Requirement already satisfied: snowballstemmer>=1.1 in /usr/local/lib/python3.9/site-packages (from sphinx>=1.8->sphinx-copybutton) (2.1.0)
Requirement already satisfied: pytz>=2015.7 in /usr/local/lib/python3.9/site-packages (from babel>=1.3->sphinx>=1.8->sphinx-copybutton) (2021.1)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/site-packages (from Jinja2>=2.3->sphinx>=1.8->sphinx-copybutton) (2.0.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests>=2.5.0->sphinx>=1.8->sphinx-copybutton) (1.26.6)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests>=2.5.0->sphinx>=1.8->sphinx-copybutton) (3.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests>=2.5.0->sphinx>=1.8->sphinx-copybutton) (2021.5.30)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/site-packages (from requests>=2.5.0->sphinx>=1.8->sphinx-copybutton) (2.0.4)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.9/site-packages (from packaging->sphinx>=1.8->sphinx-copybutton) (2.4.7)
Installing collected packages: sphinx-copybutton
Successfully installed sphinx-copybutton-0.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
$ sphinx-build -b html source ../public/
Running Sphinx v4.1.2
Extension error:
Could not import extension sphinx-copybutton (exception: No module named 'sphinx-copybutton')

Link to your repository or website
No response
Steps to reproduce
Creating this  .gitlab-ci.yml in a Gitlab repo and run a sphinx project.
The version of Python you're using
python3.9
Your operating system
No response
Versions of your packages
No response
Additional context
No response

Try sphinx_copybutton with an underscore

Agree - I'll close this one


libunwind is linked statically for C++ binaries

What's our plan on this issue? It seems that no one is working on it even though it's of high priority... (I am not focusing on this right now)

@objmagic - @zuyu and I are working with the travis folks.

any update on this? should this be included in 0.14.5?

cc @congwang who could help look into this

moving to #1631 and close this.


using weave with docker-compose

Is there a way to use weave with docker-compose?
e.g.
docker-compose yaml:
    mysql:
      restart: always
      image: mysql:latest
      container_name: mysql
      ports:
        - "3306"
      environment:
        - MYSQL_ROOT_PASSWORD=root

run:
docker-compose -f mysql.yml up -d

Yes, we have show this in our Docker Platform guide.

yes I saw this, however I didn't really want to use docker swarm/machine

yes I saw this, however I didn't really want to use docker swarm/machine

Ah, okay. Life is much easier then!

If you wanna use DNS, you will need to set hostname: myservice.weave.local in you docker-compose yaml, e.g.:
    mysql:
      hostname: mysql.weave.local
      restart: always
      image: mysql:latest
      container_name: mysql
      ports:
        - "3306"
      environment:
        - MYSQL_ROOT_PASSWORD=root

If you've launched weave already, and set the DOCKER_HOST environment variable, then containers started via docker-compose will all be connected to the Weave network.
Something like:
weave launch [other hostnames here]
eval $(weave env)
docker-compose -f mysql.yml up -d

magic, I was missing the hostname - all is good now! Thanks :+1:

magic, I was missing the hostname - all is good now! Thanks :+1:

Brilliant! Glad we got there quickly :)

Note that now it would not work without the network_mode: "bridge" key:
version: '2'
services:
    a1:
        image: "weaveworks/ubuntu"
        hostname: a1.weave.local
        container_name: a1
        network_mode: "bridge"
        command: [tail, -0f, /etc/hosts]
        networks:
            - default
networks:
    default:
        external:
            name: weave

If you have network_mode: "bridge" then you shouldn't need the networks: stanza.

@rade you are right. fixed it in my comment.

Now I'm trying to figure out how to use it with two networks: the default for wave and another one for local one, like this (note that this file is incorrect!):
version: '2'
services:
    a1:
        image: "weaveworks/ubuntu"
        hostname: a1.weave.local
        container_name: a1
        network_mode: "bridge"
        command: [tail, -0f, /etc/hosts]
        networks:
            default:
                network_mode: "bridge"
            private_net:
    b1:
        image: "weaveworks/ubuntu"
        container_name: b1
        command: [tail, -0f, /etc/hosts]
        networks:
            - private_net
networks:
    default:
        external:
            name: weave
    private_net:

I think you want option 4 from https://github.com/weaveworks/guides/issues/187#issuecomment-228901173.

It states that it requires a docker cluster. I have plans to use it in my configuration. Second point is that it forces me to create new wave network instead of using the pre-created one. The third point is that if I want to use WeaveDNS, I need to specify dns and dns_search keys same as from the command weave dns-args. In my case it is:
--dns=<IP_ADDRESS> --dns-search=weave.local.

I'm not sure that specifying things like <IP_ADDRESS> is appropriate, because one day it can change to something else.
So, I'm totally agree with you - the guide to use weave with docker-compose in a non-trivial cases is absolutely required.

Now I'm going to use this config:
version: '2'
services:
    a1:
        image: "weaveworks/ubuntu"
        hostname: a1.weave.local
        container_name: a1
        network_mode: "bridge"
        command: [tail, -0f, /etc/hosts]
    b1:
        image: "weaveworks/ubuntu"
        container_name: b1
        command: [tail, -0f, /etc/hosts]
networks:
    default:
        external:
            name: weave

This way I have a "published" service a1 and "internal" service b1. It has a drawback that the b1 service can be reached from outside by it's IP-address. I'm steel in a hope to have a not so "rocket science" technique to achieve the really local ("hidden") services behavior with weave and docker-compose.

just found that I can not ping a1 from the b1 container with this configuration. It seems that the only simple way is to "publish" all containers to the weave with hostname: key. Open for better suggestions.


[bounty] switch pipes engine from deno to bun

definition of done:

all pipes works with new engine (updated if necessary), including the screenpipe-js sdk
pipes works on all OS - (you tested it, i can test on macos, i cannot test for windows/linux)
meaning you need to update how we package deno to bun on different OS

why? nextjs does not work well in deno, too many issues, not many upsides (for example https://github.com/vercel/ai-chatbot was crashing in deno when asking AI questions, e.g. SSE not supported or something)
/bounty 100

/attempt #582

https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-core/src/pipes.rs
In this we have to implement the bun right from deno

/attempt #582

@louis030195 I added configuration for Bun, and I'm testing the plugin with Bun.
demo bunfig.toml:
[dependencies]
screenpipe = { url = "https://raw.githubusercontent.com/mediar-ai/screenpipe/main/screenpipe-js/main.ts" }

[imports]
fs = "node:fs"
screenpipe = "https://raw.githubusercontent.com/mediar-ai/screenpipe/main/screenpipe-js/main.ts"

pipe.ts:
import {
  queryScreenpipe,
  loadPipeConfig,
  ContentItem,
  extractJsonFromLlmResponse,
} from "screenpipe";

console.log("Loading pipe config:", loadPipeConfig());
console.log("Plugin is running");

when I try to use screenpipe package
➜ screenpipe git:(main) bun run --allow-read --allow-write --allow-env --allow-net --allow-run --allow-sys .\examples\typescript\pipe-meeting-summary-by-email\pipe.ts
error: Cannot find package "screenpipe" from "C:\Users\kumar\devlopment\screenpipe\examples\typescript\pipe-meeting-summary-by-email\pipe.ts"

Bun v1.1.29 (Windows x64)
➜ screenpipe git:(main) ✗

am I missing something?

i solved this issue yesterday, sorry was too slow


Feature proposal: no-double-resolve. Warn against resolving a promise twice, or execution after resolve.

Description
I've noticed some errors when reviewing PRs where a promise is resolved, but where execution flow can continue to a point where the promise is then rejected, or where continuing execution would cause some other error that should be avoided.
I've read through the rules available, but I don't think any of them would achieve the following:
Steps to Reproduce
For example, the following less than ideal code:
(async () => {
    const someOptionalCache = undefined;
    const value = await new Promise((resolve) => {
        if (!someOptionalCache) {
            resolve(null);
        }

        resolve(someOptionalCache.fetch("some-key");
    });
})()

should really cause at least a warning imo.
Expected behavior:
Open to discussion, but perhaps a warning should be issued to the effect of 'a promise should not be resolved multiple times'
Naturally, it's entirely possible to want to continue executing code in a promise after it's resolved, but I don't think resolving twice would make sense, nor rejecting after a resolve, nor resolving after rejecting.
Does anybody else have thoughts (for or against) on this?
An additional or alternative rule that feels more restrictive, and might want to be ignored in some instances but not others (though would still provide protection, and may be easier to implement) would be to disallow or warn against execution of any code after resolve or reject is called.
Again, any thoughts for or against?
Examples of better code
The above could instead be either:
(async () => {
    const someOptionalCache = undefined;
    const value = await new Promise((resolve) => {
        if (!someOptionalCache) {
            resolve(null);

            return;
        }

        resolve(someOptionalCache.fetch("some-key");
    });
})()

or alternatively:
(async () => {
    const someOptionalCache = undefined;
    const value = await new Promise((resolve) => {
        if (!someOptionalCache) {
            resolve(null);
        } else {
            resolve(someOptionalCache.fetch("some-key");
        }
    });
})()

That's very similar to this rule:
https://eslint.org/docs/rules/callback-return
Which I support

Thanks @xjamundx, I'll check that out, it looks promising!

I ran a test with some existing code using https://eslint.org/docs/rules/callback-return which did highlight a location where I was calling a callback without a return, but in that case this was correct behaviour.
As for my promise example, I've created an example https://github.com/mrthehud/eslint-plugin-promise-issue-222/blob/master/src/foo.ts, but this doesn't warn against my double calling of resolve unfortunately.
I think there may be scope here, I guess I'd want to start by adding some test cases to https://github.com/mysticatea/eslint-plugin-node/blob/master/tests/lib/rules/callback-return.js to reprodue.


chore: added next.js instrumentation module

I added a new entry for @newrelic/next instrumentation.  This repo is still private and plan on making public early next week.  I just wanted to get this PR in now as it's one of the last items of our MMF.  Closes https://github.com/newrelic/newrelic-node-nextjs/issues/10

@clarkmcadoo I see the bot said this is in 1.20.4 but I don't see it in the release nor on the opensource website.


Consider adding Sforzando to documentation for making samples

I don't think it's open source but it's an easy solution for pc and mac users and it's free.
https://plogue.com/products/sforzando.html

Closing as it doesn't support wv files


How to use react-native-custom-navigation module in this router ?

Hi guys,
I really like this router, but react native transitions are not that good, I found a another module that have really cool transitions, but I couldn't figure out how it's been done in the source code, so, is there anyway I can use the other module or just transitions into this router ?

Currently this component just uses standard react native transitions (sceneConfig property).
react-native-custom-navigation looks very nice, all components are open source, feel free to submit PR with improved transitions.

3.0 version is release. It uses new RN Navigation API with better transitions.


% Added protection against superview being nil and crashing

I've seen a few crashes that look like:
Thread 0 Crashed: 0   SwipeCellKit                         0x0000000100b32264 function signature specialization <Arg[1] = Dead> of SwipeCellKit.SwipeTableViewCell.point (inside : __C.CGPoint, with : __ObjC.UIEvent?) -> Swift.Bool (SwipeTableViewCell.swift:337) 1   SwipeCellKit                         0x0000000100b2efe4 @objc SwipeCellKit.SwipeTableViewCell.point (inside : __C.CGPoint, with : __ObjC.UIEvent?) -> Swift.Bool (SwipeTableViewCell.swift:0) 2   UIKit                                0x00000001955d3394 -[UIView(Geometry) hitTest:withEvent:] + 272 3   UIKit                                0x0000000195770778 -[UITableViewCell hitTest:withEvent:] + 108
Which points to "superview" being "dead". I have no idea how superview would be non-existent, but it is a good idea to avoid forced unwrapping, in my opinion.
This change guards against superview being nil.

Thanks. This look good.


fix: add time_sleep

Description
Resolves: https://github.com/terraform-ibm-modules/terraform-ibm-observability-instances/issues/603

Release required?

[ ] No release
[x] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline


Asset discovery stuck

I don't know how I can investigate this issue, but in "asset discovery" after I pressed "Turn on" scanning, the scanning starts but then nothing happens anymore.
A couple of weeks ago this worked fine..
What can I try?

Hello @StevenNoppeVetex can you please provide more information:

which version do you have deployed?
2.7.206
what is the OS of your IoT Edge device?
Linux Ubuntu
which OPC UA servers you were expected to discover and how are they connected the IoT Edge devices?
I have 3 OPC UA servers on the network. One is a Siemens PLC S7-1500, another one is an Ewon Cozy 205, last one is a Windows application that transforms data from machine and convert the data to OPC UA.

For now everything works again.
I was just wondering how I can investigate problems the moment they happen. Log files or something like that?

@StevenNoppeVetex it is great to hear that things are working.
When you run into issues like this, then it would be great if you can:

log into your edge device and collect log files from all modules by running "iotedge support-bundle"
on the cloud side it depends if you run all microservices in AppService or in aks:

for AppService check the logs there
for AKS deployment, you need to check the logs of the onboarding/registry microservices

Closing for now, since the issue is no longer there. Pls reactivate if you see it again.


AnimationPlayer: dragging audio items changes randomly changes selected node

Godot master efdd0c4b894a4329469e3c8456b0440e7398c5d8
When selecting across audio items in an animation with multiple tracks, I found out the selected node was going a little bit crazy. At first it seems to select the node whose property is on, but at some point it selects two nodes at a time, and even ends up selecting the root node of the scene, which doesn't even have a track in the animation. Then clips don't get to appear in the inspector anymore unless you hold mouse button pressed.
https://youtu.be/HIk_x41wwE4

I think this is the same issue as https://github.com/godotengine/godot/issues/19423 Looks like selecting an audio clip (or when it gets deselected) jumps to a random node in the scene tree dock. In https://github.com/godotengine/godot/issues/19423 is to another AnimationPlayer node and here is to a different AudioStreamPlayer.


Setting env vars

I love this feature in better-npm-run. I'd like a way to define env vars before run a command and also it is cross platform.

Sorry, it's out of scope for this project.
cross-env is the tool to define environment variables in cross-platform.
I really hope that npm improves about the feature of environment variables.

Thank you for responce! I think it's a nice feature to add.

@mysticatea At the very least, subprocesses should inherit the environment variables from the parent process. I find myself constantly wanting to do something like NODE_ENV=testing npm-run-all test:*. You wouldn't necessarily have to support cross-platform stuff, since that could easily be done by running cross-env NODE_ENV=testing npm-run-all test:*. npm-run-all should just send it's current env vars down to the sub-scripts.


Replace Primitive with Intrinsic in QuickStart

Docs Build status updates of commit bd52115:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/quickstart.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit f7a0831:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/quickstart.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 5ead5f0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/quickstart.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 5ead5f0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/quickstart.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit cb2a85a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/quickstart.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Cleanup type aliases, imports, and comments

Use int types from cstdint rather than aliases brought in by transitive dependences from protoconverter.
Replace internal alias of absl::string_view with absl::string_view itself.
Remove the now-empty :protobuf library that was two proto-related dependencies and the aforementioned internal string_view alias. Adjust BUILD dependencies accordingly.
Change a couple of #include <foo.h> to #include <cfoo>.
Add some namespace-closing comments to a test file.

/ok-to-test


ZodCustomError with message is not translated

Thanks a lot for this great library! When I define the message property of ZodCustomError, the error is not translated. When I remove the message property it is translated.
import i18next from 'i18next';
import { ZodError, z } from 'zod';
import { makeZodI18nMap } from 'zod-i18n-map';
// Import your language translation files
import translation from 'zod-i18n-map/locales/de/zod.json';

await i18next.init({
  lng: 'de',
  resources: {
    de: {
      custom: {
        my_error_key: "Something terrible",
      },
      zod: translation,
    },
  },
})

z.setErrorMap(makeZodI18nMap({ t: i18next.t, ns: ['zod', 'custom'] }));

const x = z.string()
  .refine(() => false, { message: "foobar", params: { i18n: "my_error_key" } })
  .safeParse(""); // => "foobar" instead of "Something terrible"

Do you have an idea what the cause could be?

did you fix it ?

I haven't found a way to make this work either.

it isnt working in spanish either

You might find the solution in already resolved issue: https://github.com/aiji42/zod-i18n/issues/68#issuecomment-1445284453


long update times possible when selecting a package with hierarchy tab selected

@ericwinger I know you know, but while I was waiting for a selected package to be usable, I thought I'd submit a bug:)

... turns out that the tab is still updating:)

Selecting Rowan/Rowan-Tests in project browser with Hierarchy tab selected results in "infinite loop" and I have to leave Jadeite:

... sooo I'm bumping priority

There was a bug in the class hierarchy service code ending up with repeated classes in the tree of hierarchy services on the client. The client then got confused and ran in circles. Fix is in the server in RowanPackageService>>classHierarchy in 3.0.42.


code structure smells of speculative generality

This package has a 2 level name structure which is inappropriate for a single package. The file structure is also several levels deep. This is in anticipation of other packages. Thus speculative generality.
Cure:

flatten directory structure into a single package.
change name from rugo/xstrings to xstrings/gstrings

Fixed with commit b162704e38145363459f7413d976a601b9952302


chore: Remove deprecations for v1.4.0

Description
Just removes all the methods and classes that should be removed for v1.4.0
Checklist

[x] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
[x] I have followed the Contributor Guide when preparing my PR.
[x] I have updated/added tests for ALL new/updated/fixed functionality.
[x] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
[x] I have updated/added relevant examples in examples or docs.

Breaking Change?

[ ] Yes, this PR is a breaking change.
[x] No, this PR is not a breaking change.

Related Issues

Spec is accidentally pulling in breaking changes from Riverpod so we'll not use Spec temporarily.
Quick fix here: https://github.com/invertase/spec/pull/30


Conversion failed for an unknown reason

Code :
File wordFile = new File("Results/test.xlsx")                     , target = new File("Results/ReportMSWord.pdf");  IConverter test = LocalConverter.make();  test.convert(wordFile).as(DocumentType.MS_EXCEL)                                  .to(target).as(DocumentType.PDF)                                  .prioritizeWith(1000) // optional                                  .execute();  test.shutDown();
Error :
avr. 22, 2016 2:48:18 PM com.documents4j.conversion.msoffice.MicrosoftExcelBridge startUp INFO: From-Microsoft-Excel-Converter was started successfully avr. 22, 2016 2:48:18 PM com.documents4j.conversion.msoffice.MicrosoftWordBridge startUp INFO: From-Microsoft-Word-Converter was started successfully avr. 22, 2016 2:48:18 PM com.documents4j.job.LocalConverter <init> INFO: The documents4j local converter has started successfully avr. 22, 2016 2:48:18 PM com.documents4j.conversion.msoffice.AbstractMicrosoftOfficeBridge doStartConversion INFO: Requested conversion from Results\test.xlsx (application/vnd.com.documents4j.any-msexcel) to Results\ReportMSWord.pdf (application/pdf) Exception in thread "main" com.documents4j.throwables.ConverterException: Conversion failed for an unknown reason     at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:90)     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)

Error in the VB script

That would mean that you specified an incorrect conversion format. The MicrosoftExcelFormat does however not contain any non-numeric value. Can you retry with specifying the format as DocumentType.XLSX instead of DocumentType.MS_EXCEL?

Done. Isn't working. Same error.

Does this only happen for DocumentType.PDF as a target format or for any format?

Juste try with
input : DocumentType.XLSX
output : DocumentType.CSV
Same error

But the MS-Word converter works for you? What Windows and .NET versions are you running? The complaint is that it cannot convert the numeric argument what seems impossible. Try to run the build, if this fails, too, then there is something wrong with your VBS installation, I am afraid.

But the MS-Word converter works for you?
I don't understand this question, sorry
What Windows and .NET versions are you running?
Windows 7 Enteprise 64 bit.
.NET framework instal : V2.0, V3.0, V3.5, v4.0.
The run of the build fail too.
I'm on an enterprise computer. Cannot launch powersheel script for example. Maybe it's the issue ? Will try to make a short vb script to see if it execute or not.

Seem i can execute this vbs script :
`dim iRule
dim instructables
iRule="instructables"
instructables=msgbox("hello " & iRule)`

The question means: can you convert a MS Word file with the documents4j API? That one triggers a different script so I was wondering if the error is script specific or general.
Maybe write a small script that takes an argument and converts it to an int (CInt). The thing that I find strange is that it is the first instruction that fails. You can also try to run the script that is contained in the project directly from the command line.

Can you convert a MS Word file with the documents4j API?
No, same error
Will make the script with an argument than converts it to an int, and also try to run yours.

My VBS :
 dim value value="0" // Same crash as yours if i set it to "A" instructables=msgbox("hello : " & CInt(value))
**Cannot find the location of your script. **

I have a suspicion that the command that is sent to the command line is not correct. Does your folder in which the application is started or that contains your file contain any spaces or special characters? Maybe the escaping is off?

Path : C:\Users\EANTLAL\git\SDE-Parser\SDE Parser V 1.0

I asume that that is the problem. Try to run documents4j from a location without spaces such as SDE_Parser_V_1_0 and tell me if that helps. I will try to fix the escaping in this case once I find the time.

I will try that. I cannot for the moment, because data from the directory are uploaded to a sharepoint as i'm speaking. When i can do it, i will give on ETA on the issue if it's solve or not.
Thanks for you quick response and you help.
Have a nice day,
Anton L.

You're right, it's the space in the folder name. Have successfully run your api without espace.

I'll try to fix that. It sounds trivial but spaces are kind of though to deal with in Windows

Hi everyone,
is there any news available on the preceding issue? A workaround or a statement about the development progress? Any information would be helpful. Thanks a lot.
Anne G.

You can work around this by placing documents4j in a folder without spaces. I will fix this at some point, but yet I did not find the time and lack a Windows work machine. Feel free to submit a PR if this feature is urgent.

Fixed on master, will be a part on 1.0.3.

Thank you. :)

Is there a log in the server? Any bytes added by a proxy or something?

Yes, you can check the command line options to produce a server log which could help uncover this problem. Also have a look at the documentation for this.

Thank you, can you provide link for documentation please

documents4j.com

Hello  sir,
Is working on android? i need to convert doc or docx to pdf.
When I am trying the error like this.
I/System.out: start
W/System.err: java.util.concurrent.ExecutionException: Could not complete conversion
W/System.err:     at com.documents4j.job.FailedConversionFuture.get(FailedConversionFuture.java:35)
W/System.err:     at com.documents4j.job.FailedConversionFuture.get(FailedConversionFuture.java:10)
W/System.err:     at com.documents4j.job.AbstractFutureWrappingPriorityFuture.get(AbstractFutureWrappingPriorityFuture.java:205)
W/System.err:     at com.documents4j.job.AbstractFutureWrappingPriorityFuture.get(AbstractFutureWrappingPriorityFuture.java:10)
W/System.err:     at stylishtextnew.itin.com.doctopdf.MainActivity.onCreate(MainActivity.java:75)
W/System.err:     at android.app.Activity.performCreate(Activity.java:7023)
W/System.err:     at android.app.Activity.performCreate(Activity.java:7014)
W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2734)
W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2859)
W/System.err:     at android.app.ActivityThread.-wrap11(Unknown Source:0)
W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1592)
W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:106)
W/System.err:     at android.os.Looper.loop(Looper.java:164)
W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6518)
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
W/System.err: Caused by: com.documents4j.throwables.ConversionInputException: No converter for conversion of application/vnd.openxmlformats-officedocument.wordprocessingml.document to application/pdf available
W/System.err:     at com.documents4j.conversion.ConverterRegistry.lookup(ConverterRegistry.java:65)
W/System.err:     at com.documents4j.conversion.DefaultConversionManager.startConversion(DefaultConversionManager.java:30)
W/System.err:     at com.documents4j.job.LocalFutureWrappingPriorityFuture.startConversion(LocalFutureWrappingPriorityFuture.java:50)
W/System.err:     at com.documents4j.job.LocalFutureWrappingPriorityFuture.startConversion(LocalFutureWrappingPriorityFuture.java:11)
W/System.err:     at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:70)
W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
W/System.err:     at java.lang.Thread.run(Thread.java:764)
D/CONVERTPRO: ERROR Could not complete conversion
===============================
implementation group: 'com.documents4j', name: 'documents4j-local', version: '1.0.3'
implementation group: 'com.documents4j', name: 'documents4j-transformer-msoffice-excel', version: '1.0.3'
testImplementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.11'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1'
testImplementation group: 'org.slf4j', name: 'slf4j-api', version: '1.6.1'
implementation 'org.slf4j:slf4j-nop:1.7.25'
File base=new File(Environment.getExternalStorageDirectory().toString()+"/abc");
    File in=new File(Environment.getExternalStorageDirectory().toString()+"/example.docx");
    File out=new File(Environment.getExternalStorageDirectory().toString()+"/ex.pdf");

    base.mkdir();
    IConverter converter = LocalConverter.builder().baseFolder(base)
            .workerPool(20, 25, 2, TimeUnit.SECONDS).processTimeout(5, TimeUnit.SECONDS).build();
    try {
        System.out.println("start");

        Future<Boolean> conversion = converter
                .convert(in).as(DocumentType.DOCX)
                .to(out).as(DocumentType.PDF)
                .schedule();

        System.out.println("end: " + conversion.get());

    } catch (InterruptedException | ExecutionException e) {

        e.printStackTrace();

    } finally {
        converter.shutDown();
    }

No, you would need to connect to a remote converter.
Am Di., 19. Feb. 2019 um 08:16 Uhr schrieb jatinborsaniya <
<EMAIL_ADDRESS>
Hello sir,
Is working on android? i need to convert doc or docx to pdf.
When I am trying the error like this.
I/System.out: start
W/System.err: java.util.concurrent.ExecutionException: Could not complete
conversion
W/System.err: at
com.documents4j.job.FailedConversionFuture.get(FailedConversionFuture.java:35)
W/System.err: at
com.documents4j.job.FailedConversionFuture.get(FailedConversionFuture.java:10)
W/System.err: at
com.documents4j.job.AbstractFutureWrappingPriorityFuture.get(AbstractFutureWrappingPriorityFuture.java:205)
W/System.err: at
com.documents4j.job.AbstractFutureWrappingPriorityFuture.get(AbstractFutureWrappingPriorityFuture.java:10)
W/System.err: at
stylishtextnew.itin.com.doctopdf.MainActivity.onCreate(MainActivity.java:75)
W/System.err: at android.app.Activity.performCreate(Activity.java:7023)
W/System.err: at android.app.Activity.performCreate(Activity.java:7014)
W/System.err: at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
W/System.err: at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2734)
W/System.err: at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2859)
W/System.err: at android.app.ActivityThread.-wrap11(Unknown Source:0)
W/System.err: at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1592)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
W/System.err: at android.os.Looper.loop(Looper.java:164)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6518)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
W/System.err: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
W/System.err: Caused by:
com.documents4j.throwables.ConversionInputException: No converter for
conversion of
application/vnd.openxmlformats-officedocument.wordprocessingml.document to
application/pdf available
W/System.err: at
com.documents4j.conversion.ConverterRegistry.lookup(ConverterRegistry.java:65)
W/System.err: at
com.documents4j.conversion.DefaultConversionManager.startConversion(DefaultConversionManager.java:30)
W/System.err: at
com.documents4j.job.LocalFutureWrappingPriorityFuture.startConversion(LocalFutureWrappingPriorityFuture.java:50)
W/System.err: at
com.documents4j.job.LocalFutureWrappingPriorityFuture.startConversion(LocalFutureWrappingPriorityFuture.java:11)
W/System.err: at
com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:70)
W/System.err: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/System.err: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
W/System.err: at java.lang.Thread.run(Thread.java:764)
D/CONVERTPRO: ERROR Could not complete conversion
===============================
implementation group: 'com.documents4j', name: 'documents4j-local',
version: '1.0.3'
implementation group: 'com.documents4j', name:
'documents4j-transformer-msoffice-excel', version: '1.0.3'
testImplementation group: 'ch.qos.logback', name: 'logback-classic',
version: '1.1.11'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version:
'1.6.1'
testImplementation group: 'org.slf4j', name: 'slf4j-api', version: '1.6.1'
implementation 'org.slf4j:slf4j-nop:1.7.25'
File base=new
File(Environment.getExternalStorageDirectory().toString()+"/abc");
File in=new File(Environment.getExternalStorageDirectory().toString()+"/example.docx");
File out=new File(Environment.getExternalStorageDirectory().toString()+"/ex.pdf");

base.mkdir();
IConverter converter = LocalConverter.builder().baseFolder(base)
        .workerPool(20, 25, 2, TimeUnit.SECONDS).processTimeout(5, TimeUnit.SECONDS).build();
try {
    System.out.println("start");

    Future<Boolean> conversion = converter
            .convert(in).as(DocumentType.DOCX)
            .to(out).as(DocumentType.PDF)
            .schedule();

    System.out.println("end: " + conversion.get());

} catch (InterruptedException | ExecutionException e) {

    e.printStackTrace();

} finally {
    converter.shutDown();
}

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/documents4j/documents4j/issues/30#issuecomment-465014205,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AESAcEEBT7m4ntTq4jeq2v1-mVSZaU-Mks5vO6TkgaJpZM4INlKy
.

com.documents4j.throwables.ConverterException: Conversion failed for an unknown reason
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:90)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)]
i am getting this issue when converting from Docx to Pdf .. any idea on this issue.
it is working some times ... not the code issue i feel .. any conditions on environment

Is there an error message on the server? If it only happens sometimes, it is either the files that are the problem or your server is instable.

Hi @raphw
I am getting following error while converting docx into pdf.Please help me to resolve this,I would be grateful to you.
Thanks.
1107 [main] INFO com.documents4j.conversion.msoffice.MicrosoftWordBridge - From-Microsoft-Word-Converter was started successfully
1156 [main] INFO com.documents4j.job.LocalConverter - The documents4j local converter has started successfully
1268 [pool-1-thread-1] INFO com.documents4j.conversion.msoffice.MicrosoftWordBridge - Requested conversion from C:\Users\hp\Downloads\0ca6354b-a78f-4355-b99f-a0239b3770a5\temp1 (application/vnd.openxmlformats-officedocument.wordprocessingml.document) to C:\Users\hp\Downloads\0ca6354b-a78f-4355-b99f-a0239b3770a5\temp2 (application/pdf)
Exception in thread "main" java.util.concurrent.ExecutionException: Could not complete conversion
at com.documents4j.job.FailedConversionFuture.get(FailedConversionFuture.java:35)
at com.documents4j.job.FailedConversionFuture.get(FailedConversionFuture.java:10)
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.get(AbstractFutureWrappingPriorityFuture.java:205)
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.get(AbstractFutureWrappingPriorityFuture.java:10)
at DocConv.DocxToPdf.main(DocxToPdf.java:43)
Caused by: com.documents4j.throwables.FileSystemInteractionException: Could not access target file
at com.documents4j.util.Reaction$FileSystemInteractionExceptionBuilder.make(Reaction.java:180)
at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75)
at com.documents4j.conversion.ExternalConverterScriptResult.resolve(ExternalConverterScriptResult.java:70)
at com.documents4j.conversion.ProcessFutureWrapper.evaluateExitValue(ProcessFutureWrapper.java:48)
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:36)
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:11)
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:78)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

What version of documents4j are you running?

Hi @raphw
I am using following dependencies:
compile group: 'com.documents4j', name: 'documents4j-local', version: '1.0.3'
compile group: 'com.documents4j', name: 'documents4j-transformer-msoffice-word', version: '1.0.3'

Hi @raphw
I tried using with this dependencies,
compile group: 'com.documents4j', name: 'documents4j-local', version: '1.1.3'
compile group: 'com.documents4j', name: 'documents4j-transformer-msoffice-word', version: '1.1.3'
Now facing below error:
5068 [main] INFO com.documents4j.conversion.msoffice.MicrosoftWordBridge - From-Microsoft-Word-Converter was started successfully
5106 [main] INFO com.documents4j.job.LocalConverter - The documents4j local converter has started successfully
5203 [pool-1-thread-1] INFO com.documents4j.conversion.msoffice.MicrosoftWordBridge - Requested conversion from C:\Users\hp\Downloads\71326b0a-9e54-409c-892e-290e19e24d62\temp1 (application/vnd.openxmlformats-officedocument.wordprocessingml.document) to C:\Users\hp\Downloads\71326b0a-9e54-409c-892e-290e19e24d62\temp2 (application/pdf)
Exception in thread "main" java.util.concurrent.ExecutionException: Could not complete conversion
at com.documents4j.job.FailedConversionFuture.get(FailedConversionFuture.java:35)
at com.documents4j.job.FailedConversionFuture.get(FailedConversionFuture.java:10)
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.get(AbstractFutureWrappingPriorityFuture.java:205)
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.get(AbstractFutureWrappingPriorityFuture.java:10)
at DocConv.DocxToPdf.main(DocxToPdf.java:43)
Caused by: com.documents4j.throwables.ConversionInputException: The input file seems to be corrupt
at com.documents4j.util.Reaction$ConversionInputExceptionBuilder.make(Reaction.java:159)
at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75)
at com.documents4j.conversion.ExternalConverterScriptResult.resolve(ExternalConverterScriptResult.java:70)
at com.documents4j.conversion.ProcessFutureWrapper.evaluateExitValue(ProcessFutureWrapper.java:48)
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:36)
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:11)
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:78)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Try the 1.1.2 version, too. I added a password check in 1.1.2 that does not seem to be supported by all versions of MS Word.

Hi @raphw ,
I added version 1.1.2 also,still facing below error.Please help me out of this.
2421 [main] INFO com.documents4j.conversion.msoffice.MicrosoftWordBridge - From-Microsoft-Word-Converter was started successfully
2450 [main] INFO com.documents4j.job.LocalConverter - The documents4j local converter has started successfully
2558 [pool-1-thread-1] INFO com.documents4j.conversion.msoffice.MicrosoftWordBridge - Requested conversion from E:\5b08cebc-916f-4ba1-b4c3-ae17fdbf8202\temp1 (application/vnd.com.documents4j.any-msword) to E:\5b08cebc-916f-4ba1-b4c3-ae17fdbf8202\temp2 (application/pdf)
Exception in thread "main" com.documents4j.throwables.ConversionInputException: The input file seems to be corrupt
at com.documents4j.util.Reaction$ConversionInputExceptionBuilder.make(Reaction.java:159)
at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75)
at com.documents4j.conversion.ExternalConverterScriptResult.resolve(ExternalConverterScriptResult.java:70)
at com.documents4j.conversion.ProcessFutureWrapper.evaluateExitValue(ProcessFutureWrapper.java:48)
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:36)
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:11)
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:78)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Hi @raphw , Kindly find my code below ,let me know if any change required.
package DocConv;
import com.documents4j.api.DocumentType;
import com.documents4j.api.IConverter;
//import com.documents4j.job.LocalConverter;
import com.documents4j.job.LocalConverter;
import java.io.BufferedInputStream;
/import java.io.ByteArrayOutputStream;/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.output.ByteArrayOutputStream;
public class DocxToPdf {
 public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {

     ByteArrayOutputStream bo = new ByteArrayOutputStream();

     InputStream in = new BufferedInputStream(new FileInputStream("E:/SampleDocxxx.docx"));
     IConverter converter = LocalConverter.builder()
             .baseFolder(new File("E:/"))
             .workerPool(20, 25, 2, TimeUnit.MINUTES)
             .processTimeout(60, TimeUnit.MINUTES)
             .build();

     boolean conversion = converter
             .convert(in).as(DocumentType.MS_WORD)
    		//   .convert(in).as(DocumentType.DOCX)
             .to(bo).as(DocumentType.PDF)
         //    .prioritizeWith(1000) // optional
             .execute();
 //    conversion.get();
     try (OutputStream outputStream = new FileOutputStream("E:/document4JDocx.pdf")) {
         bo.writeTo(outputStream);
     } catch (IOException e) {
         e.printStackTrace();
     }
     in.close();
     bo.close();
 }
/*
 * void init() { iConverter = LocalConverter.builder() .baseFolder(new
 * File(doc4jtemp)) .processTimeout(5L, TimeUnit.MINUTES)
 * .workerPool(15,30,10,TimeUnit.MINUTES) .build(); } public void doc2pdf(String
 * docPath, String pdfPath) { File source = new File(docPath); File target = new
 * File(pdfPath); iConverter.convert(source).as(DocumentType.MS_WORD)
 * .to(target).as(DocumentType.PDF) .execute();
 */

}

Code and setup seems correct. Does it also fail if you convert it manually in Word? You should extract the VBS scripts for word and try running the conversion manually what might yield a better error message.


[SPARK-38698][SQL] Provide query context in runtime error of Divide/Div/Reminder/Pmod

What changes were proposed in this pull request?

Provide SQL query context in the following runtime error:

Divide: divide by 0 error, including numeric types and ANSI interval types
Integral Divide: divide by 0 error and overflow error
Reminder: divide by 0 error
Pmod: divide by 0 error

Example1:
== SQL(line 1, position 7) ==
select smallint('100') / bigint('0')
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Example 2:
== SQL(line 1, position 7) ==
select interval '2' year / 0
       ^^^^^^^^^^^^^^^^^^^^^

Why are the changes needed?

Provide SQL query context of runtime errors to users, so that they can understand it better.
Does this PR introduce any user-facing change?

Yes, improve the runtime error message of Divide/Div/Reminder/Pmod
How was this patch tested?

UT

Merging to master/3.3


LU and co

Start to work on on :

reformatting the fonctions NM_gesv, NM_posv in numerics
using a NumericsMatrix for solving linea systems in kernel

@bremond I start to add MUMPS support. Since I am not sure about the whole process of using MUMPS, could you review my last commit.
On a other subject, I think that NM_KEEP_FACTORS is no longer needed.

Hello,
I added the possibility to specify multiple dense rhs for the mumps solver in the last commit, so just one solve is needed in this case, a test is made in NM_MUMPS_test.c for symmetric and unsymmetric matrices.
The rhs was a vector, it is now a matrix. The number of columns of the rhs matrix is set with a nrhs parameter in N_MUMPS_set_problem. The number of rows of the rhs matrix is set to the number of rows of the factorized matrix, but it can also be superior to it. I don't know if it can be of any usage here but one have to keep this in mind.
The rhs matrix can also be sparse, but this would need quite more refactoring, so let's think about it later.
I agree that NM_KEEP_FACTORS should be definitively removed, but this is also the case for NM_NONE, NM_PRESERVE.
For the dense case only, there is a flag isLUfactorized, I think we should generalize this flag to
the sparse case, so NM_factorize should do nothing if it is true, and it should be the responsibility of the caller to ensure the flag is unset if a factorization is needed.
I propose to start the transformation of all NM_gesv to NM_LU_factorize + NM_LU_solve, if you do not have already done it ?

Thank you very much for your work.
1- I didn't made the global change from NM_gesv to NM_LU_factorize + NM_LU_solve. You can do if you have time.
2- Let us remove   NM_KEEP_FACTORS and the others. The only interesting one is NM_PRESERVE, but we can assume that the user may manage a copy of its data.  We can use a Boolean of type _isFactorized for all actorizations. but we have to define some rules:
- should we change the Boolean when we do a copy into a matrix ?
- when we call directly NM_LU_factorize should we use this Boolean or to force to factorization ?

if we use NM_LU_solve, then we factorize only _isFactorized is false.

3- With @fperignon , we have started to correct to correct/update all the examples
https://my.cdash.org/index.php?project=Siconos+Examples&date=2020-03-16
for the new release 4.3.0. It could be good if we can merge this PR, but since it is a bit important form the kernel side, I would prefer to pass the examples.

We need also to take into account the remark in #296

So I pushed a draft where the usage of the flags NM_KEEP_FACTORS,
NM_PRESERVE (and NM_NONE) is suppressed in NM_LU_solve and
NM_LU_factorize.
For factors (was NM_KEEP_FACTORS flag):
the default behaviour is to factorize once. A new factorization is
only triggered if:

the matrix isFactorized flag is false which is the case at
initialisation,

the user sets this flag explicitely with NM_set_factorized(A, flag).

For the matrix preservation (was NM_PRESERVE):
The matrix owns a pointer called destructible which points to the
matrix itself by default. A call to NM_preserve(A) makes this pointer
points on a copy of the matrix. NM_factorize and NM_LU_solve works
always on A->destructible so they do not have to take care of
preservation or not: this reduces the code size and complexity.
NM_factorized, NM_set_factorized works also on this pointer.
NM_preserve(A) makes a copy only if A->destructible points on A.  If
one wants to force the copy, a call to NM_unpreserve(A) is necessary
before : it clears the copy if it exists.
Numerics tests are ok. The old calls to NM_gesv_expert are kept in comments.
On the kernel side it is very weird for me for the moment.

Thank you very much. For me, is is nearly perfect.
I have now to correct all the bugs that I have introduced in the Kernel.

Note that code for UMFPACK, SUPERLU, PARDISO are not inserted in NM_LU_factorize. Probably it is not a lot of more than a cut and paste, but it must be checked. An I did not even checked with MUMPS yet, I ran the tests only for lu_sol.
Also the symmetric case is stil in the old flavor (NM_posv_expert).

Yes, this is the reason why I prefer to merge this PR after the release 4.3.0, that should arrive soon.

With the last commit, all the tests and the examples are working well.
The goal of this PR was to improve the linear solvers for sparse matrices. Unfortunately, we switch from the Boost-like Cholesky solvers to the LU factorizations for all. This means that :

we need to continue our effort to implement NM_Cholesky_* and NM_LDLT_* in numerics to be able to call solvers for symmetric matrices
we need also to have a default behaviors in the Kernel to choose the most efficient factorization if the matrices are symmetric.

On the side Kernel, the Cholesky factorization can be now called by the Kernel. For that, the user must specify that the matrix is symmetric and definite positive. On the Impacting bar example, we save time with the Cholesky factorization, but there is still some issues:

The computation of the block of the OneStepNSproblem is not able to work with Sparse matrices. The operation getLeftInteractionBlock especially constructs a dense matrix
Futhermore, solving with sparse rhs is not implemented in Kernel. It seems that it is possible with MUMPS but not with cholesky_solve from cparse.

If we want to deal with large FE mesh, it can be very expensive for the cpu time.

For the first point, getLeftInteractionBlock and getRightInteractionBlock keep the type of the original Matrix specified by the user

From a comment of T.A. Davis here https://github.com/JuliaLang/julia/issues/33637, it seems possible to solve system with Sparse r.h.s. using cs_spsolve  . We have to discuss how to do it in Siconos. Perhaps, it could be good to have the following signature 👎
NM_LU_solve(NumericsMatrix * A, double b) // Solve Ax=b for a single dense vector
NM_LU_solve_matrix_rhs(NumericsMatrix * A, NumericsMatrix * B) // Solve A X=B for a generic matrix (possibly sparse)

@ bremond What do you think about that ?

@bremond all the tests and the example are ok. I propose to merge this branch and to restart a new PR for the question of solving linear system with sparse r.h.s.
What do you think ?


added mapping and navigation

I have implemented the mapping and navigation features for bcr_bot using SLAM Toolbox and Nav2. The following mahor changes have been made:
Launch Files:
    Created mapping_launch.py for the mapping process.
    Created navigation_launch.py for the navigation process.
Remapper:
    Added a remapper to remap cmd_vel to bcr_bot/cmd_vel.

These changes enable mapping and navigation using the bcr_bot package itself.
Testing:
I have thoroughly tested the new features, and they are working as expected.

Please review the changes and let me know if any modifications are required.

Hope its fine now @D-1shu


try docker requirements update

cc @arjxn-py Just a test for your patch in #459. If all goes well, we should see a PR being opened against main and I should be pinged on it.

Ok, that did not work: https://github.com/Quansight/ragna/actions/runs/10239123151
Could you send PR against the test-ci branch until we have it right? We'll clean up afterwards and merge the fix into main.

Could you send PR against the test-ci branch until we have it right? We'll clean up afterwards and merge the fix into main.

On it @pmeier, found a minor issue with the docker issue template.
Apologies, I should have been more precautious.


Fix style using maxWidth prop for modals

Notes for Reviewers
This PR fixes #
Signed commits

[x] Yes, I signed my commits.

@dragon-slayer875 will you give this a review?

Reviewing right now.

@dragon-slayer875 comment?


change all notebook filepaths

The filepaths on all notebooks now point to a private machine (@MDijsselhof ). This is incorrect. Please change them back. There is an example of how things should look here: branch: https://github.com/brainspinner/cvasl/pull/new/drcandacemakedamoore/finish3, notebook: extended_harm_paper/ml_experiment3e-neuroharm.ipynb. Please make a branch off develop, change the paths there, then make a pull request

The filepaths on all notebooks now point to a private machine. This is incorrect. Please change them back.

Done by @drcandacemakedamoore


Collate contributions to UserGuide.adoc and DeveloperGuide.adoc

@kevinLamKB
The collate markers is not displaying correctly when viewed on GitHub. Try using // and see.

which one? for user / developer guide?

The User Guide of the branch V0.2_kevin.

haha i thought so. thanks for letting me know

Has everyone done this for their own portions?

@mattheuslee Yes! Sorry I forgot to push, I've done it now!

@mattheuslee your matric number is A0125586X yes? i'm tagging u to user guide delete format, it was empty.

@kevinLamKB yup it is. I must've missed out that one. thanks!

Alright, i've checked through to make sure no one missed out portions they've written. all good on that, closing this issue.


Lint YAML files (OSOE-188)

The number of YAML files we are writing constantly increases, mostly in our GitHub-Actions repository.
Let's lint them and fix common issues before code review happens and to be consistent.
This ESLint plugin looks like a decent choice, but there may be others.

This should perhaps be addressed not from NE but a new project, to allow standalone YAML-using projects like our GitHub Actions to utilize it too (similar to what we've done with PowerShell Analyzers and Utility Scripts. However, if an ESLint plugin is the way to go then there's no point in reinventing the wheel and indeed it should be part of NE.

Do you think this is still viable, @BenedekFarkas, @Piedone, @DAud-IcI ?

Yes, I'd love to have it, but I'd prefer a standalone feature, not tied to OSOCE or this repo, like Zoltán said.

I've looked up possible alternatives. There is yamllint, which is a Python-based application. There are already existing workflows that wrap this tool on the marketplace, but I'm not sure how configurable that is. There is also yaml-lint, which is Typescript-based.
Both are CLI apps that can be easily installed from their respective package managers which are preinstalled in the GHA worker images. So they could be used from LGHA instead of NE. I've tried out both on the workflows in OSOCE/.github/workflows. The Typescript tool gave me no warnings, so I guess that's just a basic syntax validator and can be dismissed. The Python app gave several warnings. It can also be customized via configuration file.

@0liver could you run the ESLint plugin you suggested on the same files, to compare what warnings are produced by it? Whichever gives the richest critique should be used.

A standalone CLI tool would be great, even better if you don't have to install Python or any other dependency that we don't already use. While the final check here would be in GHA, and that's how we'd ultimately enforce rules, you should also be able to run it locally without much hassle.

Interesting:

https://www.npmjs.com/package/eslint-plugin-yml trips over strings without delimiters. So I've wrapped the names of the scripts in apostrophes, and now I get:

Seems pretty ... annoying to me.

Here's another one that's also available as a GitHub action: https://github.com/mikefarah/yq.
I'll give it a shot.

Here a some more tools: https://faun.pub/cli-tools-for-validating-and-linting-yaml-files-5627b66849b1.

https://prettier.io/ can be used to check YAML formatting, but I don't know if it lacks what a full linter may provide. Related: https://github.com/Lombiq/NodeJs-Extensions/issues/70

As the first use case of this, lint Lombiq GitHub Actions and the other YML files in OSOCE.

In order to better estimate this task, I need to narrow down the scope a little bit. The discussion here got extended, and the following are subject to be tackled:

Implement a YAML linter tool that we would ideally develop as a standalone new project/repo. Also ideally, as a CLI tool that we can run locally.
Some previous research and explorations of tools need to be made first. Some options recently added under the public issue are:
Prettier.io
unofficial VS Code plugin
official VS Code plugin
More tools suggested by 0liver
Use this new linter tool to Lombiq GitHub Actions and OSOCE to linter all YAML files found in them.
The linter should run from GHA whenever new code is pushed to any of the above-mentioned solutions (OSOCE or Github-Actions). Prevent new code from being pushed if the linter outputs errors according to some pre-defined rules.

Do we want for now to implement this standalone tool and be able to run it locally on OSOCE or Lombiq GHA and then integrate it into our GHA pipelines in a future issue? Or tackle these two together as part of this issue?

On that note, I've been trying out yamllint as @sarahelsaig suggested above. And it looks quite promising. Not only provides a good output, but also gives us the chance to define a configuration file with the rules that better suit our needs.
If Docker is an option, we could use this image or build our own to bypass the hassle of setting it up with Python. Is Docker something we've run before in our GHA pipelines?

Docker is definitely an option. We use it in our setup-sql-server action to install SQL Server on Linux runners (here). Though I'm concerned that the image you linked just belongs to some random Docker community member and not official.

Docker is definitely an option. We use it in our setup-sql-server action to install SQL Server on Linux runners (here). Though I'm concerned that the image you linked just belongs to some random Docker community member and not official.

Yeah, we could build the image on our own.

Thanks for summarizing, Tegua!
Two adjustments to your points:

To clarify, we don't want to implement a tool, but rather, use an existing tool in a way that's mostly suitable for our local development workflow (like Node.js Extensions integrating into MSBuild and being able to run its PNPM tasks directly too) as well as for our CI workflows (NE again does this with its MSBuild integration). If both can't be addressed equally well, then we should focus on the CI workflows, like with PowerShell, see below. Ideally, this tool wouldn't need us to install any new environment, like Python.
You can't prevent new code from being pushed (with a GHA workflow) but that's not the goal either, we just want a CI build. For LGHA, the *this* workflows are like this, and for OSOCE, this can be part of build-and-test.

Docker is definitely an option, though building our own image seems an overkill. For CI though we most possibly wouldn't need it, since GHA images already contain everything we may need for the environment, including Python. The linter tool itself will need to be installed via whatever package manager it uses on the fly, but that's no problem if it's just a few seconds.
Also: an inspiration can be how we do PowerShell static code analysis with https://github.com/Lombiq/PowerShell-Analyzers. That's also available as a local tool as well as a CI workflow (and used in OSOCE here). But since the local tool needs manual execution via the CLI (instead of automatically integrating into an IDE or MSBuild, the latter which of course wouldn't be applicable to projects just containing scripts) people rarely use that and only rely on the CI's results. This is fine, since the volume of PS we write compared to C# is small (and YML is smaller still).

To expand on that, tightening the feedback loop (integrating the linting into the editor) is important for the developer experience, so having it available as an external tool is great, but less convenient to use. In the case of PS analysis, you can run the analysis on any file/folder (as an external tool), but you can also apply the same analyzer rules to VS Code (I just updated our internal with instructions for that), so you see the warnings immediately.
As for YAML linting, I would assume that the linting tool itself makes less of a difference (although I'd rather use the same as what the IDE uses to get the same results for sure) and the schemas you validate against matter more. VS Code reads schemas from https://www.schemastore.org/api/json/catalog.json, including those related to GitHub Actions (search for github- in that file). This has the added benefit of providing autocomplete suggestions. So as long as we're using these schemas for GHA-related YAML files, we're probably good and will have consistent results.

Thanks a lot for the answers above, I can say that everything is much clearer.
The only dots I'm not able to connect yet is what @BenedekFarkas mentioned at the end of the response above. So, we not only want a tool that helps standardize coding styles when writing YAML files (inspecting things like key duplicates, indentation levels, etc), but also a tool that provides intellisense capabilities when coding such files from an editor like VSCode (and YAML files that are specific to GHA in this case)?
yamllint recommends a bunch of extensions for editors in its official website here, including one for VSCode. Although the latter doesn't seem to offer anything to include schemas and/or provide the mentioned intellisense capabilities.

Not exactly, what I meant is that choosing an option that is also compatible with IDE-integration makes it more convenient to use locally as a developer.
That is important, because having to run an external tool separately from your normal development workflow is a loss of productivity. I just mentioned IntelliSense as a nice extra for the developer experience, but that's directly relevant for automated linting.
What we use for automated linting doesn't have to be same tool as what's integrated into the IDE (whatever library the extension is using), but they need to work based on the same rules (e.g., JSON-manifest).

For JS linting, for example, such integration is configurable like this. Something like this would be ideal, i.e. have a tool to do the lining, the same locally and in CI, and use its configuration in IDEs too.

After some research, I stumbled upon Trunk Check, a VSCode extension that integrates the latest version of yamllint (1.33.0).
The good thing about this extension is that it can pull the defined yamllint rules (see the whole list here) from the same configuration file we can later use when running yamllint locally or from GHA. See the below gif where linting errors are shown both in VSCode and in the command line for the file build-and-test-windows.yml (the same .yamllint.yaml file is used by both).

However, it looks like this extension doesn't allow to define schemas. Regarding this, it would be great if yamllint was integrated into YAML by Red Hat, so that we could use the latter to enable IntelliSense capabilities as discussed above. Hopefully this question here may get answered.
If usage of Trunk Check is legit for our purposes, I will further investigate if it can be used along with YAML by Red Hat, so the developer experience can incorporate both linting and schema validation/IntelliSense capabilities for our YAML files.

As a sidenote, it looks like yamllint 1.33.0 is already included in the GHA image here so we can skip the installation step in the GHA runs.

Expanding on the above, Trunk Check allows setting a specific version of yamllint via config file:

This looks great! And yes, a VS Code plugin is suitable for the local development story. BTW another plugin here is fnando.linter, which is among the ones yamllint recommends.

Any news here, Tegua?

Yeap, opening a PR very soon. @Piedone


Use tsconfig bases for the tsconfig in the template

Current Behavior
Today my TSConfig looks like:
{
  "include": ["src", "types", "test"],
  "compilerOptions": {
    "target": "es5",
    "module": "esnext",
    "lib": ["dom", "esnext"],
    "importHelpers": true,
    "declaration": true,
    "sourceMap": true,
    "rootDir": "./",
    "strict": true,
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "noImplicitThis": true,
    "alwaysStrict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "moduleResolution": "node",
    "baseUrl": "./",
    "paths": {
      "*": ["src/*", "node_modules/*"]
    },
    "jsx": "react",
    "esModuleInterop": true
  }
}

It could be:
{
  "include": ["src", "types", "test"],
  "extends": "@tsconfig/tsdx"
}

Then when I make a change specific to my  project it's very obvious:
{
  "include": ["src", "types", "test"],
  "extends": "@tsconfig/tsdx",
  "compilerOptions": {
        "noImplicitReturns": false
  }
}

See:

https://github.com/microsoft/TypeScript-Website/issues/130#issuecomment-652399262
https://github.com/tsconfig/bases

Who does this impact? Who is this for?
Should be useful to anyone regardless of their TS level
Describe alternatives you've considered
Don't, which is also OK

Sounds like a duplicate of #634. That hasn't gotten many comments, however, though lots of related issues in support of it and this sounds directly in support for a tsconfig preset.
@orta is there any reason to use https://github.com/tsconfig/bases / @tsconfig/tsdx as opposed to hosting it under @tsdx/tsconfig?

No strong reason other than network effects of it being the same tool others use


Credit original author

Hi @xini,
I'm the author of https://github.com/tyrann0us/tinymce-clear-buttons. I noticed some similarities between our repositories and was wondering whether you had plans to credit me (based on the GNU license)?
Please compare these files
plugin.js vs. editor_plugin.js
tinymce-clear-float-icon.svg vs. clearfloats-icon.svg
tinymce-clear-float-placeholder.png vs. clearfloats-placeholder.png
Feel free to get back to me.

Hi @tyrann0us,
thanks for bringing that to my attention. I had found this module (in this adapted form for tinymce 3) in another project and thought it would be useful for other SilverStripers. I didn't know it was your creation. Sorry for that. Of course I will add your credit. What do I need to add to comply with your licence?
Cheers, xini

Hi @xini,
thank you for getting back to me. I created a PR for the updated license.

I had found this module (in this adapted form for tinymce 3) in another project.

Can you give me a link to this project?
Thanks!

Hi @tyrann0us,
I have merged your PR and also added a reference in the readme.
I can't remember where I found it. I googled for solutions to the floats issue and I found the code for tinymce 3 somewhere... no idea, sorry...
Cheers

Thank you!


Make filter search insensitive to diacritics

Same as #240 but for searching a value in the filter box:
Screencast from 2022-11-03 18-24-03.webm
Here I'm expecting both Ardennes and Ardèche to match the search arde.
cc @LouisDelbosc @arnaudpeich :)

The issue can be close now @paulfitz


Add a 20.04 variant of the image

Now that there is a LTS 20.04 release, we should add a 20.04 variant of the image

Waiting for phusion/baseimage-docker to release a stable 20.04 image...

OK, it comes: https://github.com/phusion/baseimage-docker/releases/tag/focal-1.0.0

This was fixed by #123


docker update arc64

hello can you please add hacktoberfest label to it

hello can you please add hacktoberfest label to it

Sure


Excluding failing tests

This commit creates a list of failing tests (for each browser), which will be excluded during the release campaign until they are individually investigated and fixed.

@benouat Thank you for your review!


Cluster overview shows wrong guest usernames

The cluster overview UI shows user1 instead of user01.

Thanks for pointing out this bug. From what I understand, you created a cluster with 2 users and MC Hub showed the user range (user1 - user2).
Magic Castle does indeed seem to be creating user01 and user02 instead. However, according to the documentation (https://github.com/ComputeCanada/magic_castle/tree/master/docs#410-nb_users), it should be creating user1 and user2 (because nb_users is lower than 10). What do you think @cmd-ntrf ?

It's a bug in Magic Castle. The way we zero-pad the username, there is always at least one zero.
I will fix this in puppet-magic_castle.

Fixed by https://github.com/ComputeCanada/puppet-magic_castle/pull/100
It will be part of Magic Castle 10.


Merge onto bynens latest main

UNSUBSCRIBE

On Sep 28, 2020, at 8:56 PM, Logan Martel<EMAIL_ADDRESS>wrote:

Closed #932.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Add commonly used QML modules.

Added the QML modules used in the examples for the qml_ros_plugin and by a currently closed-source robot user interface using QML.
qml-module-qtmultimedia: https://packages.ubuntu.com/bionic/qml-module-qtmultimedia
qml-module-qtquick-controls: https://packages.ubuntu.com/bionic/qml-module-qtquick-controls
qml-module-qtquick-controls2: https://packages.ubuntu.com/bionic/qml-module-qtquick-controls2
qml-module-qtquick-dialogs: https://packages.ubuntu.com/bionic/qml-module-qtquick-dialogs
qml-module-qtquick-layouts: https://packages.ubuntu.com/bionic/qml-module-qtquick-layouts
qml-module-qtquick-templates2: https://packages.ubuntu.com/bionic/qml-module-qtquick-templates2
qml-module-qtquick2: https://packages.ubuntu.com/bionic/qml-module-qtquick2

Thanks for the contribution of rosdep keys. You add Ubuntu keys but no other platforms. Please take a moment to update your PR with respect to other platforms mentioned in our contribution guidelines. I would expect that there's at least debian packages available. You can add changes to the branch you have submitted from or edit the description. When you make the changes please comment back on this PR so that we get a notification that you've updated it.

I've added them for Debian. The package names are the same.
I could find packages for arch but the structure is different and while I could locate some of the modules, I'm not comfortable with adding them without testing and I don't have arch installed.


Enhance the Visual Appeal  of the Landing Page

Is your feature request related to a problem? Please describe.
The current landing page of the to-do list website feels too plain and lacks engaging elements, which may not encourage users to explore the functionality.
Describe the solution you'd like
I’d like to introduce a more visually captivating design to the landing page by using vibrant and user-friendly UI elements. This could include better typography, enhanced colour contrast, and minimalistic animations to give it a sleek, modern look.
Additional context
You could also consider:
Using a color scheme that creates contrast and makes important elements stand out.
Adding a hero image or an animation.

@Anshgrover23 please assign me this issue

i have opened the pr


possible bug on gauges and gauges-2

The icons for gauges and gauges-2 are not appearing, when I use :chromicons-lined-gauges:. Other icons are appearing, when I append them to the same string.

Hey @jhbeard I'd be happy to take a look at this with you sometime this week


Added Enum, extends, exports and index.

Added EnumSpec and enumList for ModuleSpec.
Added extendList for ClassSpec, this is list of ClassSpecs that class or interface implements or extends.
Added exports for ClassSpec, this is ModuleSpec that contains exports with merged declaration.
Added IndexSpec and index for ClassSpec.
Fixed parsing when using enums on merged declarations.

Would love to see this go in

Nice! Exactly what I'm missing.

Wow, thank you so much for the new features! Sorry for the long wait. I'll do a release ASAP.


Implement Dynamic Areas

To manage memory in a RISC OS compatible way.

AIUI:

There are multiple system dynamic areas, and users can define more.
Their virtual memory areas are visible to all applications, and must not overlap.
https://www.riscosopen.org/wiki/documentation/show/Dynamic Area Numbers
There are probably applications out there that think using memory in the free area between Wimp_Polls is just dandy (it's not, and it's even worse with multiple cores).
The screen is one, the free pool is another.
Not all the memory can be mapped into logical memory any more (I have a potential 64-bit solution to that)

There is a set of initial DAs that get set up and shared between cores, still no mechanism for creating them dynamically.


[FLINK-33437][connector] SinkV2 clear legacy state

What is the purpose of the change
This pull request clears the legacy state of Sinkv2.
Brief change log
SinkV2 clears legacy states after initialization.
Verifying this change
Please make sure both new and modified tests in this PR follows the conventions defined in our code quality guide: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot run azure

@flinkbot run azure

@masteryhx  Thanks for the review.What I need to do to merge this pr? Looking forward to your reply.

merged efbd8c40 into master


Cannot find third-party libraries used via requirement

I am trying to stand up a monorepo that runs mypy as part of the build phase. I have been installing third-party libraries via pip_parse and requirement in rules_python. However, when I tried out this integration, I get:
error: Cannot find implementation or library stub for module named "numpy"

for all of the third-party dependencies that I depend on via requirement. This seems like the most basic use case, so I figure I must be doing something wrong, but I am not seeing anything in the README about third party imports. Is there a way to make this integration aware of my requirements-based imports?
Thanks,
Phil

In practice, if the Typeshed doesn't ship with the stubs, we just resort to ignoring the third-party package using mypy.ini config. This obviously cuts out a large amount of the type-checking mypy could do, but their hasn't been a lot of interest/investment in the mypy_stubs rule.
That said, I thought I heard that recent versions of typeshed do ship numpy stubs.

OK, I looked into typeshed and I don’t see numpy or any of the other libraries I was using in there. I will try to make a standalone example with some of the libraries in there tomorrow and see if that works. I’m new to Python so I went for mypy because it seems to be the most common and the only one with Bazel integration, but perhaps pytype might be a better solution for my team if we’re going to be using libraries that mypy cannot handle.

Duplicate of #39 - I'm working on it right now.


expanduser in save_to_disk

Describe the bug
save_to_disk() does not expand ~

dataset = load_datasets("any dataset")
dataset.save_to_disk("~/data")
a folder named "~" created in current folder
FileNotFoundError is raised, because the expanded path does not exist (/home/<user>/data)

related issue https://github.com/huggingface/transformers/issues/10628
Steps to reproduce the bug
As described above.
Expected behavior
expanduser correctly
Environment info

datasets 2.10.1
python 3.10

save_to_disk should indeed expand ~. Marking it as a "good first issue".

How to access where this issue is in the code?

#self-assign

Hello,
It says save_to_disk is deprecated in 2.8.0, so the alternative to this will be storage_options?
https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.save_to_disk

#un-assign

@ashikshafi08 I think you misunderstood the warning. The method save_to_disk is not deprecated only the optional parameter fs.
Also @benjaminbrown038 as I cannot find your PR I would like to work on this if you don't mind.

@mariosasko It's been several months and the PR is not reviewed. Could you please take a look? I assume this is not complicated and could be merged fairly soon.


#127 Korean translation

I simply translated a few things into Korean.

It looks like you are new to github. If I merged these I would overwrite my English tutorials with Korean ones. You should just work on your own fork and not make a pull request to my github repo. You can rename your repo TensorFlow-Tutorials-Korean and make it similar to the Chinese translation:
https://github.com/Hvass-Labs/TensorFlow-Tutorials-Chinese


HTML Button tag

Description 📜
Given information about HTML button tag #3153

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] Frontend Dev HTML/CSS/JS

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

can you assign me this

@harshita214 PR or issue, and how can i do this?

I did'nt get it. I just wanted to ask can I be issued this topic so that I can write about it and then pull request.

Ohh, but sorry @harshita214  as i am already waiting for my PR to be merged for this issue


Headings of nested tables sometimes not display entirely

See attached screen shot.

b0rken-table-heaading.tiff | uploaded via ZenHub

this is another one that should probably be put on hold until we evaluate kendo ui

I think this is going to be another wontfix, right? @robes @hongsudt   if so, we should tag it and close it.

Yes.. I have to log this in the record app wiki first, and then I will
close it.
On Tue, Jun 21, 2016 at 1:54 PM, Karl Czajkowski<EMAIL_ADDRESS>wrote:

I think this is going to be another wontfix, right? @robes
https://github.com/robes @hongsudt https://github.com/hongsudt if so,
we should tag it and close it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/informatics-isi-edu/chaise/issues/149#issuecomment-227568701,
or mute the thread
https://github.com/notifications/unsubscribe/AAZUDFnyypLWmzT1kzKljNufcvSpWRJqks5qOE-NgaJpZM4GbJE6
.[image: Web Bug from
https://github.com/notifications/beacon/AAZUDBQoUtgI-D3TY_vLo3e7-yVHgjCVks5qOE-NgaJpZM4GbJE6.gif]

tag as wishlist and keep track of it on record 2 wiki page.


[Doc Improvement][SDK initialization error on m365 for Teams JS v<2.5.0][3388817]

Added a note recommending the users to use TeamsJS v2.5.0 or higher to avoid SDK initialization errors.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/overview.md
93
7
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/overview.md
93
7
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/overview.md
93
7
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/extend-m365-teams-personal-tab.md
97
26
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/extend-m365-teams-personal-tab.md
98
25
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/extend-m365-teams-personal-tab.md
97
27
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/extend-m365-teams-personal-tab.md
98
25
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/m365-apps/extend-m365-teams-personal-tab.md
96
30
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.


Stream Request.Body is corrupted in Docker for Windows environment

I have a following code snippet in my ASP.NET Core Controller :
public IActionResult PostAction() {
    string result;
    using (var sr = new StreamReader(Request.Body)) {
        result = sr.ReadToEnd();
    }
    ...
}

In works just fine on stand-alone Kestrel on Win, Linux and docker under Linux (Ubuntu 14.04)
But the stream is somehow corrupted in Docker for Windows environment.
Sometimes there are redundant bytes/chars in the end of the stream
Sometime the stream is corrupted, somewhere about position 4096
I have not idea what it means, that is just my observation :)
There is a repo with simple sample demonstrating the problem
https://github.com/kaatula/aspnetcore-docker/releases/tag/0.1
You also pull my docker image and try it:
docker run -p 5001:5001 -t kaatula/aspnetcore-docker:v0.1

My docker image is based on latest preview2-sdk
In my sample i POST some data to my controller action (about 20kb) and just send in back;
on the client side I verify that received data is not corrupted.

I also write to console the received string

You shouldn't be disposing the response body in your controller action (I'm not sure if that's the problem but it's incorrect anyways)

@davidfowl thank you for pointing that out, I misread that this overload closed underlying stream too
Unfortunately, it's still makes no difference...

/cc @halter73 @cesarbs

I have just found that things are a way worse than I thought.
Regular MVC Action parameter convertion fails too, in exactly the same way.
        public IActionResult PostActionWithParameter(string data) {
            Console.WriteLine(data);
            return Content(data);
        }

function postWithParam() {
    var numberString = "",
        numbers = [],
        i;
    for (i = 0; i < 20000; i++) {
        numbers.push(i % 10);
    }

    $.post("/Home/PostActionWithParameter/", {
        data: numbers.join("")
    }).then(function success(result) {
        var i;
        var checkResult = "OK";
        for (i = 0; i < result.length; i++) {
            var digit = i % 10;
            if (result[i] !== digit.toString()) {
                checkResult = "Failed!!!!";
            }
        }

        alert(checkResult + "\n" + result);
    })
}

When data is more than 4K - data string is not correct.
Again, it happens in Docker for Windows only, base image microsoft/dotnet:1.0.0-preview2-sdk (I have not tried other base images yet, only official one)
Updated repo:
https://github.com/kaatula/aspnetcore-docker/releases/tag/0.2
Updated docker image:
docker run -p 5001:5001 -t kaatula/aspnetcore-docker:v0.2

@kaatula: Thanks for reporting this issue.  We are able to reproduce and will investigate the root cause.

+1

We are continuing to investigate the issue with Docker for Windows Beta.  In our testing, this issue does not reproduce with Docker Toolbox, so you could use Docker Toolbox as a workaround for now.

Hi, I work at Docker. We suspect that this is a bug in Docker for Windows and are investigating. I'll keep you posted on this issue.
Thanks for reporting!

Also, using docker hostname (instead of localhost) will work as a temporary workaround - that hostname will be deprecated very soon though.
Relatedly, we've found the bug and a fix should be in the next release of Docker for Windows this out this week.

This has been fixed in the latest beta and stable releases: https://blog.docker.com/2016/07/docker-for-mac-and-windows-production-ready/
Thanks again for reporting!

Thank you, fix works just fine for me


Hardware DC removal not working with SoapyLMS7

The problem seems to be that LMS7002M::GetRxDCRemoval() always returns false when it is called by SoapyLMS7, thus tricking it into disabling DCRemoval (which should be enabled by default).
The following is a workaround for this bug:
https://github.com/daniestevez/LimeSuite/commit/9fe914f6d9edc36675e79e34efe985c318aa99a2
Results after the workaround:
https://t.co/SeLkb7UGrG
Before the workaround you have a huge DC spike (on the lowest level, DC_BYP_RXTSP gets set to 1).

Thanks for the find. It looks like the wrong register was overwritten due to a typo: https://github.com/myriadrf/LimeSuite/commit/2c3676c8084922a7013e389c9a5e605c0b3d3838

Thanks. That solves it.


Improved docs: file, constant-language, itest-karaf, itest-osgi

camel-file ant matcher does not need camel-spring, as it is part of camel-util
constant-language: Added missing section about resource prefix - http://camel.465427.n5.nabble.com/Possible-bug-in-netty-http-characters-in-body-get-unescaped-td5835669.html
itest-karaf, itest-osgi fixed command name
camel-grok typo

Thanks


Initialization Error 3

Fresh install of win10 Home (International UK English if that somehow matters). Running on a second gen threadripper setup where everything is pinned to be run in numa nodeset 1.
VM is setup with 14 cores and 12GB of RAM.
I was originally running to exit code 1 when running the example until I moved the qemu process under my account.
Now I am running into exit code 3 and I really have no idea where to start the debugging process. I tried investigating the CheckLow function, CLion likes to believe there is unreachable code which can't be right.
I tried bypassing this check just to see, and it immediately fails with an exit code of 4, which is expected but I had to try.

Are you running as root? The default setup requires ptrace privileges for process reads/writes. I should probably add a return value check for the MemRead call so it is more obvious.

running as my main user which is the same as what is running qemu as.
Tried running the program as root and it failed as well.

I tried to make sure it wasn't Fedora, I disabled SELinux fully instead of just permissive but still no go.

Could you check if MemRead returns 0? If it is not 0, then it is a Linux memory operation failure (check which pread error the number corresponds to). If it is 0, could you give me all windows version information you have? I also have a ryzen machine, so will check with it if it is an AMD related issue

buddy has it running on Ryzen, so if it is an issue its a threadripper problem.
My C is a little weak, but I think you are refering to this pread http://man7.org/linux/man-pages/man2/pwrite.2.html
All the MemRead return 65336 from this line:  https://github.com/Heep042/vmread/blob/b9a130b1e9f8c4595c9964b7095f6ac0186beb44/wintools.c#L402
Which based on the documentation means the operation was a success since it read 0x1 bytes which is what was requested.

I made a mistake. The full syscall is process_vm_readv, but the op seems successful regardless. This could mean a few things. Either the low stub does not exist on your VM, it has been updated recently to have different code, or the proc maps parsing is incorrect and the wrong memory base is found. I will have to try the same windows version as yours to see if it is one of the first 2 issues. Other than that, not much I can do with current information

Fresh download and install today.
Windows 10 Home
1909
18363.418
I did download the international English version, I am not sure if this makes a difference or not but I an downloading the US English version and reinstalling to see if it makes a difference.

OK, it looks like I have a solution. Back when I first started virtualization you use to need to whitelist UEFI to make it a BIOS options. So you would edit qemu.conf and adjust the nvram option.
Obviously things have evolved since then and a UEFI bios is available by default without the need to edit the nvram option. In fact setting the nvram to the original "/usr/share/OVMF/OVMF_CODE.fd:/usr/share/OVMF/OVMF_VARS.fd" causes the explosions.


Update helix-admin list to account for team member changes

Adding my GitHub account

Closing this as the companion PR was closed.


fix: gracefully handle injected attributes

fix: gracefully handle injected attributes
Fixes #234

Current dependencies on/for this PR:

main

PR #235   👈

This comment was auto-generated by Graphite.


Implemented flow to fetch product-details and show on ProductDetails.vue page (#1uvvc3x)

Related Issues

Closes #
Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry
Contribution and Currently Important Rules Acceptance

[ ] I read and followed contribution rules

Closing as will be done differently