Side loading issue - Outlook (Test in Excel worked)

Prerequisites

[x] I am running the latest version of Node and the tools
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed

Expected behavior
The new add-in should be sideloaded as expected. If I remember correctly, this worked 2 weeks ago. Current tests led to the error described below.
Current behavior
Steps to Reproduce
My powershell input to create the new project:
PS C:\temp> npm -v
10.2.3
PS C:\temp> node -v
v18.17.0
PS C:\temp> npm install -g yo@latest generator-office@latest
npm WARN deprecated<EMAIL_ADDRESS>This functionality has been moved to @npmcli/fs
npm WARN deprecated<EMAIL_ADDRESS>This functionality has been moved to @npmcli/fs
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated<EMAIL_ADDRESS>This functionality has been moved to @npmcli/fs
npm WARN deprecated<EMAIL_ADDRESS>This functionality has been moved to @npmcli/fs

changed 1204 packages in 38s

101 packages are looking for funding
  run `npm fund` for details

PS C:\temp> yo office

     _-----_     ╭──────────────────────────╮
    |       |    │   Welcome to the Office  │
    |--(o)--|    │   Add-in generator, by   │
   `---------´   │ @OfficeDev! Let's create │
    ( _´U`_ )    │    a project together!   │
    /___A___\   /╰──────────────────────────╯
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

? Choose a project type: Office Add-in Task Pane project
? Choose a script type: (Use arrow keys)
? Choose a script type: JavaScript
? What do you want to name your add-in? My Office Add-in
? Which Office client application would you like to support? Outlook

----------------------------------------------------------------------------------

      Creating My Office Add-in add-in for Outlook using JavaScript and Taskpane at C:\temp\My Office Add-in

----------------------------------------------------------------------------------

I'm all done. Running npm install for you to install the required dependencies. If this fails, try running the command yourself.

No change to package.json was detected. No package manager install will be executed.
npm WARN config cache-min This option has been deprecated in favor of `--prefer-offline`.
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated<EMAIL_ADDRESS>This functionality has been moved to @npmcli/fs
npm WARN deprecated<EMAIL_ADDRESS>This functionality has been moved to @npmcli/fs
npm WARN deprecated<EMAIL_ADDRESS>This functionality has been moved to @npmcli/fs
npm WARN deprecated<EMAIL_ADDRESS>A newer major version of this library is available. Please upgrade to the latest available version.
npm WARN deprecated<EMAIL_ADDRESS>A newer major version of this library is available. Please upgrade to the latest available version.

added 1354 packages, and audited 1355 packages in 20s

180 packages are looking for funding
  run `npm fund` for details

10 moderate severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
----------------------------------------------------------------------------------------------------------

      Congratulations! Your add-in has been created! Your next steps:

      1. Go the directory where your project was created:

         cd "C:\temp\My Office Add-in"

      2. Start the local web server and sideload the add-in:

         npm start

      3. Open the project in VS Code:

         code .

         For more information, visit http://code.visualstudio.com.

      Please visit https://learn.microsoft.com/office/dev/add-ins for more information about Office Add-ins.

      Please visit https://learn.microsoft.com/office/dev/add-ins/outlook/sideload-outlook-add-ins-for-testing for more information about Outlook sideloading.

----------------------------------------------------------------------------------------------------------

Then in an administrative powershell:
PS C:\temp\My Office Add-in> npm start

><EMAIL_ADDRESS>start
> office-addin-debugging start manifest.xml

Debugging is being started...
App type: desktop
Enabled debugging for add-in a8c09b41-7889-4b9f-8867-ff20045d72d2.
The dev server is already running on port 3000.
Sideloading the Office Add-in...
running: npx -p<EMAIL_ADDRESS>teamsfx m365 sideloading --xml-path C:\temp\My Office Add-in\manifest.xml

Warning: We are planning to depreate 'teamsfx' as command signagure and move to 'teamsapp' instead in the next major version of Teams Toolkit CLI.

Successfully registered package! (??)
 STDERR: (×) Error: TeamsfxCLI.UnknownCommandError: 'Office' is misspelled or not recognized by Teams Toolkit CLI. Use 'teamsfx m365 sideloading -h' for more command information.

Error: Unable to start debugging.
Error: Unable to sideload the Office Add-in.
Error: Unable to set registry value "a8c09b41-7889-4b9f-8867-ff20045d72d2" to "C:\temp\My Office Add-in\manifest.xml" (REG_SZ) for key ""HKCU\SOFTWARE\Microsoft\Office\16.0\Wef\Developer"".
ProcessUncleanExitError: ADD command exited with code 1:

ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
PS C:\temp\My Office Add-in>

Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Operating System: Windows 11 Pro
Node version: 18.17.0 / npm 10.2.3
Office version: Outlook for M365 MSO (Version 2310 Build 16.0.16924.20054)

Tool version: latest yo (4.3.1) + generator-office (1.9.7)

Failure Logs
Included in the logs and screenshot above.

That should be fixed in the most recent version of the tooling.  Make sure your project is installing the latest office-addin-debugging package and it should be correct.


Add --quiet flag docs and print macro

Contributions

[X] I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates
https://github.com/dbt-labs/docs.getdbt.com/blob/current/website/docs/reference/global-configs.md
https://github.com/dbt-labs/docs.getdbt.com/blob/current/website/docs/reference/dbt-jinja-functions.md
What part(s) of the page would you like to see updated?
I'd like to update the documentation to add info about the new global config that PR-4701 will create. Additionally, I'd like to add documentation for the print Jinja function that the PR creates.
Additional information
No response

Making a note that this change will come out with dbt-core v1.1.0.

@ehmartens Hello! The beta for v1.1 will be cut next week for this. Did you want to draft docs for this? I can review and edit them. One caveat is that we are adding versioning so the docs would be encapsulated in versioning code like this:
<VersionBlock firstVersion="1.1">

New content for `-- quiet` flag

</VersionBlock>

cc: @jtcohen6

Hi @runleonarun ! I'm so sorry for the delay on this. I'm happy to do this tomorrow morning (Us Eastern time) if there is still a need. Let me know! I can have a PR done by Noon US Eastern Time.

@ehmartens Apologies from me while I try to figure out a process for features created from the dbt community 😄 Anything you could provide would be helpful, even if unpolished. I can clean it up and publish it.


Add more docs and templates

[x] Move code of conduct
[x] Move contributing
[x] Add support
[x] Add issue template
[x] Add pull request template
[x] Remove docs after installation

Thanks, @xtreamwayz!

Cherry-picked into master.


ability to specify roleRef in permissions

In the permissions and clusterPermissions section I would like to be able to specify a pre-defined role or clusterRole to be used for the permissions of an SA rather than having to expand all of the rules.  For example, I would like to be able to say
      clusterPermissions:
      - serviceAccountName: cluster-logging-operator
        roleRefs:
        - cluster-reader
        - ... some other roles ...
        rules:
        - apiGroups:
          - scheduling.k8s.io
          resources:
          - priorityclasses
          verbs:
          - "*"
         ... other additional rules not covered by roles ...

@ewolinetz @jcantrill

Hello @richm - This issue should be opened against the operator-lifecycle-manager repository.

closed in favor of https://github.com/operator-framework/operator-lifecycle-manager/issues/732


How to set the max property of datepicker dynamically?

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ x] support request

Current behavior
I have a requirement in my form to dynamically change the allowable min/max dates of the datepicker field based on some other form fields. I thought this would be achievable using an expressionProperties, something like:
expressionProperties: { 'templateOptions.datepickerOptions.max': 'model.maxDate', }
However this approach does not appear to work as I might expect.
Question: is this entriely the wrong approach, can you suggest a better way of achieving the expected behaviour?
Expected behavior
When changing the model.maxDate value (via the button click in the sample) the max property of the datepicker should be updated.
Minimal reproduction of the problem with instructions
Here is a sample on Stackblitz:
https://stackblitz.com/edit/dyn-max-date

expressionProperties should be passed to the field object and not inside templateOptions:
{
  key: 'startDate',
  type: 'datepicker',
  templateOptions: {
    label: 'Period Start',
    required: true,
    datepickerOptions: {
      min: '2019-09-10'
    },
--  expressionProperties: { 'templateOptions.datepickerOptions.max': 'model.maxDate', },
  },
++  expressionProperties: { 'templateOptions.datepickerOptions.max': 'model.maxDate', },
}

here is a working example https://stackblitz.com/edit/dyn-max-date-xkkhsz


Change PYTHON_PATH to PYTHONPATH

Correct me if I'm wrong - but this seems like a mistake in the env variable.
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH

Thank you


VTKAddon

I am trying to build IGSIO for the use in pluslib.
I can use superbuild due to firewall isssues.
while doing cmake configuration i am getting the following error
of the following names:
vtkAddonConfig.cmake
vtkaddon-config.cmake

Add the installation prefix of "vtkAddon" to CMAKE_PREFIX_PATH or set
"vtkAddon_DIR" to a directory containing one of the above files.  If
"vtkAddon" provides a separate development package or SDK, be sure it has
been installed.
i have enabled vtkaddon while building vtk using cmake. Still gettig this error. I can see vtkaddon project.

IGSIO uses a custom fork of vtkAddon here
Clone and build that, the provide the bin directory to IGSIO cmake.

IGSIO uses a custom fork of vtkAddon here
Clone and build that, the provide the bin directory to IGSIO cmake.


Problem rtl and ltr in flask sphinx template for documentation

Problem rtl and ltr in flask sphinx template for documentation
Persian is a right-to-left language, and from the first day of the invention of the computer, etc., they face the problem of text disorganization. I manually put the appropriate font and rtl layout for the Persian language in the file custom.css, which if the translation is finished tomorrow, we can not put this file in the main repository. We have also encountered problems in some places and the rtl of the code in some places. I do not understand CSS myself, if anyone can solve this problem, I will be grateful to anyone who does this
This means that the program itself recognizes that there is Persian or English then based on this is the direction from right to left or from left to right.

ps:

Of course, this project uses the pallets theme for sphinx, and if it can be solved from there, it might be better. But unfortunately, it is read-only there right now.

Try this:
element {
text-align: right;
direction: rtl !important;
}


Testing library entry generation

Signed-off-by: vsoch<EMAIL_ADDRESS>

Let's try it!


Pinning a window change its transparency when above a fullscreened window

Already reported ? *

[X] I have searched the existing open and closed issues.

Regression?
No
System Info and Version
 System/Version info
Hyprland 0.45.0 built from branch main at commit df956a0f6fbcfd7397b2d7b86883c0936c7795ec  (windowrules: add rules for mouse and touchpad scroll factors (8655)).
Date: Wed Dec 11 18:27:49 2024
Tag: v0.45.0-99-gdf956a0f, commits: 5532
built against:
 aquamarine 0.5.0
 hyprlang 0.5.3
 hyprutils 0.2.6
 hyprcursor 0.1.10
 hyprgraphics 0.1.1

flags set:
debug

System Information:
System name: Linux
Node name: aphe-pc
Release: 6.12.4-2-cachyos
Version: #1 SMP PREEMPT_DYNAMIC Mon, 09 Dec 2024 19:09:07 +0000

GPU information:
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1636] (rev c2) (prog-if 00 [VGA controller])

os-release: NAME="CachyOS Linux"
PRETTY_NAME="CachyOS"
ID=cachyos
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://cachyos.org/"
DOCUMENTATION_URL="https://wiki.cachyos.org/"
SUPPORT_URL="https://discuss.cachyos.org/"
BUG_REPORT_URL="https://github.com/cachyos"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=cachyos

plugins:

Description
If a pinned window is above a fullscreened window, its transparency is lowered (it becomes almost opaque).
How to reproduce
Open a tiled window
Open a floating window (with transparency)
Pin the floating window
Fullscreen the floating window
Crash reports, logs, images, videos
https://github.com/user-attachments/assets/f1881c4d-1269-4b57-8c14-e9d45dabffe8

is that possibly some windowrule you have? Does it happen with the default config?

It does the same thing with default config


Does ArangoDB support incremental backup and restore?

Anyone can tell me how can i do incremental backup and restore?

I have a DB in dev environment, and I add some data into DB.
How to backup beta added or updated data to production DB?

Just make dev DB and production DB into a cluster, and use replication between them?
Does only master can process write for master-slave cluster?
Does ArangoDB support master-master cluster? If Master-master replication support this?

to me this sounds like you're looking for a solution like @virmundi s migrantverde?

It seems to be fixed by this tool, @dothebart thks! More a question, does arangodb will support incremental backup and restore?  orientdb also support this now.

Hi, I have same question about the incremental backup and restore.
I had done some research on arangodump, and find out two execute options， --tick-start && --tick-end
And I also found out that I do get last tick number from arangodump output.
So can I safe to use this tick infomation to achieve incremental backup and restore? thks !
@dothebart

Any new answers would be highly appreciated.

Hello, Do we have any update on this incremental backup?
Should we use the --tick-start && --tick-end for achieving the incremental backup as mentioned by @chrisLeeTW
Thanks!

No this does not work with rocksdb, and isn’t really a supported use case for mmfiles
You could periodically run a second ArangoDB instance as a replicated slave of the first one

Hi all,
The --tick start/end option of arangodump  was only a temporary incremental backup solution exlusively for the MMFiles storage engine.
MMFiles is deprecated starting with version 3.6.0 and it will be removed in a future release. We recommend to switch to RocksDB even before the removal of MMFiles.
Our proper incremental backup solution Arangobackup, which was introduced with v3.5.1 and v3.6.0, is a command-line client tool for instantaneous and consistent hot backups of the data and structures stored in ArangoDB. It works exclusively for the RocksDB Storage.
Please note that arangobackup is only available in the Enterprise Edition.
Your feedback about Hot Backups would be highly appreciated.

Hi @brucejee
We haven't heard back from you recently, we are going to close this ticket
Feel free to reopen it by adding a new comment
Best


Plan: Rust 2024 prelude

This is a roadmap item for wg-async. You can view the roadmap here: https://github.com/orgs/rust-lang/projects/28

Seems reasonable to me. I'm regularly surprised that Future isn't in the prelude.
A lot of code imports futures::Future. Would putting Future in the prelude break this code?

A lot of code imports futures::Future. Would putting Future in the prelude break this code?

I don't believe so. They both resolve to the same trait anyway, but the way imports work this would Just Work I believe: playground

Playing devil's advocate for a bit, are Future and IntoFuture traits that really need to be in the standard library? Most people don't implement Future directly, and probably even fewer call poll or into_future directly, so maybe it's reasonable to leave these as an advanced feature that people implementing low level async code import but most programmers don't use?
Put another way, what capabilities do we enable by putting them in the prelude?

If not in the standard library, then where would they be?

are Future and IntoFuture traits that really need to be in the standard library?

They certainly need to be in the standard library to support async and await desugaring.

Most people don't implement Future directly

Yeah, but I would assume more people do thing like fn x() -> impl Future<Output = ..>, fn x(x: impl Future<Output = ..>) which would be helped by implementing
I can see how IntoFuture probably doesn't need to be in the prelude (since most people are just .awaiting on things), and I guess I could see Future also not being there.

Oh sorry, I misspoke! I meant to ask whether we need Future and IntoFuture in the prelude, not the standard library. I'll edit my comment.

Most people don't implement Future directly

Yeah, but I would assume more people using them as impl traits in return or arg position, like fn x() -> impl Future<Output = ..>, fn x(x: impl Future<Output = ..>) which would be helped by implementing

That's a good point.
I wonder what the bar is for including things in the prelude is? I'd assume it's for things that essentially all Rust programs will use. Almost every program uses Option and iterators, for example. There are still a sizeable number of programs that don't use async though and therefore don't need to use Future at all.

Yeah, we should talk to the libs team about criteria. Personally, I think we probably don't want to add anything - I reckon a minority of programs involves async code at all and a small minority of those write impl Future or implement a future because most just use async and await. Furthermore, those that do use explicit futures tend to just use them in a few places rather than everywhere, so importing them manually doesn't seem onerous. I think this all applies even more strongly to IntoFuture (aiui, the most common usage is implicitly in await where it doesn't need to be imported at all)

I reckon a minority of programs involves async code at all and a small minority of those write impl Future or implement a future because most just use async and await.

This is something we can validate by searching GitHub:

lang:rust /: Future/: yields 40.000 matches
lang:rust /: Iterator/: yields 80.000 matches
lang:rust /Future/ yields 700.000 matches
lang:rust /Iterator/ yields 400.000 matches

GitHub code search does have a few limitations. For one the search is not case-sensitive. And it also includes lines which are part of comments. But if we interpret this as a rough indicator rather than a precise measurement, it would seem that Future is used about about half as often as iterator in bounds. And likely sees comparable usage elsewhere.
What I'm taking away from this is that the Future trait is probably used often enough that it would be justified for inclusion in the stdlib prelude. The most conservative interpretation of this is that Future is used about half as much as Iterator, one of the most used traits in the stdlib. By-volume that is a lot; and it would seem to me as enough to justify its inclusion. IntoFuture is most definitely used less than the other traits, but it's also only been part of stable Rust for months, not years like the other traits. At least to me it seems that if we're going to put up Future for consideration, IntoFuture should also just come with so it would continue mirroring the Iterator/IntoIterator trait set it was modeled after.
My goal with this comment was to specifically request input from the Async WG for which traits (or even types!) we may want to put forward for inclusion. Once we have a rough consensus among ourselves, I was planning to put it forward to the libs team as an ACP to formally clear the acceptance criteria with them.

This is something we can validate by searching GitHub:

I get completely different numbers here and simply clicking these links gives me bogus results (e.g., results with "lang" and "rust" as the found text). I think that at least the repositories searched depends on the user. So I'm not sure these are reliable numbers. Given that GH search also counts forks as different repos, these are also going to be inaccurate that way too. I think a better count might be by downloading the source to the top 500 crates on crates.io and using grep? Or some similar exercise

I get completely different numbers here and simply clicking these links gives me bogus results (e.g., results with "lang" and "rust" as the found text)

Oh it may be that you don't yet have access to the new code search feature. It's far more accurate than the previous search, and you can do things like lang:rust to scope it just to files written in Rust, and apply regular expressions to look for specific occurrences.

I just stumbled across this post and may actually have the answers available because of another project. Here are the top 50 trait names ranked by average number of explicit mentions in the the top ~1000 Rust projects on GitHub as of November 2022:
Trait NameAvg. Mentions per Project1From30.62132Display18.48283Default17.3684Debug15.91955Send5.636696Iterator5.582257Clone5.379888Drop4.520719PartialEq4.3940810Error4.3526611AsRef3.9668612Sync3.5550313TryFrom3.5289914Deref2.9100615Fn2.6591716IntoIterator2.5940817Into2.3301818FromStr2.178719Eq2.1562120Serialize2.1124321Future1.764522Hash1.7207123PartialOrd1.5822524FnMut1.5798825Write1.543226Deserialize1.5289927Copy1.4035528FnOnce1.371629Ord1.2059230DerefMut1.1763331Stream1.1207132Parse0.94201233Add0.92662734Unpin0.82248535Index0.79053336Read0.7656837ExactSizeIterator0.75739638Visitor0.75384639Encode0.65917240Sealed0.6378741Sub0.6343242Deserializer0.59881743Sized0.58934944AsyncRead0.58343245Mul0.57159846FromIterator0.56923147ToTokens0.56449748AsyncWrite0.55147949Arbitrary0.53136150Service0.478107
Based on this,  Display and Debug should really be in the prelude.Error is also pretty far up the list. But Future is on the cusp, just behind serde's Serialize trait (obviously not in the prelude) but ahead of some prelude traits like Ord, PartialOrd, FnMut, and Copy.
We can also do an over-time comparison between Future and other similar traits, such as Iterator. For a while it looked as if people would soon be mentioning the Future trait almost as much as  Iterator, but the gap has widened since async/await was stabilized:

But looking at only projects with at least one usage of either, we can see that projects which write out Future at all tended to write it out a lot, almost more so than a project which similarly mentions the Iterator trait:

This obviously doesn't compare usage of the respective Iterator::* and Future::* methods when the traits themselves are unnamed (doing trait resolution was well beyond the project scope), but these plots do support the idea that pub use Future should be in the prelude as much as pub use Iterator if not as much as pub use Iterator as _.
We can also break down these mentions of the Future trait by their position in the syntax, to see that people are writing manual impl Future for T impls surprisingly often. The fn() -> impl/dyn Future was on the rise until async/await, then was largely replaced. On the other hand, use of f(_: impl/dyn Future) has been steadily increasing:

Compare this to the Iterator trait, where impl Iterator for T mentions dominate to a greater extent, and where the relative growth of the different syntaxes has remained fairly proportional after the -> impl Iterator syntax was stabilized:

We can also investigate why people still type out fn() -> impl Future at all, when async is available. It is about half as popular as before the async syntax was stabilized. But notice that people customize the lifetimes on returned futures just as much as before:

My take from this is that having Future in the prelude would be nice for a lot of projects even if async/await has reduced that need somewhat. However, other traits might be more important to add.

Since task::{Context, Poll} is also needed to implement Future, including Future in the prelude would be of little use from the standpoint of eliminating import effort during manual implementation. (This also applies to Display and Debug mentioned by @samsartor, which need other items in the fmt module for implementation.)

The data provided by @yoshuawuyts does not appear to be very reliable, as we can see cases from the first page that clearly match irrelevant items (e.g., "S: futures::Stream" is considered to contain one ": Future", or "use futures::future::FutureExt;" is considered to contain three "Future"'s.). It should also be noted that the GitHhub search also searches forks by default.

If other async-related traits are added to the std (e.g., Stream/AsyncIterator), do we want to include them in the prelude as well?

If yes, should we repeat the same discussion in 3 years, or include it in prelude at stabilization?
If no, why is Future trait special and the others are not?

Other traits that are not included in std::prelude but are widely used are std::io traits, which have module-level prelude (std::io::prelude). The "only io-related code needs it" nature of io traits is somewhat similar to async-related traits, where "only async-related code needs it". Maybe we may want to consider the idea regarding module-level prelude (something like std::future::prelude::{Future, AsyncIterator}).

The 2024 prelude is now available behind a flag on nightly. We should consider PR'ing Future and IntoFuture to it.


Couplers

Fixes due to the changes in https://github.com/qiboteam/qibolab/pull/508 when adding coupler support.

@DavidSarlle all those change are already on your PR #54, right ? What is the point on putting them here ?

The point is, if you are testing and checking the physics when using the couplers, you need to add all of them, not only some of them as you did It...

@Jacfomg in the last push I removed some parameters from iqm5q.yml so that the platform creation tests pass with qiboteam/qibolab#508 and we are ready to merge tomorrow. Let me know you if you actually need any of the removed parameters.

I think having the fast reset there was convinient, but also as no other instrument cares about it we can remove it.

I think having the fast reset there was convinient, but also as no other instrument cares about it we can remove it.

If you need it we need to put it in the platform.Settings object in qibolab otherwise the platform creation will fail. But I thought it was not working well anyway so maybe we can put it back when implemented properly.
In principle you can still switch it on using the ExecutionParameters when executing the sequence, like with nshots and relaxation_time. It is just that the default value is False and there is no way to change this.

I will re run the jobs, they should pass now, right ?

I will re run the jobs, they should pass now, right ?

Qibolab 0.1.2 seems to be on pypi so they should pass with both stable and main.

Yeah, I expected so, but only main did


Errors building sdl2

Hi, I'm trying to build sdl2 from sources here:  https://github.com/SDL-mirror/SDL
The cmake config goes fine with the ios toolchain, but builds fail complaining about missing headers, etc.
I use the following steps:
mkdir build-ios && cd build-ios
cmake ..

I never tried this, actually -- IIRC the CMake build is kinda half-done, with particular platforms still having their own buildsystems. You're better off using the officially documented way to build it using the Xcode project they provide. This is how I do it on the CI: https://github.com/mosra/magnum/blob/34261840bc6b2c3e1bf3899605bb638ff687a0ff/package/ci/travis.yml#L232
What I hope for is that at some point SDL will be usable as a CMake subproject. But there's a long way to go, apparently -- https://twitter.com/slurpsmadrips/status/1175866419906408450 (from September, not aware of any new developments on this front). Until then, I'm pretending SDL is not usable with CMake :)

Ah, gotcha, and thanks for the CI reference! The cmakelists file that's inside the git repo seemed to be working for Windows, Mac, and Android, and so I was hoping it would also work for iOS. Would be nice if SDL would become a github repository at some point.


Changelog links to BitBucket backup

Pull requests and commits point to the backup.
Issues point to this repo.

Issues point to this repo.

it looks like the issues are pointing to the gh-pages repo

I guess we'll repeat this for the changelog on other release branches too?

Issues point to this repo.

it looks like the issues are pointing to the gh-pages repo

953816f

it looks like the issues are pointing to the gh-pages repo

Oh thanks, I thought I had caught all of them.

I guess we'll repeat this for the changelog on other release branches too?

Yeah that makes sense. I think it's worth it making a little script for this. I can do that now that the original idea has been approved.

it looks like the issues are pointing to the gh-pages repo

Ouch, I just found those changes on my workspace uncommitted :grimacing: I had also changed [Pull request #] to [BitBucket pull request #], because the numbers may eventually overlap.


Deploy Portfolio Website with Github Pages

The tasks completed:

Portfolio website deployed with Github Pages
Website link:
Updated README with "Life Demo" section
Extra: updated Menu with anchor elements

Thank you so much!
I would appreciate it if you can share tips and tools on how to clean up my code when you have some free time. Being a beginner I do lots of things through trials and intuitively. So, I feel like my stylesheet can be overwhelmed with useless styes. Currently, the only way I figured out to check this is Google dev mode preview.
Thanks in advance,
Best regards!

I'll check it out when I have the time and Reach out to you with recommendations (if I have any) via slack :)


[bn] Localized content/bn/docs/tutorials/kubernetes-basics/create-cluster/_index.md

Signed-off-by: AbdullahArean<EMAIL_ADDRESS>Localized content/bn/docs/tutorials/kubernetes-basics/create-cluster/_index.md in Bengali
This is an intial PR as may need some improvements!
Tracking issue: #31677

/label tide/merge-method-squash

/label tide/merge-method-squash


Gem update

:warning: WIP :warning:

Primary issue seems to be coming from the GeoRuby::GeojsonParser, the custom validator
lib/sequel/plugins/geometry_validation.rb
is raising
  1) Citygram::Routes::Events GET subscriptions/:id/events returns events for a given description
     Failure/Error: events = create_list(:event, 2, publisher: publisher, geom: fixture('intersecting-geom.geojson'))
     Sequel::ValidationFailed:
       geom is an invalid geometry
     # ./lib/sequel/plugins/save_helpers.rb:14:in `save!'
     # ./spec/routes/events_spec.rb:9:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq.rb:9:in `block (2 levels) in <top (required)>'
     # ./spec/support/db_sandbox.rb:3:in `block (2 levels) in <top (required)>'

when an event_list is created, first example I'm looking at is
spec/support/fixtures/intersecting-geom.geojson

$ git diff master Gemfile.lock | grep georuby
-    georuby (2.3.0)
+    georuby (2.5.1)
   georuby (~> 2.1)


⚠ Bofrost.at has degraded performance

In 7070e55, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 881 ms

Resolved: Bofrost.at performance has improved in d4a07b4.


[Feature Request]  Spotify Integration (Adding songs using Spotify Links)

Hi,
I would like to request a very useful feature which is adding songs using Spotify links, using Spotify Developer app ID

It's very useful thing and it will make your bot even better
Regards,
PawelGamer

In the past spotify support was often suggested.
As you see yourself you need a client id and an application at the developers dashboard. This is not suitible as "easy setup" for most users.
The same applies for no YouTube client ID option / setting, which is the cause that many people get 429s from youtube.

Spotify support won't be added for a number of reasons:

Spotify doesn't allow streaming for bots, so the audio couldn't come from Spotify anyway
Looking up the songs in a Spotify playlist would require an additional API key
Finding "matching" songs from a Spotify playlist via YouTube is very unreliable and is better done by hand anyway

Hi, I understand that implementing a Spotify integration would not be possible, but what about a system that automatically converts Spotify playlists/links into YouTube links, just like how Groovy bot does it?

Hi, I understand that implementing a Spotify integration would not be possible, but what about a system that automatically converts Spotify playlists/links into YouTube links, just like how Groovy bot does it?

This would still require a spotify api key, so it won't be added.

Hi, I understand that implementing a Spotify integration would not be possible, but what about a system that automatically converts Spotify playlists/links into YouTube links, just like how Groovy bot does it?

This would still require a spotify api key, so it won't be added.

Ah ok, thanks anyway.


SP is not creating through flyway SQL Server.

Which version and edition of Flyway are you using?
flyway-4.2.0
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
new versions are not supporting
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-Line
Which database are you using (type & version)?
SQL SERVER 2012
Which operating system are you using?
windows
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
Invoke-Flyway -TargetDatabaseOption 5 -ServerName $serverName -Port $port -UserName $userName -Password $password  -CommandToolPath $sqlCommandpath -ScriptsPath $scriptsPath -Environment $environment
What did you expect to see?
Few Stored procedures are not executing with the combination, when i kept the only one SP it is executing properly.
What did you see instead?
incorrect syntax near 'end'
incorrect syntax near 'GO'
like the above errors are coming , error coming with last statement mentioned in the script.
for example : if the last statement is ";".
error is coming as
incorrect syntax near ';'

Please post the smallest stored procedure that Flyway has trouble parsing.

CREATE PROCEDURE [dbo].[uspDeleteGenericImportJournal]
(
@CLID UNIQUEIDENTIFIER,
@CSID UNIQUEIDENTIFIER,
@sheetImportType nvarchar(50),
@JournalIdTable IdTable READONLY
)
AS
BEGIN
DECLARE @LedgerID UNIQUEIDENTIFIER,@GLCOAID UNIQUEIDENTIFIER,@CLCOAID UNIQUEIDENTIFIER,@clientId UNIQUEIDENTIFIER,@NEXTGIJOURNALNO INT,
@CalcCLID UNIQUEIDENTIFIER

SELECT @LedgerID=ACCCS.CIID,@GLCOAID  = LIM.GLCOAID,@clientId=MT.ClientId<EMAIL_ADDRESS>FROM cmscenario CalcCS
INNER JOIN CMLogical EntityCL ON EntityCL.CLID = @CLID
INNER JOIN CMlogical CalcCL WITH(NOLOCK) ON CalcCS.CLID= CalcCL.CLID AND CalcCS.CSID=@CSID AND CalcCL.PLID = EntityCL.CLID
INNER JOIN CMlogical ACCCL WITH(NOLOCK) ON ACCCL.PLID = CalcCL.CLID
INNER JOIN CMScenario ACCCS WITH(NOLOCK) ON ACCCL.CLID = ACCCS.CLID AND ACCCS.CSID=@CSID
INNER JOIN LedgerImportTypeMap LIM WITH(NOLOCK) ON LIM.LEDGERID = ACCCS.CIID
INNER JOIN Maptemplate MT WITH(NOLOCK) ON MT.CID = LIM.GLmapID AND MT.SheetImportType COLLATE Latin1_General_CS_AS = @sheetImportType and IsNewMarkup=1

IF EXISTS (SELECT 1 FROM @journalIdTable)
BEGIN
DELETE FROM JournalLineItem  WHERE JournalID IN (SELECT ID FROM @journalIdTable)
DELETE FROM Journal WHERE ID IN (SELECT ID FROM @journalIdTable)
END
IF EXISTS (SELECT JL.AccountCode as Code,JL.AccountDescription as Description,cast(JL.Amount as varchar(50)) as 'Amount',cast(@CalcCLID as varchar(50)) as 'CLId', JL.LineItemType as Type
FROM Journal J	INNER JOIN Journallineitem JL ON J.ID=JL.JournalID
WHERE J.ledgerid= @LedgerID AND J.SheetImportType COLLATE Latin1_General_CS_AS = @sheetImportType
AND J.IsHistoric = 0)
BEGIN
SELECT JL.AccountCode as Code,JL.AccountDescription as Description,cast(JL.Amount as varchar(50)) as 'Amount',cast(@CalcCLID as varchar(50)) as 'CLId', JL.LineItemType as Type , CAST((CASE WHEN J.Type = 1 THEN 1 ELSE 0 END) AS BIT) IsAdjustment, JL.[SubAccount Code] as 'SubAccount Code', JL.AccountCode as 'Account Code'
FROM Journal J
INNER JOIN Journallineitem JL ON J.ID=JL.JournalID
WHERE J.ledgerid= @LedgerID AND J.SheetImportType COLLATE Latin1_General_CS_AS = @sheetImportType
AND J.IsHistoric = 0
END
ELSE
BEGIN
SELECT '' as Code,'' as Description,'0'as 'Amount',cast(@CalcCLID as varchar(50)) as 'CLId', ''as Type ,  CAST(0 AS BIT) IsAdjustment, '' as 'SubAccount Code', '' as 'Account Code'
END
END
GO
CREATE PROCEDURE [dbo].[usptest]
AS
BEGIN
SELECT 1
END

when i kept only first SP uspDeleteGenericImportJournal , executing properly.
but after that SP what ever i mention as above not executing ...don't know why. please help.

Thanks for reporting. This was indeed a parsing issue and it has now been fixed.


power off by physical push buttons

Is there any way to shut coral board down with physical push buttons?
I've tried using "os.system()" method with python script, but in this way, root permission required.
I am looking for the way to power it down by simply pressing a push button.
Apparently, RaspberryPi OS has the way to do this, to edit 'dtoverlay' in '/boot/config.txt'.
Is there any way? thanks

Hi @sda134 you can try connecting the board as described here, with the below script to shut down the board and  use the crontab to run everytime during boot up.

import board
import digitalio
import os
print("press the button!")

led = digitalio.DigitalInOut(board.GPIO_P16)
led.direction = digitalio.Direction.OUTPUT

button = digitalio.DigitalInOut(board.GPIO_P13)
button.direction = digitalio.Direction.INPUT
# use an external pullup since we don't have internal PU's
#button.pull = digitalio.Pull.UP

while True:
    #led.value = not button.value # light when button is pressed
    if not button.value:
       os.system("sudo shutdown now")

Hi, @hjonnala
Thank you very much for your help!!
Actually, I've already tried using 'os.system()', like "os.system('systemctl poweroff')", but in this way password input required and I didn't like it.
Also, I realised that only I had to do was running the python script with 'root' permission. I choosed running the script with systemd, but I guess with rc.local might also work.
So, kind of this issue is solved,  but the way I really desired  is something like /boot/config.txt in RaspberryPi OS.
I also find out using "devicetree overlay" is must be the way ( which "dtoverlay  in config.txt" really means). But because this is my first try using devicetree overlay, the format of ".dts file" is not clear to me, and looks really complicated.
If you know some example or useful information of devicetree,  could you possibly give me?
thanks a lot.

maybe better posting my .dts file, even a total mess:

/dts-v1/;
/plugin/;
/ {
compatible = "fsl,imx8mq-phanbell";
fragment@0 {
    target-path = "/";
    __overlay__ {
      gpio-keys {
          compatible = "gpio-keys";
          #address-cells = <1>;
          #size-cells = <0>;
          autorepeat;

          pinctrl-names = "default";
          pinctrl-0 = <&gpio_button_0>;
          power_button {
              gpios = <&gpio 0 6 1>; /*  an error occured with GPIO_ACTIVE_LOW;  Does this meen GPIO_P13? */
              linux,code = <116>; /* KEY_POWER */
              label = "GPIO Key Power";
              linux,input-type = <1>;
              gpio-key,wakeup = <1>;
              debounce-interval = <100>;
            };
        };
    };
};

};


How to change python max line?

Hi, how can I set the max line when I code using python?
The default is 120 and I want to set it to 99 chars.
In ~/.vim_runtime/my_configs.vim already add let g:flake8_max_line_length=99 with no luck.
Maybe because this command was already deprecated?
I try my luck using max-line-length = 99, but ale give my error E492: Not an editor command: max-line-length = 99.

I use a flake8 config file located at ~/.config/flake8 with the following lines:
[flake8]
ignore = E221,E226,F403,F401,E402
max-line-length = 100

See http://flake8.pycqa.org/en/latest/user/configuration.html for more details.

@pollackscience We supposed to put that in ~/.vim_runtime/my_configs.vim right? Not in ~/.config/flake8
I do that but give me error E492: Not an editor command: max-line-length = 99.

Your issue might be due to a confusion between Ale (https://github.com/w0rp/ale) and Syntastic (https://github.com/vim-syntastic/syntastic).  Looks like amix recently switched to Ale from Syntastic, so check to make sure you're configuring the correct plugin.  Either way, I think specifying in ~/.config/flake8 should work fine if you're comfortable with doing so... I don't think anyone will arrest you for using a flake8 config instead of a vim plugin config.

@pollackscience I don't see ~/.config/flake8 folder/file. Should I create it manually?

Sorry for the late reply, yes, you can just create it manually.

Thanks for taking care of this @pollackscience 🙏


feat: rewrite basically everything

Performance 🚀 🚀
Code quality 🚀🚀🚀🚀
Code readability 🚀🚀🚀🚀🚀🚀🚀🚀

Also double check all return isErr to make sure they return true when they should 🙏

Done now. Checked on both WSL (Ubuntu) and PowerShell. Turned out the UNIX command checker was quite bugged before after the execa change but now it works fine


Fix --quiet being used with nested subcommands.

This fixes an issue where --quiet doesn't work with commands that have subcommands. This is because config_configure only looks at the global and top-level subcommand, and not deeper subcommands. The issue was that --quiet was not defined as a global flag. This was changed in https://github.com/rust-lang/cargo/pull/6358 in order to give a better help message for cargo test --quiet. I don't remember if clap just didn't support overriding at the time, or if we just didn't know how it worked. Anyways, it seems to work to override it now, so I think it should be fine to mark it as global.
This should bring in --quiet more in-line with how --verbose works. This means that --quiet is now accepted with cargo report, cargo help, and cargo config.
This also fixes --quiet with cargo clean gc.
This should also help with supporting --quiet with the new cargo owner subcommands being added in
https://github.com/rust-lang/cargo/pull/11879.
As for this diff, the help text changes because the --quiet flag is changing position (except for the 3 commands mentioned above where it is now added).
Fixes #12957

@bors r=epage

:pushpin: Commit 80ffb1de1cab451e3bde8a31823e67879d156979 has been approved by epage
It is now in the queue for this repository.

:hourglass: Testing commit 80ffb1de1cab451e3bde8a31823e67879d156979 with merge 2cbbf6e0735132e913ee82acf5669cbe06fc1b14...

:sunny: Test successful - checks-actions
Approved by: epage
Pushing 2cbbf6e0735132e913ee82acf5669cbe06fc1b14 to master...


[AGE System: The Expanse] Character Sheet missing "Toughness"

The new character sheet for the Expanse, under the AGE system sheet does not include a field for Toughness, which should be included with speed, defense, and armor. (Toughness = Constitution Score + Armor Bonus)
Related, the Expanse system allows characters to gain a permanent increase to defense or toughness every 4th level, there is not currently a way to indicate/implement this on the sheet.
Thank you,

@Delastrik I know this is a long time later, but are you able to confirm that your issues were resolved by PR 8507?

This is still an open issue.


Remove busco option to use local db

is this only a temporary fix? I mean if somebody wants to include a busco lineage path it should work as well.

Sort of. I haven't found out why that dir doesn't work. However since this is only the template, one can uncomment it and set it to a working one. The module works as far as I'm aware.


Document MoonPhase.cpp

I have no reason to doubt the correctness of MoonPhase.cpp. However, if you're not intimately familiar with the scientific foundation of the formulas you have no way of verifying the correctness. Two things would help greatly:

those single-char variables should be renamed to something more expressive
document the constants, ideally with references

Never mind, if I did have the necessary scientific understanding - or the time & motivation to learn - I didn't need the documentation 😉


Trouble with libwebkit2gtk-4.0 on Ubuntu 24.04

The libwebkit2gtk doesn't seem to be available on Ubuntu 24.04.
I believe it is an open issue with tauri.
https://github.com/tauri-apps/tauri/issues/9662

Ubuntu 24.04 has 4.1
# apt-cache search libwebkit2gtk
libwebkit2gtk-4.0-doc - WebKitGTK documentation (transitional dummy package)
libwebkit2gtk-4.1-0 - Web content engine library for GTK
libwebkit2gtk-4.1-dev - Web content engine library for GTK - development files

I don't have an Ubuntu 24.04 Desktop available, but what is the actual issue you are running into? Does JET Pilot not run on it? Or are you trying to build it yourself against 24.04?

@unxsist this is during build with apt-get install


[Android][64-bit] Fix launching app crash.

Use correct method to get native library path.
BUG=XWALK-5219

lgtm, will merge after trybot green


Wasm: Add basic AudioWorklet container example

This PR adds a basic AudioWorklet container for the Wasm files produced by HipHap AssemblyScript plugins.
This allows the plugin to be loaded as an AudioWorklet in the browser.
Notes:

@assemblyscript/loader is vendored in for two reasons: a) Skip the build step when you are in JS land. b) The original is using the TextDecoder interface for strings which isn't available in the AudioWorklet context. Though we are actually using only a few of the loader's interfaces, this should be better solved in AssemblyScript's source code so the loader will be tree-shakeable at some point in the future. Currently it's here as convienience and because it solves the problem but in the future it should be extracted out / pulled from some registry.

Wow this is great, thanks a lot! is there a quick command for launching the demo? it won't run from file://
Also the astest demo will likely be merged into webgain by the time Wasm support is finished, or evolve into a better independent demo (without the -test suffix).  But that shouldn't require too much changes to this PR.

Thanks for the merge!

Wow this is great, thanks a lot! is there a quick command for launching the demo? it won't run from file://

Any http server will do. Simplest: python -m SimpleHTTPServer or something like live-server.


Used custom pickler

This is a part of mila-udem/blocks#615.

The logic of num_batches argument changed now. It is not possible to continue an experiment with a different number of batches.

I think we need an extension like LoadFromDump which can work with custom pickler.

But isn't that just the Load extension you wrote? You could just give it a few keyword arguments that determine which parts to load (log, parameters, iteration state).

Oh, and you'd probably want to change it then so that if someone wants to load only the parameters, numpy.load is used instead of pickle, so that the parameter loading is actually robust across platforms and stuff.


Add public API to send an unsolicited pong message

This can be used as a unidirectional heartbeat. See RFC6455

I ran the script but it shows mostly changes in unrelated files I didn't touch. Only one change was in my code. I only fixed that one change. Formatting other stuff should be its own PR I suppose.


About Using Table Variables: "Consider using a standard table or temporary table to hold the results of multi-statement table-valued functions (mstvf)."

Massive differences occur in performance using temporary tables:
Example below derived in database in Compatibility Level 130.
Using TABLE INT self joining takes (eg) 8 seconds.
Using TABLE INT (Primary Key) self joining takes (eg) 0 seconds.
 It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 82e5062c-ab80-eace-5cbb-8868c17014c3
Version Independent ID: 7bcb85b7-ee68-ae1c-5385-91f6db828c06
Content: Statistics - SQL Server
Content Source: docs/relational-databases/statistics/statistics.md
Product: sql
Technology: performance
GitHub Login: @julieMSFT
Microsoft Alias: jrasnick

@Alocyte -- thank you for your feedback.
@julieMSFT -- please look into this potential documentation issue.

@Alocyte Hello and thank you for contacting Microsoft. I see the differences in execution times in your example.
You said "Massive differences occur in performance using temporary tables' yet you use a table variable in your example not a temporary table. Can you provide me more information on what you think the article is not stating correctly?

Hi JulieMSFT
I seem to have lost the context of the statement I made - this response comes on 26 June to WilliamAntonRohm's request on 13 May. This page,  https://github.com/MicrosoftDocs/sql-docs/issues/4762, is contextless.
I don't believe I understood your question correctly- it seems to state I misunderstood the nature of the temporary table within a multi-statement function? And from the link, you are meaning I should be utilising a #table?
CREATE FUNCTION dbo.fn_Test(@Int1 INT, @Int2 INT)
RETURNS @TABLE TABLE ( Int1 INT, Int2, Result INT)
AS
BEGIN
IF OBJECT_ID('TempDB.dbo.#fn_Test_TemporaryTable') IS NOT NULL
DROP TABLE #fn_Test_TemporaryTable
CREATE TABLE #fn_Test_TemporaryTable
( Int1 INT, Int2 INT, Result AS Int1 * Int2)
INSERT INTO #fn_Test_TemporaryTable (Int1, Int2)
VALUES (Int1, Int2)
RETURN (SELECT * FROM #fn_Test_TemporaryTable)

END
GO
Msg 2772, Level 16, State 1, Procedure fn_Test, Line 9 [Batch Start Line 0]
Cannot access temporary tables from within a function.

@Alocyte Hi, thank you for your response. I am confused by this submission. The title and the comments do not seem to match. the comment is  "Massive differences occur in performance using temporary tables" yet the example does not use a temporary table and the difference in performance seems to be from a table with a primary key vs a heap table. Can you restate your original concern to help me understand what you think should be different in this document?

HI @julieMSFT
Please provide a link to the original article my submission targeted.
Thanks

@Alocyte Hi, this is the article this issue was attached to, https://docs.microsoft.com/en-us/sql/relational-databases/statistics/statistics?view=sql-server-ver15&source=docs.

Well, I too am confused. Statistics... huh.
My statement elaborated how creating a clustered index on a table variable,
made a disproportionately massive difference to the query's execution speed.
[ 1 sec vs 9 sec for 10000 rows self joining on an integer field]
That has nothing to do with statistics.
Ok then.


Code Review #1

This PR includes all changes/additions to code up until April 10th.

I looked at every comment you made and tried my best to follow them. This is an old PR, so I'm going to close it. My changes will be merged into develop very soon.


proctl_test.go:23: Launch(): could not fork/exec

Running make test on a mac, I get the above error.
Subsequently, when I try make install, it installs without complaint, but when dlv run, it doesn't allow any subcommands (Command failed: debugger isn't running)
See output from make test, below (note that I sprintf'd the return value of C.fork_exec incase it helps. It returns '-1').
Please let me know if you need any more info. Ta.
➜  delve git:(master) ✗ sw_vers -productVersion
10.10.2
➜  delve git:(master) ✗ CERT=dlv-cert make test
go test github.com/derekparker/delve/terminal github.com/derekparker/delve/dwarf/frame github.com/derekparker/delve/dwarf/op github.com/derekparker/delve/dwarf/util github.com/derekparker/delve/source github.com/derekparker/delve/dwarf/line
ok      github.com/derekparker/delve/terminal   0.028s
ok      github.com/derekparker/delve/dwarf/frame        0.006s
ok      github.com/derekparker/delve/dwarf/op   0.005s
ok      github.com/derekparker/delve/dwarf/util 0.006s
ok      github.com/derekparker/delve/source     0.007s
ok      github.com/derekparker/delve/dwarf/line 0.173s
cd proctl && go test -c github.com/derekparker/delve/proctl && codesign -s dlv-cert ./proctl.test && ./proctl.test  && rm ./proctl.test
--- FAIL: TestExit (0.15s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestHalt (0.16s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestStep (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestBreakPoint (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestBreakPointInSeperateGoRoutine (0.16s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestBreakPointWithNonExistantFunction (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestClearBreakPoint (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestNextGeneral (0.16s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestNextGoroutine (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestNextFunctionReturn (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestNextFunctionReturnDefer (0.16s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestRuntimeBreakpoint (0.16s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestFindReturnAddress (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestSwitchThread (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestFunctionCall (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestVariableEvaluation (0.17s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestVariableFunctionScoping (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
--- FAIL: TestLocalVariables (0.00s)
proctl_test.go:23: Launch(): could not fork/exec -1
FAIL
make: *** [test] Error 1

You have to provide an environment variable that specifies the cert to sign the program with. Delve must be codesigned on OSX, even some of the test binaries.
I will update the makefile to give a more meaningful error if that env var isn't there, however have you taken the steps to create a self signed cert? The steps are outlined in the README.

Yes I did that - you can see in the shell output CERT=dlv-cert make test.
Sorry, I  didn't clarify it in the initial description.
So, yes I created the self-signed certificate, and also added the exception
which permits codesign to use the cert without asking for authentication.
Thanks for the speedy response, and BTW delve is awesome (I've been using
it on Linux a little bit already)
On Wed, May 20, 2015 at 2:10 AM, Derek Parker<EMAIL_ADDRESS>wrote:

You have to provide an environment variable that specifies the cert to
sign the program with. Delve must be codesigned on OSX, even some of the
test binaries.
I will update the makefile to give a more meaningful error if that env var
isn't there, however have you taken the steps to create a self signed cert?
The steps are outlined in the README.
—
Reply to this email directly or view it on GitHub
https://github.com/derekparker/delve/issues/134#issuecomment-103512729.

Ah, should have looked a little closer! Sorry about that.
A few questions:

Were you able to test/compile Delve correctly before using this cert?
What version are you running? (git SHA is fine)

Thanks, I really appreciate that!

Hi, no those test cases for the proctl package are failing, with or without the cert - same errors. But I could run go test on all the other packages. Note, when run as root, go test (in proctl) and CERT=dlv-cert make test both work OK. So, I guess its a permissions problem.
I did some printf-ing to get more info from the C code, which led me towards the task_for_pid call in proctl_darwin.c, which is returning 5 instead of 0. I'm totally out of my depth with the mach stuff - I'm hoping it means more to you than it does to me.
Cheers

My delve version:
bash-3.2$ git log -1
commit 7cb6480142a727faa5378cc098e8b64d48a336c6
Author: Derek Parker<EMAIL_ADDRESS>Date:   Fri May 15 15:32:47 2015 -0500

@laher sorry for the delay in getting back to you. So, to clarify, were you able to use that same cert to successfully run the tests previously? If that cert never worked before, it could just be an issue with the CERT that was created.

No I haven't been able to run the tests with the cert, so you're probably right. I'll try re-creating a cert and do some more diagnostics on it if I run into problems. I'll let you know once I get a chance to look into it. Ta

Sounds good, if you happen to fix the issue by regenerating a cert just close this issue out.

I need to +1 here and say I have the same problem. Followed the guide and the cert exists in my system keychain.
commit c692f620055782d7be2405ad8af937cfb8ee59a4
Author: Derek Parker<EMAIL_ADDRESS>Date:   Tue Jun 2 08:26:35 2015 -0500

$ sw_vers -productVersion
10.10.3

cd proctl && go test -c github.com/derekparker/delve/proctl && codesign -s dlv-cert ./proctl.test && ./proctl.test  && rm ./proctl.test
--- FAIL: TestExit (0.25s)
	proctl_test.go:23: Launch(): could not fork/exec
--- FAIL: TestHalt (0.24s)
	proctl_test.go:23: Launch(): could not fork/exec
...
etc.

Worth adding the signing is present on my main dlv command similar issue with 'debugger isn't running'
➜  delve git:(master) codesign -d ~/gopath/bin/dlv -vvvv
Executable=/Users/leepa/gopath/bin/dlv
Identifier=org.dlv
Format=Mach-O thin (x86_64)
CodeDirectory v=20100 size=35776 flags=0x0(none) hashes=1784+2 location=embedded
Hash type=sha1 size=20
CDHash=96ba97f10598163487827ddafe7a6cdadb4f51e6
Signature size=1232
Authority=dlv-cert
Signed Time=10 Jun 2015 15:19:38
Info.plist entries=4
TeamIdentifier=not set
Sealed Resources=none
Internal requirements count=2 size=248

Last week I tried some new certs and got no further.
But today I just git pulled, and seem to have got a bit further.
It seems to sort-of attach now, but the only thing that sorta works is 'continue' (if I invoke continue as the first command), and it can't seem to find the source.
So, here it is on a basic "Hello world!" app:
dlv run
Type 'help' for list of commands.
(dlv) continue
Hello world!Stopped at: 0x0
=>    no source available
When I run various other commands, I get the following:
dlv run
Type 'help' for list of commands.
(dlv) step
Stopped at: 0x7fff6d2c6001
=>    no source available
(dlv) goroutines
[0 goroutines]
(dlv) threads

Thread 10499 at :0
(dlv) info args
Command failed: unable to find function context
(dlv) info locals
Command failed: unable to find function context
(dlv) next
Command failed: error derefing defer could not read memory
(dlv) continue
Command failed: could not get registers: could not get registers

... info sources and info funcs give very long outputs, but seem to be working OK
Cheers

@laher are you able to run the tests now? Can you point me to the source code of the program you're trying to debug in the last example?

Yes, I can run the tests now. BUT, only if I cd into the proc folder and run the sequence of commands directly (cd proc && go test -c ... && codesign ... && ./proc.test ...). Otherwise it fails with an import path error. I think that problem is a weird idiosyncrasy of go test -c, which also happens on Linux if I use go test -c on the proc package. I can create another ticket for that with details, because I think it's a new problem.
Here's my 'Hello world' (I previously tried more substantial programs - same result):
package main

import "fmt"

func main() {
	fmt.Printf("Hello world!")
}

@laher definitely make a ticket about that make path issue, I have made some changes to the Makefile which could be causing that issue.

Hey! You fixed that path issue. I was just making a pull request, and then I realised it was already fixed. Sweet as.

I had the same issue, until I killed taskgated as per the instructions:
$ ps -ax | grep taskgated
$ sudo kill 107  #the process ID that printed for me from the above grep

I then re-ran the tests, and re-built Delve, everything proceeded fine from this point forward.

Going to close this issue as it should be solved. Please reopen if not.

I cannot reopen, I think, as I am not the original submitter, but I am having the same issue as well. Tried the above steps in various combinations (killing taskgated, created several certificates, etc): still the "could not fork/exec" issue persists.

How should I do?

In my case, in addition to "Allow all access" at private key.

I have to set "Alway Trust" at certificate.

Then it finally works.

I should note that delve now works for me on my mac, since about 2 months
ago.
I did nothing except to get-latest, and rebuild. ¯_(ツ)_/¯
On Wed, Feb 24, 2016 at 2:03 AM, Orson Wang<EMAIL_ADDRESS>wrote:

In my case, in addition to "Allow all access" at private key.
[image: screen shot 2016-02-23 at 20 57 45]
https://cloud.githubusercontent.com/assets/422107/13252267/bd4926aa-da70-11e5-9210-99b503218387.png
I have to set "Alway Trust" at certificate.
[image: screen shot 2016-02-23 at 20 58 48]
https://cloud.githubusercontent.com/assets/422107/13252280/d6dffe22-da70-11e5-9b80-28d150c5aa59.png
Then it finally works.
—
Reply to this email directly or view it on GitHub
https://github.com/derekparker/delve/issues/134#issuecomment-187690184.

That's good. it's only the record of I trying to figure out how to making it work on my OSX 10.11.4 Beta and golang 1.6.

go version go1.6.2 darwin/amd64
Delve Debugger
Version: 0.11.0-alpha
Build: 8b4abf59987ccc15040c70b1251ace0515c0397c
OSX 10.11.5

Only sudo dlv debug works for me without sudo I get
could not launch process: could not fork/exec
Also it's not clear how you can test the certificate.
package main
import "C"
func main() {
    println("hello")
}

Assuming if this works without sudo, all certificate steps are done correctly and it's not the certificate or the permissions of the certificate?
go build -ldflags -s main.go
go build main.go
codesign -s delve-cert main
./main
hello

@gertcuykens: try installing with homebrew (either the permissions on the certificate are wrong or taskgated wasn't restarted): https://github.com/go-delve/homebrew-delve

I will try that and it probably will work but aside from that in my above question, what is the reason I can use the same certificate in the same state as dlv was signed in and make a hello world app run without sudo? There must be yet another permission setting not mentioned in this thread. For me it's important that we understand all aspects of this. Not just homebrew magic :) So basicly I want a test case other then dlv itself that gives me the exact same error message could not launch process: could not fork/exec running a hello world example. Thank you :)

There is no other setting, you either missed one step or did not restart taskgated. Your helloworld example does not test the certificate because it doesn't do anything that requires a certificate.

Ok make sense thank you, can you maybe add a few lines to the hello world example that would use the certificate and generate the same error? I really want to understand what is going on, and from there figure out if we could make better error messages. Just need the basics then I will direct my questions to stackoverflow to dissect more into this.

Take a look at proc.Launch in proc/proc_darwin.go and also fork_exec in proc/exec_darwin.c, that's where the message comes from. You should also check out the branch at #525 since some of this code is about to change.
You could also look at this

brew install go-delve/delve/delve --HEAD
Worked, but I notice that the new key has different permission than documented
generated brew key

my key

Everything else is the same, can it be confirmed please by others that you need more permissions than documented?

@gertcuykens: if you make test using your key does it work now?

Both certificates seem to be working now, indicating the restart taskgated was not successful the first time but still I am convinced it was restarted the first time for sure. So the question now would be can you make the brew certificate only Trust Code Signing?
make test
go test -exec=/Users/gert/go/src/github.com/derekparker/delve/scripts/testsign -ldflags="-s -X main.Build=8b4abf59987ccc15040c70b1251ace0515c0397c" github.com/derekparker/delve/cmd/dlv github.com/derekparker/delve/cmd/dlv/cmds github.com/derekparker/delve/config github.com/derekparker/delve/dwarf/frame github.com/derekparker/delve/dwarf/line github.com/derekparker/delve/dwarf/op github.com/derekparker/delve/dwarf/reader github.com/derekparker/delve/dwarf/util github.com/derekparker/delve/proc github.com/derekparker/delve/proc/test github.com/derekparker/delve/service github.com/derekparker/delve/service/api github.com/derekparker/delve/service/debugger github.com/derekparker/delve/service/rpc1 github.com/derekparker/delve/service/rpc2 github.com/derekparker/delve/service/test github.com/derekparker/delve/service/test/cmd github.com/derekparker/delve/terminal github.com/derekparker/delve/version
?   	github.com/derekparker/delve/cmd/dlv	[no test files]
?   	github.com/derekparker/delve/cmd/dlv/cmds	[no test files]
?   	github.com/derekparker/delve/config	[no test files]
ok  	github.com/derekparker/delve/dwarf/frame	0.170s
ok  	github.com/derekparker/delve/dwarf/line	0.415s
ok  	github.com/derekparker/delve/dwarf/op	0.180s
?   	github.com/derekparker/delve/dwarf/reader	[no test files]
ok  	github.com/derekparker/delve/dwarf/util	0.163s
Hello, World!
Hello, World!
past main
foo
--- FAIL: TestNextConcurrent (0.40s)
	proc_test.go:80: failed assertion at proc_test.go:415: EvalVariable - could not read memory
--- FAIL: TestNextConcurrentVariant2 (0.10s)
	proc_test.go:80: failed assertion at proc_test.go:452: EvalVariable - could not read memory
foo
Hello, World!
bye
hi
hi
hi
hi
Fri May 20 13:09:15 CEST 2016
default
id: 1 step: 0 sleeping 8
id: 2 step: 0 sleeping 2
id: 2 step: 1 sleeping 8
id: 1 step: 1 sleeping 10
id: 2 step: 2 sleeping 2
id: 1 step: 2 sleeping 9
id: 2 step: 3 sleeping 6
id: 1 step: 3 sleeping 1
id: 2 step: 4 sleeping 7
id: 1 step: 4 sleeping 1
id: 2 step: 5 sleeping 5
id: 1 step: 5 sleeping 2
id: 2 step: 6 sleeping 3
id: 1 step: 6 sleeping 10
id: 2 step: 7 sleeping 9
id: 1 step: 7 sleeping 5
id: 2 step: 8 sleeping 2
id: 1 step: 8 sleeping 6
id: 2 step: 9 sleeping 8
id: 1 step: 9 sleeping 7
id: 2 step: 10 sleeping 6
id: 1 step: 10 sleeping 7
id: 2 step: 11 sleeping 9
id: 1 step: 11 sleeping 9
id: 2 step: 12 sleeping 8
id: 1 step: 12 sleeping 8
id: 2 step: 13 sleeping 8
id: 1 step: 13 sleeping 9
id: 2 step: 14 sleeping 1
id: 1 step: 14 sleeping 6
id: 2 step: 15 sleeping 2
id: 1 step: 15 sleeping 9
id: 2 step: 16 sleeping 8
id: 1 step: 16 sleeping 2
id: 2 step: 17 sleeping 10
id: 1 step: 17 sleeping 7
id: 2 step: 18 sleeping 8
id: 1 step: 18 sleeping 2
id: 2 step: 19 sleeping 6
id: 1 step: 19 sleeping 7
id: 2 step: 20 sleeping 4
id: 1 step: 20 sleeping 1
id: 2 step: 21 sleeping 5
id: 1 step: 21 sleeping 4
id: 1 step: 22 sleeping 4
id: 2 step: 22 sleeping 8
id: 1 step: 23 sleeping 9
id: 2 step: 23 sleeping 5
id: 1 step: 24 sleeping 10
id: 2 step: 24 sleeping 4
id: 1 step: 25 sleeping 8
id: 2 step: 25 sleeping 2
id: 1 step: 26 sleeping 10
id: 2 step: 26 sleeping 10
id: 1 step: 27 sleeping 1
id: 2 step: 27 sleeping 6
id: 1 step: 28 sleeping 9
id: 2 step: 28 sleeping 9
id: 1 step: 29 sleeping 4
id: 2 step: 29 sleeping 6
id: 1 step: 30 sleeping 2
id: 2 step: 30 sleeping 1
id: 1 step: 31 sleeping 6
id: 2 step: 31 sleeping 7
id: 1 step: 32 sleeping 7
id: 2 step: 32 sleeping 9
id: 1 step: 33 sleeping 2
id: 2 step: 33 sleeping 3
id: 1 step: 34 sleeping 4
id: 2 step: 34 sleeping 7
id: 1 step: 35 sleeping 4
id: 2 step: 35 sleeping 7
id: 1 step: 36 sleeping 3
id: 2 step: 36 sleeping 9
id: 1 step: 37 sleeping 8
id: 2 step: 37 sleeping 5
id: 1 step: 38 sleeping 8
id: 2 step: 38 sleeping 4
id: 1 step: 39 sleeping 7
id: 2 step: 39 sleeping 1
id: 1 step: 40 sleeping 4
id: 2 step: 40 sleeping 4
id: 1 step: 41 sleeping 8
id: 2 step: 41 sleeping 4
id: 1 step: 42 sleeping 2
id: 2 step: 42 sleeping 10
id: 1 step: 43 sleeping 4
id: 2 step: 43 sleeping 4
id: 1 step: 44 sleeping 2
id: 2 step: 44 sleeping 3
id: 1 step: 45 sleeping 9
id: 2 step: 45 sleeping 7
id: 1 step: 46 sleeping 7
id: 2 step: 46 sleeping 8
id: 1 step: 47 sleeping 1
id: 2 step: 47 sleeping 4
id: 1 step: 48 sleeping 3
id: 2 step: 48 sleeping 4
id: 1 step: 49 sleeping 6
id: 2 step: 49 sleeping 9
id: 1 step: 50 sleeping 6
id: 2 step: 50 sleeping 2
id: 1 step: 51 sleeping 6
id: 2 step: 51 sleeping 8
id: 1 step: 52 sleeping 8
id: 2 step: 52 sleeping 1
id: 1 step: 53 sleeping 1
id: 2 step: 53 sleeping 6
id: 1 step: 54 sleeping 1
id: 2 step: 54 sleeping 3
id: 1 step: 55 sleeping 9
id: 2 step: 55 sleeping 4
id: 1 step: 56 sleeping 2
id: 2 step: 56 sleeping 3
id: 1 step: 57 sleeping 5
id: 2 step: 57 sleeping 8
id: 1 step: 58 sleeping 8
id: 2 step: 58 sleeping 8
id: 1 step: 59 sleeping 2
id: 2 step: 59 sleeping 5
id: 1 step: 60 sleeping 7
id: 2 step: 60 sleeping 3
id: 1 step: 61 sleeping 2
id: 2 step: 61 sleeping 10
id: 1 step: 62 sleeping 7
id: 2 step: 62 sleeping 1
id: 1 step: 63 sleeping 4
id: 2 step: 63 sleeping 7
id: 1 step: 64 sleeping 10
id: 2 step: 64 sleeping 2
id: 1 step: 65 sleeping 3
id: 2 step: 65 sleeping 6
id: 1 step: 66 sleeping 6
id: 2 step: 66 sleeping 1
id: 1 step: 67 sleeping 8
id: 2 step: 67 sleeping 10
id: 1 step: 68 sleeping 9
id: 2 step: 68 sleeping 9
id: 1 step: 69 sleeping 5
id: 1 step: 70 sleeping 4
id: 2 step: 69 sleeping 5
id: 1 step: 71 sleeping 8
id: 2 step: 70 sleeping 3
id: 1 step: 72 sleeping 3
id: 2 step: 71 sleeping 7
id: 1 step: 73 sleeping 10
id: 2 step: 72 sleeping 1
id: 1 step: 74 sleeping 7
id: 2 step: 73 sleeping 2
id: 1 step: 75 sleeping 7
id: 2 step: 74 sleeping 1
id: 1 step: 76 sleeping 2
id: 2 step: 75 sleeping 5
id: 1 step: 77 sleeping 5
id: 2 step: 76 sleeping 6
id: 1 step: 78 sleeping 4
id: 2 step: 77 sleeping 2
id: 1 step: 79 sleeping 1
id: 2 step: 78 sleeping 3
id: 1 step: 80 sleeping 9
id: 2 step: 79 sleeping 8
id: 1 step: 81 sleeping 2
id: 2 step: 80 sleeping 9
id: 1 step: 82 sleeping 5
id: 2 step: 81 sleeping 3
id: 1 step: 83 sleeping 4
id: 2 step: 82 sleeping 3
id: 1 step: 84 sleeping 9
id: 2 step: 83 sleeping 4
id: 1 step: 85 sleeping 9
id: 2 step: 84 sleeping 7
id: 1 step: 86 sleeping 1
id: 2 step: 85 sleeping 6
id: 1 step: 87 sleeping 1
id: 2 step: 86 sleeping 5
id: 1 step: 88 sleeping 3
id: 2 step: 87 sleeping 8
id: 1 step: 89 sleeping 6
id: 2 step: 88 sleeping 2
id: 1 step: 90 sleeping 10
id: 2 step: 89 sleeping 1
id: 1 step: 91 sleeping 4
id: 2 step: 90 sleeping 1
id: 1 step: 92 sleeping 10
id: 2 step: 91 sleeping 1
id: 1 step: 93 sleeping 4
id: 2 step: 92 sleeping 1
id: 1 step: 94 sleeping 5
id: 2 step: 93 sleeping 8
id: 1 step: 95 sleeping 1
id: 2 step: 94 sleeping 6
id: 1 step: 96 sleeping 3
id: 2 step: 95 sleeping 10
id: 1 step: 97 sleeping 1
id: 2 step: 96 sleeping 9
id: 1 step: 98 sleeping 7
id: 2 step: 97 sleeping 6
id: 1 step: 99 sleeping 7
id: 2 step: 98 sleeping 1
id: 2 step: 99 sleeping 7
2
0
1
2
hi 1
hi 3
hi 2
hi 3
hi 2
hi 0
hi 1
hi 0
hi 1
hi 1
hi 3
hi 3
hi 9
hi 0
hi 9
hi 6
hi 4
hi 4
hi 6
hi 0
hi 2
hi 2
[]
[Todd]
[]
[Todd]
[Todd]
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac", "test"}
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac", "test", "pass flag"}
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac", "test pass", "flag"}
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac", "test", "pass", "flag"}
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac", "test pass flag"}
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac"}
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac", "invalid"}
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac", "test", "invalid"}
received args []string{"/var/folders/dv/8tlwvjr91zjdyq4rk14lkkfm0000gn/T/testargs.36f732ac", "invalid", "pass flag"}
Start
Receive signal interrupt
End
FAIL
FAIL	github.com/derekparker/delve/proc	23.624s
?   	github.com/derekparker/delve/proc/test	[no test files]
?   	github.com/derekparker/delve/service	[no test files]
?   	github.com/derekparker/delve/service/api	[no test files]
?   	github.com/derekparker/delve/service/debugger	[no test files]
?   	github.com/derekparker/delve/service/rpc1	[no test files]
?   	github.com/derekparker/delve/service/rpc2	[no test files]
Hello, World!
Hello, World!
Hello, World!
Hello, World!
Hello, World!
foo
foo
Hello, World!
foo
Hello, World!
hi
hi
hi
hi
hi
hi
Hello, World!
hi 9
hi 9
hi 5
hi 3
hi 3
hi 7
hi 5
hi 7
hi 1
hi 4
hi 1
hi 6
hi 6
hi 4
hi 8
hi 8
hi 0
hi 2
hi 0
hi 2
--- FAIL: Test1ClientServer_CondBreakpoint (0.39s)
	common_test.go:17: failed assertion at integration1_test.go:967: Continue() - Process 2341 has exited with status 0
Start
Node: root
	Disabled: false
	Redirect IP:
	Exclude(s):
	Include(s):
----------
Node: hosts
	Disabled: false
	Redirect IP: <IP_ADDRESS>
	Exclude(s):
		rackcdn.com
		schema.org
	Include(s):
		msdn.com
		badgits.org
	Source: hpHosts
		Disabled: false
		Description:
		Prefix: <IP_ADDRESS>
		URL: http://www.bonzon.com
----------
Node: domains
	Disabled: false
	Redirect IP:
	Exclude(s):
	Include(s):
----------

&{false <IP_ADDRESS> [msdn.com badgits.org] [rackcdn.com schema.org] map[hpHosts:0xc820010280]}
Hello, World!
Hello, World!
Hello, World!
Hello, World!

FAIL	github.com/derekparker/delve/terminal	600.012s
?   	github.com/derekparker/delve/version	[no test files]
make: *** [test] Error 1


Support ADD / COPY directives when building an image

Question:
Where should I put my Jar package when I build a new image?I try a few pathes, but failed,here is the output:
lstat sharkey-0.0.1-SNAPSHOT.jar: no such file or directory
here is my Dockerfile:
FROM java:8
MAINTAINER Sharkey
ADD sharkey-0.0.1-SNAPSHOT.jar  sharkey.jar
EXPOSE 9090
ENTRYPOINT ["java", "-jar", "sharkey.jar"]
and I just upload my Jar package to /usr/local/docker_file/portainer/data, and I use the following command to start portainer
docker run -d -p 9000:9000 -v /usr/local/docker_file/portainer/data:/data

@SharkeyChen Portainer do not support build context at the moment when building an image from the UI. This means it is not possible to use the COPY / ADD instructions when building an image from within Portainer.
Will rename this issue and tag it as a feature request.

Thank you！

Greetings @deviantony!
Is this issue available for discussion? If it is, I'd like to have a go at it. I had a solution in mind. I'm not too sure if it is feasible or not, but I'd love to discuss it and see if we can get to something that works.
Thank you!

@DarkAEther yes feel free to discuss it in here.

Thank you!
Idea Description:
Inputs from user:

Dockerfile (either Web editor or upload)
folder path (optional - more info below)

Approach:

Portainer launches a new "build" container. This container can be of a suitable base image that has docker installed as well as maybe an API to provide the Dockerfile for the build.
Build container has 2 volumes attached - the unix docker socket and the folder path the user specified earlier.
The folder path mount to the build container will serve as the environment for the build. The user can use this folder (on the host OS) to place any files that need to be included into the new image.
The build container builds the image and is destroyed after the build is completed.

This is just a rough idea that I thought of based on my basic knowledge of docker. If there is anything that I may have gotten wrong or if there is something that isn't feasible, please do let me know. I'd be happy to receive feedback :)
Thank you!

Hey @DarkAEther this might be trickier than it sound to work on, I'm not sure there is an easy way to achieve this.
Your use case/approach might be valid in the context of a local Portainer deployment (socket), but we need to keep in mind that this feature should ultimately work with remote endpoints (Docker API, agent, edge agent) as well as different platforms (windows named pipe VS unix socket).
We're currently pretty busy on other topics so I might not be able to help you design this one at the moment.

Your use case/approach might be valid in the context of a local Portainer deployment (socket), but we need to keep in mind that this feature should ultimately work with remote endpoints (Docker API, agent, edge agent) as well as different platforms (windows named pipe VS unix socket).

I see. Portability and compatibility are definitely essential. Perhaps a new approach may present itself as I explore docker further.

We're currently pretty busy on other topics so I might not be able to help you design this one at the moment.

That's alright. Hopefully this one can be discussed further and worked on once workload decreases.
Thank you!

Any news on this issue? I have a Dockerfile with a COPY command, and using the current version of Portainer, I still get an error during build stage when the COPY instruction is encountered for the first time.

RUN pip3 install --user git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI

WORKDIR /

CMD ["/bin/bash", "-c", "jupyter notebook --allow-root --ip='<IP_ADDRESS>' --no-browser --NotebookApp.token=''"]

Now that version 2.0 is out, do you think you may work on this feature?

2 Years have passed; has any progress been made on this front? I have to admit it's a whole lot easier using a web UI for the dozens (or in my case, hundreds) of quick-change tests than using the command line.

You can add local files and use COPY when building an image: https://github.com/portainer/portainer/issues/7796#issuecomment-1289772553


"Eternal Upload" when file size > space available

Hi!
I know: I can check if my file fits on drive space before start the upload. But, if I don't do this, and start uploading a file bigger than the remaining drive space, the upload never ends, and never tell me any message.
It's possible to implement a error message when the upload exceeds the drive space?
Thank you.

Same issue here.
it opens more and more connections until the max open files limit is exceeded on linux and then quits, would like to see that fixed too

In gdrive 2 the upload will timeout when no data has been transferred for a while, I think that should solve this problem.


make project compatible for django 3.x

怎么下载这个版本啊？我看master里面没有修改啊

i don't know how to download the fixed version, so i downloaded the version for django2.0, then i correct the "import six" one by one.... , thank u very much.
At 2020-02-08 22:58:53, "doubleli1210"<EMAIL_ADDRESS>wrote:
@doubleli1210 commented on this pull request.
In xadmin/filters.py:

@@ -6,21 +6,21 @@
from django.utils import timezone
from django.template.loader import get_template
from django.template.context import Context
-from django.utils import six

yes
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

deal auther:
can you public you own repository（russell310:django3）? I want clone your changes so that my django3.2 can adapt the xadmin.
Thanks.


BUG: No visible boundary

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
At many instances in the webpage, there are cards whose boundaries are not visible in dark mode.
For example, in light mode:

In dark mode:

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@anuragverma108 this issue was raised by me.


Refactor create-platformatic

Opening as draft because I am in the middle of working on #1592 and this refactor was needed.
I will merge 1592 in this PR then I'll merge in main
Fixes: #1610

Closing as this was included in #1592


Updating existing data?

Current implementation does not handle case, when existing data needs to be updated. Here is a test case code that illustrates this:
import sqlalchemy as sa

from jsontableschema_sql import Storage

def test_update():
    schema = {
        'primaryKey': 'id',
        'fields': [
            {'name': 'id', 'type': 'integer'},
            {'name': 'comment', 'type': 'string'},
        ]
    }

    storage = Storage(engine=sa.create_engine('sqlite://'))
    storage.create('data', schema)

    # Write data for the first time
    storage.write('data', [(1, 'a'), (2, 'b')])
    assert list(storage.read('data')) == [(1, 'a'), (2, 'b')]

    # Write changed data with same primary keys on top of existing ones
    storage.write('data', [(1, 'x'), (2, 'b')])
    assert list(storage.read('data')) == [(1, 'x'), (2, 'b')]

This test raises following error on second write:
sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError)
UNIQUE constraint failed: data.id
[SQL: 'INSERT INTO data (id, comment) VALUES (?, ?)']
[parameters: ((1, 'x'), (2, 'b'))]

It would be nice if existing data could be updated.

I did some experiments:
https://gist.github.com/sirex/5e1ceac90bf473f42f3904889992b8fd
And I think, that fastest way to do a basic update is to wipe out all rows from table and then bulk insert new ones.
Since storage.write() can't update existing data it should at least throw an error if attempt is made to write into a table already filled with data or just overwrite existing data.


The OVERLIBGRAPH of the link at the edge position is outside the bounding box.

The OVERLIBGRAPH of the link at the edge position is outside the bounding box.The graph display is incomplete.

The previous version will automatically hover in the appropriate position after using 'OVERLIBWIDTH OVERLIBHEIGHT'.

Those variables have no use in my current version in my personal repo.

Remember, overlib is gone.  All that remains are variable names.

Ok, is there a new way to make the graph automatically adjust to the appropriate position? When the link is close to the border, it is always displayed incompletely because it exceeds the border.

I'll probably write it tomorrow.

Thanks for your work.

Closing as duplicate


Correct missing punctuation in the documentation

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
Please review http://spark.apache.org/contributing.html before opening a pull request.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

It's okay but mind if I ask to take another look, see if there are more typos and fix other typos while we are here? I am pretty sure there are more.

Sorry, haven't noticed any other current typos.
There was one with "processs" but it got fixed even before I had time to
report it.
---------- Původní e-mail ----------
Od: Hyukjin Kwon<EMAIL_ADDRESS>Komu: apache/spark<EMAIL_ADDRESS>Datum: 23. 8. 2018 4:44:58
Předmět: Re: [apache/spark] Correct missing punctuation in the documentation
(#22189)
"
It's okay but mind if I ask to take another look, see if there are more
typos and fix other typos while we are here? I am pretty sure there are
more.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
(https://github.com/apache/spark/pull/22189#issuecomment-415264287), or mute
the thread
(https://github.com/notifications/unsubscribe-auth/ALYtn6DEKBXSpiQJSKjow1xq13LxMnurks5uThchgaJpZM4WIMSH)
.
"

ok to test

Test build #95221 has started for PR 22189 at commit 0d6c92c.

Merged to master.


Upgrade SSM GetParametersByPath to GetParametersByPathPages to Support Pagination

Hi @mumoshu 👋 !
This PR adds pagination support to ssm's GetStringMap. Currently without pagination, the behavior falls through to the AWS Systems Manager API's default MaxResults of 10 but any results after 10 are currently not requested and reported as no value found for key by vals which is misleading (they do exist in SSM).

Thanks @mumoshu! Can you cut a release and also update in Helmfile? Can I help in any way?

Thanks @mumoshu! Can you cut a release and also update in Helmfile? Can I help in any way?


feat(snapshot workflow): Allow snapshots from bugfix branches

WHAT
This PR proposes a refactor to the determine-version job of the publish-new-snapshot workflow, that improves the job to resolve the correct snapshot version string from the gradle.properties every time. This version string is then used as input for the various publishing workflows.
As the publish-new-snapshot workflow can be manually activated, this improvement also allows for the creation of a snapshot from any branch.
WHY
To allow snapshots from bugfix branches.
FURTHER NOTES
In light of #1543, also took the opportunity to remove some unnecessary "listeners" from the run-all-tests workflow, making the file simpler.

Removed any reference to the releases branch as its not needed anymore.
Removed any reference to previews/* branches as they are not needed anymore.
Checking if the github.event_name == pull_request is redundant, since that event can't trigger the workflow.
We don't need to run all tests on tag push or release publication, since the tests were already executed a) on PR and b) on the branch from where the tag/release will be pushed/published.

Closes #1557

@paullatzelsperger @wolf4ood @ndr-brt


Minor refactors to line lengths and rubocop issues

Shortened strings spanning more than 80 charactesr
Replaced double quotes to single quotes inside string interpolation per rubocop
Replaced gsub with tr in string interpolation for the performance gain of 1-1 replacements

Thanks!  The changes look good.  The one thing I'd ask is for a benchmark showing that tr is faster than gsub for these.  We like to commit benchmarks to the repo with any perf-related changes.  Do you mind adding a benchmark to the benchmarks directory comparing tr and gsub?  Our preferred benchmarking tool these days is benchmark-ips.  Here's a semi-recent example from rspec-core showing an example of usage:
https://github.com/rspec/rspec-core/blob/e37b7b88fb72a2f2f0a0eabf07ffee761370491d/benchmarks/shuffle_vs_sort_by_for_random_ordering.rb

Hey thanks for reviewing at this @myronmarston. I will go ahead and submit a benchmark as well.

I went ahead and added the benchmark comparing gsub to tr. I hope the code looks right, this was my first crack at using the benchmark-ips library.

Thanks!


Add Italian to README-IT.md

Fixes Issue

Closes #59
🚀 Changes proposed
Added Italian version of Readme

Code of Conduct

[x] By submitting this pull request, I confirm I've read and complied with the CoC 🖖

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

@all-contributors please add @3t8  for translation, doc.

@all-contributors please add @3t8 for translation, doc

@all-contributors please add @3t8 for translation