wasmtime run -g fails with 'assertion failed: (left < right)

wasmtime panics and fails for me every time I try to run Python's WASI builds with wasmtime run -g (Generate debug information).
Test Case
Python-3.11.0rc1-wasm32-wasi-16.zip
Steps to Reproduce
wasmtime run -g --dir . -- python.wasm -c pass
Expected Results
I'm able to execute Python 3.11 WASI build with DWARF debug symbols.
Actual Results
$ RUST_BACKTRACE=1 wasmtime run -g --dir . -- python.wasm -c pass
thread 'main' panicked at 'assertion failed: `(left < right)`
  left: `817`,
 right: `816`', crates/cranelift/src/debug/transform/expression.rs:690:13
stack backtrace:
   0: rust_begin_unwind
             at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/panicking.rs:142:14
   2: wasmtime_cranelift::debug::transform::expression::ValueLabelRangesBuilder::process_label
   3: wasmtime_cranelift::debug::transform::expression::CompiledExpression::build_with_locals
   4: wasmtime_cranelift::debug::transform::attr::clone_die_attributes
   5: wasmtime_cranelift::debug::transform::unit::clone_unit
   6: wasmtime_cranelift::debug::transform::transform_dwarf
   7: wasmtime_cranelift::debug::write_debuginfo::emit_dwarf
   8: <wasmtime_cranelift::compiler::Compiler as wasmtime_environ::compilation::Compiler>::emit_obj
   9: wasmtime::module::Module::build_artifacts
  10: core::ops::function::FnOnce::call_once
  11: wasmtime_cache::ModuleCacheEntry::get_data_raw
  12: wasmtime::module::Module::from_binary
  13: wasmtime::module::Module::from_file
  14: wasmtime_cli::commands::run::RunCommand::load_module
  15: wasmtime_cli::commands::run::RunCommand::execute
  16: wasmtime::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Versions and Environment
Wasmtime version or commit: 0.39.1
Operating system: Fedora
Architecture: x86_64
WASI-SDK: 16.0
Extra Info
Anything else you'd like to add?

@tiran thanks for the report!
We currently don't have anyone on the project who understands our DWARF-handling code well  and has time to work on it; so while this is definitely a bug, it's not likely to have a fast resolution. We do have an intent to have someone eventually focus on this, as priorities allow, so we should keep this issue open. Just wanted to give some context on the current situation...

Closing as a duplicate of https://github.com/bytecodealliance/wasmtime/issues/3999


ubuntu18和ubuntu22都无法编译honggfuzz

安装依赖：sudo apt-get install binutils-dev libunwind-dev libblocksruntime-dev clang --fix-missing
下载源码：git clone https://github.com/google.com/honggfuzz.git
cd honggfuzz
make

Ubuntu20.04 also encountered the same problem

Looks like a duplicate of #490.


Mixing dynamic and static archive logic doesn't work

Hi! Thanks for reporting this bug!
Please keep / fill in the relevant info from this template so that we can help you as best as possible.
NLog version: (e.g. 4.7.6)
Platform: .Net 4.8
Current NLog config (xml or C#, if relevant)
<nlog>
<targets>
  <target name="VSLogFile" xsi:type="File"
       fileName="${logdir}/MyAppVSLogFile.${shortdate}.${processid}.txt"
       layout="[${longdate}|${logger:shortName=true}|${threadid}|${level}]- ${message} ${exception:format=tostring}"
       createDirs="true"
       maxArchiveFiles="30"
       archiveNumbering="Sequence"
       archiveAboveSize="100000000"
       archiveFileName="${logdir}/NewGEMVSLogFile.${shortdate}.${processid}.{#}.zip"
       enableArchiveFileCompression="true"
       concurrentWrites="false" />
</targets>
<rules>
    <logger name="MyCompany.Business.BusinessObjects.Pending.*" minlevel="Debug" writeTo="VSLogFile" final="true" />
</rules>
</nlog>

What is the current result?
We occasionally saw archived files generated with identical content. Recent incident over 30 archived files created within one minute. Before zipping, the file size was 100MB as defined at target.
What is the expected result?
Did you checked the Internal log? We can't enable internal log because the logging is already very heavy.
Please post full exception details (message, stacktrace, inner exceptions) No exception
Are there any workarounds? yes/no No
Is there a version in which it did work? Current version works 99% time.
Can you help us by writing an unit test? Sorry can't.

Below is the message from my teammate:
I downloaded 2 of these files:
NewGEMVSLogFile.2022-02-22.10224.93.zip
NewGEMVSLogFile.2022-02-22.10224.88.zip
Both of them are exactly identical.
1st line :
[2022-02-22 16:29:47.3976|VSLog|58|Info]- <HandleBasketUpdate Received a BasketUpdate message for ClientBasket ID -<PHONE_NUMBER>57759105 >
Last line:
[2022-02-22 16:56:51.9946|VSLog|58|Info]-
The data is received over 30 mins – but we have multiple zips of the same logs created.

This issue is a duplicate of this. https://github.com/NLog/NLog/issues/3807 (That is a duplicate of many others).
The issue is this (Using of dynamic ${shortdate}):
fileName="${logdir}/MyAppVSLogFile.${shortdate}.${processid}.txt"

Dynamic archive logic doesn't work together with static archive logic:
archiveFileName="${logdir}/NewGEMVSLogFile.${shortdate}.${processid}.{#}.zip"
archiveNumbering="Sequence"

Instead you should change to this:
fileName="${logdir}/MyAppVSLogFile.${processid}.txt"
archiveFileName="${logdir}/NewGEMVSLogFile.{#}.zip"
archiveNumbering="DateAndSequence"
enableArchiveFileCompression="true"

Alternative stop using zip-file-compression and just use dynamic-filename-archive-logic:
   <target name="VSLogFile" xsi:type="File" fileName="${logdir}/MyAppVSLogFile.${shortdate}.${processid}.txt" maxArchiveFiles="30" concurrentWrites="false" />
```

See also: [Do not mix "Dynamic FileName Archive Logic" together with "Static FileName Archive Logic"](https://github.com/NLog/NLog/wiki/File-target#dynamic-vs-static-archive-logic)

Thanks a lot for super quick response. I will adjust our settings accordingly.

Is there any problem with this:

Without archiveFileName, the sequence number started with processid. So if the log file is file.2022-02-23.38396.txt, the archived file name was file.2022-02-23-38396.38396.txt
I saw ordering was sequence, which is expected.
Thanks.

Yes you are probably right that the ${processid} is confusing the organic-archive-logic.
Maybe something like this is needed:

fileName="${logdir}/MyAppVSLogFile.${shortdate}_${processid}_PID.txt"


Compilation issue from rocthrust library on ROCm-3.5.

Hi all,
I have successfully build and tested my application with HCC(ROCm-3.3). Now, I am trying to build my app with hip-clang(ROCm-3.5) as HCC is deprecated but, I am getting compilation issues because of the rocThrust library. The thrust device system is getting selected as CUDA but it should be HIP.
I am attaching two files for further details.

FLOW.txt for compilation flow &
version detail.txt for hip version related details.

I would like to know, how can i resolve this issue as i am unable to do so. If some more details are required please let me know.
Best regards,
Saurabh.

CPP_CONFIG   :  -D__HIP_PLATFORM_HCC__=
I am not sure why you leave that blank.
I suspect something is wrong in the platform and compiler detection. What OS are you running on?

Hi,
I am using rocm-3.5 docker based on Ubuntu-18.04.1.
Yes, i think there is a problem in compiler detection.
THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_HCC condition is not getting passed as I see.
I have not made any changes to  CPP_CONFIG. In my rocm-3.3 system it is showing CPP_CONFIG   :  -D__HIP_PLATFORM_HCC__=   -I/opt/rocm-3.3.0/hip/include -I/opt/rocm/hcc/include -I/opt/rocm/hsa/include
Could you suggest any quick fix for this.
Thanks.

Hi @saadrahim
When can i expect a fix for this, or is it from my side that i need to do any correction. Please let me know.
Best Regards
Saurabh

Hi Saurabh,
I don't have an ETA for you. A developer is assigned to this. Updates will follow.
Saad

Hi Saurabh,
As you can see, we set the THRUST_DEVICE_COMPILER_HCC at the following line:
https://github.com/ROCmSoftwarePlatform/rocThrust/blob/develop/thrust/detail/config/compiler.h#L83-L85
Based on the error message it looks like you have to set HIP_PLATFORM=hcc and HIP_COMPILER=clang which should be set automatilcally, when you are using HIP-clang (/opt/rocm/bin/hipcc)
Could you try to build rocThrust with the following command:
Option A:
mkdir build && cd build
CXX=hipcc cmake -DBUILD_TEST=ON ../.
make -j
Option B:
mkdir build && cd build
cmake -DCMAKE_CXX_COMPILER=hipcc -DBUILD_TEST=ON ../.
make -j
Option C:
mkdir build && cd build
cmake -DCMAKE_CXX_COMPILER=hipcc -DHIP_COMPILER=clang -DHIP_PLATFORM=hcc -DBUILD_TEST=ON ../.
make -j
If it's still try to build with CUDA backend, please send us the output of the cmake commands. It should work with all three options and at normal case, you do not have to set HIP_COMPILER and HIP_PLATFORM.
Thanks. Best regards,
Istvan Kiss

Hi Istvan,
I did a clean build of rocThrust accordingly as you have mentioned above with different options A,B,C.
I observed that the thrust system is still trying to build with cuda backend, because of which the compilation failed. I am attaching the cmake and make logs of the rocThrust build. Hope it helps in resolving the issue.
cmake_optionA_log.txt
cmake_optionB_log.txt
cmake_optionC_log.txt
make_optionA_log.txt
make_optionB_log.txt
make_optionC_log.txt
Please let me know if I missed something.
Thanks. Regards,
Saurabh

Hi Saurabh,
Based on the output of the make commands, you could build the rocThrust tests with HIP backend. It looks like the problem in the rocThrust integration of you application or the building flags of your application. The example how to integrate rocThrust to your application can be find under the following link:
https://github.com/ROCmSoftwarePlatform/rocThrust/blob/develop/extra/CMakeLists.txt
In the CI file you can see examples, how we build this simple test which depends on rocThrust:
https://github.com/ROCmSoftwarePlatform/rocThrust/blob/develop/.gitlab-ci.yml#L107-L113
You can also build your own packages, if you want to use the latest rocThrust:
https://github.com/ROCmSoftwarePlatform/rocThrust/blob/develop/.gitlab-ci.yml#L81-L93
If you can share, how you integrated to your application and how you build, we can help.
Thanks. Best regards,
Istvan Kiss

@SaurabhKavi Please let us know if this issue is active. I will close the ticket in a week otherwise.

Hi @saadrahim @neon60
Thanks for the help. Unfortunately the issue is still there for me. I wasn't able to work on this issue for some time. I will update or reopen the ticket if required.
Best Regards
Saurabh

Hi @saadrahim @neon60
This rocthrust error was resolved on ROCm-3.5 after i changed the files extension from .c to .hip/.cpp . I found out that the reason for this was Hip-clang does not consider .c files as HIP sources, so it compiles them as CPU-only files.
But on ROCm-3.7, I am facing the same issue now.
I am using rocThrust 2.10.3. Below is the detail.
 Could this be a reason for the error which i am getting.
Best regards,
Saurabh.

Hi @saadrahim @neon60
This rocthrust error was resolved on ROCm-3.5 after i changed the files extension from .c to .hip/.cpp . I found out that the reason for this was Hip-clang does not consider .c files as HIP sources, so it compiles them as CPU-only files.
But on ROCm-3.7, I am facing the same issue now.
I am using rocThrust 2.10.3. Below is the detail.
 Could this be a reason for the error which i am getting.
Best regards,
Saurabh.

Hi @saadrahim @neon60
This rocthrust error I was resolved on ROCm-3.5 after I changed the files extension from .c to .hip/.cpp . I found out that the reason for this was Hip-clang does not consider .c files as HIP sources, so it compiles them as CPU-only files.
But on ROCm-3.7, I am facing the same issue now.
I am using rocThrust 2.10.3. Below is the detail.
 Could this be a reason for the error which i am getting?
Best regards,
Saurabh.

Hi @saadrahim @neon60
This rocthrust error I was able to resolve on ROCm-3.5 after I changed the files extension from .c to .hip/.cpp . I found out that the reason for this was Hip-clang does not consider .c files as HIP sources, so it compiles them as CPU-only files.
But on ROCm-3.7, I am facing the same issue now.
I am using rocThrust 2.10.3. Below is the detail.
 Could this be a reason for the error which i am getting ?
Best regards,
Saurabh.

Starting with rocm 3.5, you need to add  -x hip to signify that a file container hip source code.

Thanks @saadrahim for the input. It now works perfectly on ROCm-3.7
Regards
Saurabh

Starting with rocm 3.5, you need to add -x hip to signify that a file container hip source code.

I hav the same issue. Where do we add this "-x hip"?


OverflowError: value too large to convert to unsigned short

hello, when i create grah plot and i define y axis interval >32000 i have this error
for example :
graph = Graph(xlabel='X', ylabel='Y', x_ticks_minor=5,
                           x_ticks_major=25, y_ticks_major=1,
                           y_grid_label=False, x_grid_label=True, padding=5,
                           x_grid=True, y_grid=False, xmin=-0, xmax=100, ymin=0, ymax=100000)

i have this error
   File "kivy\graphics\memory.pxi", line 72, in kivy.graphics.vertex_instruction
s._ensure_ushort_view (kivy\graphics\vertex_instructions.c:6404)
 OverflowError: value too large to convert to unsigned short

i assume it doesn't happen anymore if you raise y_ticks_major enough so (ymax - ymin)/y_ticks_major is less than 32768? (so here 4 could would be a good value), it is a technical restriction coming from the way Graph draw its axis, it could probably be lifted by using multiple Mesh instructions when the count is too big.
(reading the code, the mesh is used for both x (major and minor) and y (major and minor) ticks, so the real constraint would be more like (ymax - ymin)/y_ticks_major + (ymax - ymin)/y_ticks_minor + (xmax - xmin)/x_ticks_major + (xmax - xmin)/x_ticks_minor < 32768)

closing here since it's specific to the garden.graph module.


Delete legacy css and re organise other parts

Context
Clean up CSS
Changes proposed in this pull request
Delete legacy and clean up CSS
Guidance to review
Follow the journey, the UI should look the same.
Still more work to do on this but that will be visited as we move out of private beta :)
Probably best to ignore whitespace when reviewing 👍

Does this cause any changes in how things look?

No @fofr


Remove Ambiguous Options in Favor of Exclusions

Removes the ambiguous options of Beedle's Shop Shuffle and Max Batreaux Reward in favor of using the exclusions system to prevent those locations from having progression..
Changes

Adds 4 new types to the excluded locations select filters

Batreaux's Rewards
Beedle's Shop Purchases (Cheap)
Beedle's Shop Purchases (Medium)
Beedle's Shop Purchases (Expensive)

Removes the Max Batreaux Reward option completely
Beedle's Shop option is now a boolean (checkbox) option for if the shop is shuffled or not

Testing

Mess with the UI, and ensure the filters behave as expected in various combinations
Dry run a few seeds, no (new) errors should be produced

When the new Beedle's Shop option is disabled, all items Beedle sells should be vanilla

Technical Note

For now, I've elected to not make the Beedle option specific to Beedle internally, it is the generic "shopsanity" option. The display text is specific to Beedle just for simplicity and clarity. The help text is not generic, but does mention that Beedle is the only shop currently affected by the option.

Given the Rupeesanity option a test spin. Seems good to me :p


Split() work w/ escape charactor

Describe the bug
split(URL_DECODER(xxx), "\?")[0]
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

This issue is not related to URLDecoder, but the usage of \\?, which is for literally matching ?. In our current code, the escaped char is wrongly treated as part of the string for matching.

A quick fix was proposed in https://github.com/oap-project/arrow/pull/150. @jackylee-ch, please validate it. Thanks!

Pushed a commit in https://github.com/oap-project/arrow/pull/150 to return null result in internal logic, e.g., split("0", "xxx")[0], where the delimiter doesn't exist in the input string.

Fixed in arrow PR.


Adngel lua weapons functions

Added the Lua function GetAmmoType
Added the enumerator LaraAmmoType for the engine uses.
Added the enumerator AMMO_TYPE_IDS for the Lua api.
Function AddCallback now will print information in the log if the function is already added, to avoid duplication.
Fix error in Flow.Inventory builder, SetAction now accepts compound action values like for example:
ItemAction.USE | ItemAction.COMBINABLE  (But max 3, if there are 4 the game crashes when tries render the object in inventory).

✅Additional options for puzzle items works (ItemAction.COMBINE will only show on items that have two parts which is correct behaviour.
❌Zooming in and out with binoculars / lasersight does not work (this was already the case on the develop branch but it makes sense for this to be addressed on this PR ?


Exception ticking world entities

Not sure whats going on here but when one user trys to login the server crashes. I am going to just kill the block but thought you might like the report.
http://pastebin.com/3biUhcTk

I will check it out

Should be fixed next release (1.6.3) I hope


Unable to use in: and out: arguments from workflowstep method

Hi @achintamiri, thanks for the report. I've inputs, steps, and outputs to the cwlgen.Workflow constructor, so you can now do this:
cwlgen.Workflow(**kwargs, inputs=[cwlgen.InputParameter(**morekwargs)])

This is released in v0.4.1. Feel free to reopen this if it doesn't quite solve your problem.


ND PCC with TG Llama3-70b on CI

Describe the bug
ND behaviour for TG Llama Decoder and Model on CI possibly due to old firmware
Passing run:https://github.com/tenstorrent/tt-metal/actions/runs/10153695333
Failing run on Llama Decoder: https://github.com/tenstorrent/tt-metal/actions/runs/10176375557/job/28146147653
Failing run on Llama Model: https://github.com/tenstorrent/tt-metal/actions/runs/10165761756/job/28115090004

I think we confirmed that the ci machines have older fw? @tt-rkim

You can read the set up runner logs and check yourself.
I see from my FW date get script:
ok: [g14cs03] => {
    "msg": "2024-07-17"
}

I've already told @mikevin920 to test and qualify the new firmware releases, as there have been quite a few for galaxy, including one this week to lower clock frequency.
We are not planning to do an upgrade until this work is done and someone writes a ticket that's not us, as we've made clear to the team.

We now output the full SMI information as a courtesy so you can check things like coordinates, FW, driver etc.

Do you want devinfra to update your ? If so, you should file a ticket with them for now, or if your team can upgrade yourself, you should upgrade yourself.

Flashed latest n150 firmware + galaxy FW on aus-glx-01

N150s still look a little out of date...

Update: We are still seeing the ND PCC behavior on galaxy CI even after FW update. Also, to add on our local machines also discovered the same behavior upon more stress testing.
Is there any new galaxy FW we can test?
Currently, devices are initialized at 800 MHz. What are the ways to test at 500 MHz to determine if it's a di/dt issue?

fyi @skhorasganiTT

You should catch up with @tcolacoTT. Tyler, please comment on:

any upcoming Galaxy experimental patches
simpler ways that Models team can downclock their devices.

Kartik, note that the current patch should be setting AICLK max to 900MHz.

@cglagovichTT is this issue truly done ? The status says, Done but the ticket is still Open.

This could be a duplicate of https://github.com/tenstorrent/tt-metal/issues/10673.
@kpaigwar when you saw ND PCC were you running DRAM sharded MMs?

We have a demo nightly pipeline in CI which doesn't run DRAM sharded MMs.
Earlier we were seeing ND outputs for count in binary prompt
But upon checking a bunch of latest pipelines, we are pretty stable on output side.
We may close this issue.


Custom Button dont show in themeablebrowser

Hi I want to add custom button but its now showing can you please help heres the code
function innAppInit(_url) {
  app.Log('browser news link=' + _url);
   if (_url == null) {
      _url = 'http://apache.org';
     }
   var ref = cordova.ThemeableBrowser.open(_url, '_blank', {

    backButtonCanClose: false,
    hideForwardButton: true,
    toolbarColor: '#239EC9',
    titleColor: '#FFFFFF',
    statusbarColor: '#239EC9',
    navButtonAlign: 'left',
    closeButtonAlign: 'right',

    titleStaticText: 'Add New Web Page',
    customButtons: [{
        image: 'themeablebrowser_stub_close',
        imagePressed: 'themeablebrowser_stub_close_highlight',
        align: 'right',
        event: 'customButtonPressed'
    }],
    menuButtonImage: 'themeablebrowser_stub_menu',
    menuButtonPressedImage: 'themeablebrowser_stub_menu_highlight',
    closeButtonImage: 'themeablebrowser_stub_close',
    closeButtonPressedImage: 'themeablebrowser_stub_close_highlight',
    backButtonImage: 'themeablebrowser_stub_back',
    backButtonPressedImage: 'themeablebrowser_stub_back_highlight',

});
ref.addEventListener('customButtonPressed', function(event) {
    alert(event.url);
});
ref.addEventListener('loadstart', function(event) {
    try {
        app.Log('loadstart function');
        $('.ui-loader').show();

    } catch (e) {
        app.ErrorLog(e);
    }
});
ref.addEventListener('loadstop', function(event) {
    try {
        app.Log('loadstop function');
        $('.ui-loader').hide();

        ref.executeScript({
                code: 'return document.title'
            },
            function(values) {
                alert(values);
            });

    } catch (e) {
        app.ErrorLog(e);
    }
});
ref.addEventListener('event_getURL', function(event) {
    try {

        var url = event.url;
        app.Log('get url=' + url);
        ref.close();

    } catch (e) {
        app.ErrorLog(e);
    }
});
ref.addEventListener('exit', function(event) {
    try {
        app.Log('exit function');

        $('.ui-loader').hide();

    } catch (e) {
        app.ErrorLog(e);
    }
});

}

Hi there, I haven't run this code but I see a couple of issues in your code.

You are using the older API decide with a mostly flat property list. If that's working for you then you are definitely on an older version. Please make sure to update your plugin to the latest version. Try to run cordova plugin update com.initialxy.cordova.themeablebrowser and make sure it prints out 0.2.1 as version.
If you are on the latest version, then themeablebrowser_stub_.* images are no longer imported to your project. They are still found in source for sample and dev purpose, so if you really want to use them you can manually import them. But I suspect they are not found in your native resource. Please refer to the Import Native Image guide in README.md to make sure the images you are using are actually imported to native resource.
Back to point 1, please make sure you rearrange your properties for the new API.

Please investigate based on the above points. If issue still persists, please let me know which platform this issue happens (iOS, Android) and which version of plugin you have installed (see <cordova_project_root>/plugins/com.initialxy.cordova.themeablebrowser/plugin.xml.
Thanks!

thanks for your help
yes you were right it was old version . I am using cordova 3.7 , jqm 1.4.5,  Xcode 6.1 and  IOS
I have removed old version and installed new version but my existing code is not running
its saying this
CDVPlugin class CDVThemeableBrowser (pluginName: ThemeableBrowser) does not exist.
2015-03-31 20:28:09.652 WMC[32521:133526] ERROR: Plugin 'ThemeableBrowser' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2015-03-31 20:28:09.652 WMC[32521:133526] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"ThemeableBrowser423389274",
"ThemeableBrowser",
"open",
[
"https://www.google.com/",
"_blank",
"{"backButtonCanClose":false,"hideForwardButton":true,"toolbarColor":"#239EC9","titleColor":"#FFFFFF","statusbarColor":"#239EC9","navButtonAlign":"left","closeButtonAlign":"right","menuButtonAlign":"right","titleStaticText":"Add New Web Page"}"
]
]

It sounds like the plugin didn't install properly by Cordova. Try just uninstall and install it again. is:
cordova plugin rm com.initialxy.cordova.themeablebrowser
cordova plugin add com.initialxy.cordova.themeablebrowser

Though you shouldn't have to manually add the feature tag in config.xml. Cordova command line should have taken care of that for you. Did you install this plugin manually by hand? If that's the case, the error sounds like the objective-c source code for iOS is not added. Make sure they are added to your xcode.

No i didnt installed manually.  Actually cli has added tag in config.xml but the images were not showing so i copied images and placed in xcode resource folder now everything is working. thanks for the help
Please close this thread

I finally ran into this issue myself, and it certainly is a Cordova plugin installation issue. However being a very obsessed individual, I debugged Cordova's source code and found the issue in node-xcode's code. I have raised an issue at node-xcode and proposed a fix by creating a pull request. I have added details to this issue on Cordova's bug tracker as well.
The work around that I have proposed is to open the project in Xcode, navigate to YourProject -> Build Phases -> Compiled Sources, and manually add the missing plugin source file there (ThemeableBrowser.m).

Hi,
I am using ThemeableBrowser plugin for android app. I am using custom button. I am unable to set image to button. It is transparent but button click is handlable.
var url = "www.google.com";
cordova.ThemeableBrowser.open(url, '_blank', {
        customButtons: [
                    {
                        image: 'ỉmg/phone-receiver.png',
                        align: 'left',
                        event: 'toolbarPressed'
                    }
        ],

        toolbar: {
            height: 44,
            event: 'toolbarPressed',
            color: '#FF0000'
        },
        title: {
            color: '#FFFFFF',
            showPageTitle: false,
            staticText:"Kritische storing? Bel ons nu!"
        },

        backButtonCanClose: false
    }).addEventListener('toolbarPressed', function(e) {

    console.error(e.message);
       var ref = window.open('tel:+31620450159');

    }).addEventListener(cordova.ThemeableBrowser.EVT_ERR, function(e) {
        console.error(e.message);
    }).addEventListener(cordova.ThemeableBrowser.EVT_WRN, function(e) {
        console.log(e.message);
    });


error completing check cloud script, exception in speech request

I am using the v1 voice kit, raspberry pi 3 and have looked all over for solutions online. I reinstalled the image, updated and upgraded all the files on the raspberry pi. I git pulled for the latest version of google aiy kit software. I checked my billing settings and made sure that they are linked to my project. However, I am still getting this error.
"Testing the Google Cloud Speech API...
Traceback (most recent call last):
File "/opt/aiy/projects-python/src/aiy/_apis/_speech.py", line 266, in do_request
service = self._make_service(self._channel_factory.make_channel())
File "/opt/aiy/projects-python/src/aiy/_apis/_speech.py", line 83, in make_channel
self._credentials.refresh(request)
File "/usr/local/lib/python3.5/dist-packages/google/oauth2/service_account.py", line 310, in refresh
request, self._token_uri, assertion)
File "/usr/local/lib/python3.5/dist-packages/google/oauth2/_client.py", line 143, in jwt_grant
response_data = _token_endpoint_request(request, token_uri, body)
File "/usr/local/lib/python3.5/dist-packages/google/oauth2/_client.py", line 109, in _token_endpoint_request
_handle_error_response(response_body)
File "/usr/local/lib/python3.5/dist-packages/google/oauth2/_client.py", line 59, in _handle_error_response
error_details, response_body)
google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with skew to account for clock differences between systems.', '{\n  "error": "invalid_grant",\n  "error_description": "Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with skew to account for clock differences between systems."\n}')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pi/AIY-projects-python/checkpoints/check_cloud.py", line 104, in
main()
File "/home/pi/AIY-projects-python/checkpoints/check_cloud.py", line 95, in main
if not check_speech_reco():
File "/home/pi/AIY-projects-python/checkpoints/check_cloud.py", line 68, in check_speech_reco
output = req.do_request()
File "/opt/aiy/projects-python/src/aiy/_apis/_speech.py", line 279, in do_request
raise Error('Exception in speech request') from exc"

You might want to use:
pi@raspberrypi:~ $ timedatectl status
to check that your system clock is synchronized with NTP and that your timezone setting is correct.

Please try new SD card image, check_cloud.py was updated.


[BUG] - Cannot generate openapi document for self-referencing interface or circular dependencies

Describe the bug
I get the following error when I try to generate an open API document for an interface that references itself or contains circular dependency with another interface.
Converting circular structure to JSON
--> starting at object with constructor 'Object'
|     property 'properties' -> object with constructor 'Object'
|     property 'subRows' -> object with constructor 'Object'
--- property 'items' closes the circle 400
ERROR >>>>  TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
|     property 'properties' -> object with constructor 'Object'
|     property 'subRows' -> object with constructor 'Object'
--- property 'items' closes the circle
at JSON.stringify ()
To Reproduce
You can go ahead and reproduce this with the below schema as an example. Pass this schema to deferenceSchema function
and use the dereferenced schema in the convert function. Here default_2 references itself in the subRows. Example provided below:
const schema = {     title: 'UserResponse',     description: 'Response object for user',     type: 'object',     properties: {       user: {         $ref: '#/definitions/default_1',         description: 'user details',       },     },     definitions: {       default_1: {         type: 'object',         properties: {           id: {             type: 'number',           },           basicInformation: {             type: 'object',             properties: {               firstName: {                 type: 'string',               },               lastName: {                 type: 'string',               },               email: {                 type: 'string',               }             },           },           classes: {             type: 'array',             items: {               $ref: '#/definitions/default_2',             },           },         },       },       default_2: {         type: 'object',         properties: {           className: {             type: 'string',           },           details: {             type: 'array',             items: {               $ref: '#/definitions/default_3',             },           },           id: {             type: 'number',           },           parentId: {             type: 'number',           },           subRows: {             type: 'array',             items: {               $ref: '#/definitions/default_2',             },           }         },       },       default_3: {         type: 'object',         properties: {           id: {             type: 'number',           },           detailDesc: {             type: 'string',           },           detailType: {             $ref: '#/definitions/default_4',           }         },       },       default_4: {         type: 'object',         properties: {           detailTypeName: {             type: 'string',           },           detailCode: {             type: 'string',           },           id: {             type: 'number',           },         },       },     },     $schema: 'http://json-schema.org/draft-07/schema#',   };

const deReferencedSchema = await dereferenceSchema(schema);
const convertedSchemas = SchemaFactory.convert(deReferencedSchema, 'UserResponse');

**Expected behavior**
It should generate the document even if the interface is self-referencing or has circular dependencies.

**Desktop (please complete the following information):**
 - Serverless version: [e.g. 3.34.0]
 - serverless-openapi-documenter version : 0.0.72

I have made improvements to circular references as of 0.0.91.

Circular references are much more improved.  I'm going to close this issue.  Feel free to open a new issue if you're having a problem still


Invert value of or remove percentage display header

Is your feature request related to a problem? Please describe.
Not specifically related to problem but a request for additional functionality
Describe the solution you'd like
Could you please provide or suggest an option to either invert or remove the percentage header so that 0% is at the top of the slider (currently 100%) and 100% is at the bottom (currently 0%)
Describe alternatives you've considered
If this is not feasible or too time consuming then an option to not display the percentage header please
Additional context
I've started studying and understanding the code with my limited coding experience. I'm happy to work on it myself to submit a pull request but any tips or suggestions will be appreciated please.
The slider moves in the correct direction and sets my blinds to a matching position, only the percentage header is displayed incorrectly.
thank you

Could you embed a screenshot of incorrect header?

I have the same problem and here is the screenshot.

I made a proposal, that would implement removal of the %-value:
See #23

Something went wrong with the commit of the changes.
See https://github.com/konnectedvn/lovelace-vertical-slider-cover-card/commit/82d7fab68de37d5823a7ff24ff1cde9d42352242

I am also trying to hide the name and position, but adding showName: false in the card yaml does not have any effect. Same with showPosition:false. Not sure what goes wrong here...


Can't figure out how to send calendar meeting invite

I have the following and can't figure out how to send the invitation to the required attendees. I am able to create the appointment but need it to send the request after its created.
I was hoping the following would work but no go. Please help if you can. Great work by the way.
I've tried the send_meeting_invitations and meeting flag, probably in wrong place.
opts = {
        :send_meeting_invitations => 'SendToAllAndSaveCopy',
        :subject => 'testing',
        :body => 'hello world',
        :start => Time.now + (60*60*2),
        :end => Time.now + (60*60*3),
        :location => 'disney',
        :required_attendees => [
            {:attendee => {:mailbox => {:email_address =><EMAIL_ADDRESS>        ],
        :meeting => 'true',
        :options => {
            :send_meeting_invitations => 'SendToAllAndSaveCopy'
        }
    }

    folder = cli.get_folder(:calendar)
    appointment = folder.create_item(opts)

I've also tried
    opts = {
        send_meeting_invitations: 'SendToAllAndSaveCopy',
        items: [ {calendar_item: {} } ]
    }

Hi, need a help. I trying the same opt hash mentioned above. I don't see any error, calendar entry getting created on the account which is calling API with mentioned attendee. But it is not sending email to the person who are invited. Though in the option Hash it is mentioned
:send_meeting_invitations => 'SendToAllAndSaveCopy',
But I see while running the script, SOAP request is always taking 'SendToNone' irrespective of the value I give. Can you please advice here what would be wrong, pasting code below,
require 'rubygems'
require 'viewpoint' # Library for MS Outlook
require 'viewpoint/logging/config' # For Debugging
include Viewpoint::EWS
endpoint = 'https://outlook.office365.com/EWS/Exchange.asmx'
user =<EMAIL_ADDRESS>pass = 'XXXXXXX'
cli = Viewpoint::EWSClient.new endpoint, user, pass
opts = {
:send_meeting_invitations => 'SendToAllAndSaveCopy',
:subject => 'My testing',
:body => 'hello world',
:start => Time.now + (60602),
:end => Time.now + (60603),
:location => 'disney',
:required_attendees => [{:attendee => {:mailbox => {:email_address =><EMAIL_ADDRESS>],
:meeting => 'true',
:optionns => {:send_meeting_invitations => 'SendToAllAndSaveCopy'}
}
folder = cli.get_folder(:calendar)
appointment = folder.create_item(opts)
console output
DEBUG  Viewpoint::EWS::SOAP::ExchangeWebService : Sending SOAP Request:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
soap:Header
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
soap:Body
<CreateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" MessageDisposition="SendAndSaveCopy" SendMeetingInvitations="SendToNone">

<t:FolderId Id="AQMkAGE4YzExAGZlOS0yNWU4LTRlYzMtYjg2MS0xNzU3NDI2Yjg0N2MALgAAAxEBO6hCwTxHn4zfntfBMXABAH+jZks5wIFLpgPmRaO9VXEAAAIBDQAAAA==" ChangeKey="AgAAABYAAAB/o2ZLOcCBS6YD5kWjvVVxAAAAAAjW"/>

<t:CalendarItem>
<t:Subject>My testing</t:Subject>
<t:Body BodyType="Text">hello world</t:Body>
<t:Start>2017-07-31T19:59:08+05:30</t:Start>
<t:End>2017-07-31T20:59:08+05:30</t:End>
<t:Location>disney</t:Location>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>test@microsoft.com</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
</t:CalendarItem>

</soap:Body>
</soap:Envelope>


Update attribution file for release-v1.11.0

Update attribution file to reflect dependency changes

This was a testing PR . Closing it !


It inheritance is possible ?

Hi,
I search the documentation, I do not find my happiness on one point.
I do not know if it is an existing feature or not, in doubt, I ask here.
Is it possible to make inheritance?
I have these 3 tables :
STEP

id
name
time
discr

STEP_WORK

id
work_field

STEP_FUN

id
fun_field

The data in the STEP_WORK and STEP_FUN table are incomplete without those in STEP.
The "discr" field makes it possible to discriminate between STEP_WORK and STEP_FUN
The 'id' field have the same value for a STEP_WORK table and its corresponding STEP table and for a STEP_FUN table and its corresponding STEP table.
How to retrieve for example the list of STEP_WORK with the additional information contained in STEP?
I'm doing it using a BelongsToOneRelation relationship, but the end object looks like:
{
  id: 1,
  work_field: 'development',
  step: {
    id: 1,
    name: 'robert',
    time: 123456789,
    discr: 'work'
  }
}

While it should look like:
{
  id: 1,
  work_field: 'development',
  name: 'robert',
  time: 123456789
}

You can use joinRelation:
Work.query()
  .select('*')
  .joinRelation('work')

You can create a modifier that calls those functions if want to save some lines of code.
There is no way to automatically do this for each query though...

Thanks for the answer.
Is it possible to use this function without selecting anything with * ?
Because if not in some cases there will be big unnecessary requests.

Hi,
joinRelation work nice, but is like an old school request.
When we use this method, we lose the benefits of the model, such as $ afterGet for example.
Is it not possible to have both?

@koskimas I love ObjectionJS, it's really great! I am struggling a little on this lack of inheritance as well. Having a "type" column (sti / mti) is extremely common and supported across all major ORMs.
Here is a scenario:
PostModel
TextPostModel extends PostModel
ImagePostModel extends PostModel
VideoPostMOdel extends PostModel

One Table (Posts) -- Single table inheritance, has columns: title, body, imageSrc, videoSrc
Validations: Post requires title (all), Text requires body, Image requires imageSrc, Video requires videoSrc
Methods: Text may have an except method, image my have a generateThumb method, etc.
As you can see, they behave differently and have uniqueness about them, but are all "Posts"
This is a pretty rough example, obviously, but used so often and in our current implementation we are battling this same mythology.
I feel like defining the PostModel we can have a type map that assigns the classes based on type.
Types {
  video: require('./VideoPostModel'),
  image: require('./ImagePostModel'),
  ...
}

after queries, rather than creating instances of just Post model, it maps the types and rather creates the extended Class.
This would be super useful and this weekend I don't mind taking a peek at the code to see if I could help contribute in any way... Figured it best to discuss with you though before. Let me know your thoughts!

+1

@rkingon realize this is "ancient" - just curious if you ended up landing on a good path for working with inheritance. I have a very similar setup to the example you provided.

I came up with a lil something... was a bit ago. For reference, I was on Objection 1.6.11
First, a plugin that gives it the ability to handle this "discriminator" functionality. (Please note, this is not fully tested across every use case in Objection, so you may need to further customize it to fit your needs. This was all I needed to do to prove concept for my internal team).
function DiscriminatorModel (Model) {
	return class extends Model {
		static getDiscriminatorClass (json) {
			if(this.discriminatorMappings) {
				const discriminatorValue = json[this.discriminatorColumn]
				const discriminatorClass = this.discriminatorMappings[discriminatorValue]
				return discriminatorClass
			} else {
				return this
			}
		}

		static fromJson(json, options) {
			const discriminatorClass = this.getDiscriminatorClass(json)
			const model = new discriminatorClass()
			model.$setJson(json || {}, options)
			return model
		}

		static fromDatabaseJson(json) {
			return this.fromJson(json)
		}
	}
}

Create a PostModel, which extends DiscriminatorModel -- discriminatorColumn is the property that will be used to discriminate (ie: type). discriminatorMappings is your reference to the relevant models. (See option 1 of https://vincit.github.io/objection.js/guide/relations.html#require-loops) on why we use require here
// Note: I usually like to create a BaseModel that includes all my relevant plugins, then extends that
class PostModel extends DiscriminatorModel(Model) {} {

	static tableName = 'posts'
	static discriminatorColumn = 'type'

	static get discriminatorMappings () {
		return {
			'text': require('./TextPostModel'),
			'video': require('./VideoPostModel'),
			'image': require('./ImagePostModel')
		}
	}

}

Create each Typed Model...
class TextPostModel extends PostModel {}
class VideoPostModel extends PostModel {}
class ImagePostModel extends PostModel {}

I hope this helps! Use this as a base, but not the bible ;) -- It was just a prototype

We're also facing the same type of problematic, with the added complexity of a typescript codebase.
We're using objection 2.2.3. (thanks for this lib !)
I'm curious of the current @koskimas's opinions and hints about this topic. Is @rkingon solution worth digging (thanks for it by the way) ?
Any help appreciated :)

@0gust1 we are using it in production without any hiccups. it's been rather great, tbh

🙇 Many thanks for the feedback !

Im also curios about this

Is this yet not possible?


Discrepancies in code view on Docs Pages

Capturing a known issue that only happens on Docs Pages (not canvas view):
When viewing a story canvas within a Docs page, there is a button on the bottom right of the embedded canvas to "Show code". We are getting mixed behavior here:

will show the story decorator (undesirable, but there may not be a way to fix this)
sometimes shown as "code unavailable"

will show the story decorator (undesirable, but there may not be a way to fix this)

Considering setting a standard to wrap all templates in <!-- Start Component--><!-- End Component --> for clarity on what to copy and paste. It's a bit redundant on canvas view, but helps clarify issues in docs view when the story decorator is shown.


Add a dummy compiler

Add a dummy arch and compiler for simple-dev-environment purposes (e.g. always emits jr $ra).
Related to #153

A dummy compiler should also be used in most tests


Added German translation

Hey @minekrexx! Thanks for your contribution! I'm going to review it today as soon as i get home and give feedback/merge release if everything is fine!

Hey @minekrexx, can you check the issue above?


Request: Autosizing text/image to prevent wrapping to next slide

This is a future request, I know it's not an easy problem. When I'm writing slides I often end up having to manually size text so that it doesn't wrap to the next page/slide. It would be nice if polylux (or typst in general) offered a function (of flag on the text function) that prevented the block from wrapping to the next page and resized it to keep it on the page.
Same thing with images, if I include an image on a slide, I don't want it to appear on the next slide. I guess fundamentally this is an issue with how slides vs. pages work. Generally slides should never wrap contents onto another slide.

Ah that's amazing, sorry should've checked the PRs. Also I forgot about #fit-to-height I'll play around with that.


Run a command in File Operations actions error

Describe the bug
Run a command in File Operations actions error
To Reproduce
Steps to reproduce the behavior:

Go to 'Actions -> File Operations Action'
Click on 'Operation type -> Run A command'
Give Source File path (File name having Spaces)
See error :'System can't find the Path specified'

Expected behavior
Open the File as per source file path
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Windows

Hi @bhargavkumar-65
Is this happening only for this specific exe or for any executable?
also - please try a path with no spaces if it will work then it will be a bug we need to fix.
Are you using Windows 10?

Hi @yaronweiss
this is happening for exe, My file path has Spaces. Seems like a bug.
it is working with file name without spaces. I am using Windows 10
Thank you.

Hi @bhargavkumar-65
After looking at the code, the issue is related to searching a space char(" ") which separate the file name and arguments, while in your case it was part of the folder, we will add a fix to supply arguments in another text box so it will support also the case of path with spaces, fix will be in the next beta

Hi
Fix for this issue has been added,
to support file paths that has space/s in their path,
also have been added new input value to provide arguments if needed.
The fix will be available from Ginger Version <IP_ADDRESS>

@MeniKadosh1 As discussed please refine the code with @yulev55 , thank you.

yes, we will do it on Sunday 15/July, thanks.

fixed.


[NEXT] ReferenceInput on Filter: No data when the reference is the same with the resource of the List (i.e. not foreign key)

I am using the latest commits on next, after BETA-3, as of today.
This problem did not exist up to BETA-3. It was introduced with the recent changes.
What you were expecting:
ReferenceInput in Filter to be able to show data, like it used to be in next BETA-3.
What happened instead:

Steps to reproduce:
This happens only when the reference (users) is the of the same resource that the List has. It does not happen for "foreign keys", i.e. when the reference is from other resources. See code below:
Related code:
// THIS REFERENCEINPUT IS **OK**
//
    <ReferenceInput label="ΡΟΛΟΣ" source="role_id" reference="roles" allowEmpty alwaysOn
                    sort={{field: 'name', order: 'ASC'}}
                    perPage={1000}
    >
      <SelectInput
        optionText="nameGreek"
      />
    </ReferenceInput>

// THIS REFERENCEINPUT IS **NOT OK**, see screenshot above
//
    <ReferenceInput label="ΕΠΩΝΥΜΟ" source="id" reference="users" allowEmpty alwaysOn
                    sort={{field: 'last_name', order: 'ASC'}}
                    perPage={1000}
    >
      <SelectInput optionText="last_name" />
    </ReferenceInput>

Based on the UI screenshot above, we should have 3 "references" in possibleValues, but we are missing one (the users@id one):

Environment

Admin-on-rest version:   commit #6d2f265, i.e. latest commit as of today
Last version that did not exhibit the issue (if applicable):  BETA-3

I don't have the model to reproduce the bug, could you try to narrow the commit which caused it using git bisect?
The only culprit I can think of is https://github.com/marmelab/admin-on-rest/pull/1616/files#diff-0c7e48ec3f03db5532bb24babd4872b8, but I don't understand how it would break the feature.

008b97e70179a1369f596da759b6b18575c136ab is the first bad commit, based on the bisect.

This could be related to: https://github.com/marmelab/admin-on-rest/pull/1621

@tkvw I added your code to the latest next, did make build and this used it. Unfortunately it had no difference. Do you BTW experience the same problem, if you use a ReferenceInput Filter that references the resource used by the List itself?

@afilp : Check your redux action log, do you see all the Fetch actions?

I only get 2 MATCHING_SUCCESS (not 3), if this is what you are asking:

Not sure if this gives any hint, I removed the {...props} from the filter just to see...

...and now the problematic field does get data:

(of course this is just a hack to see how props affected the problem since the display has problems with duplicate select boxes, etc.)

Found the cause of the problem, this happens when the filter reference (same as resource) starts as alwaysOn:

If it is not alwaysOn and you choose it manually to use it, then the data is retrieved fine (works).
I hope this helps you narrow down the problem in the code.

It should be fixed in next, thanks to #1621. Can you confirm?

I confirm that it works, great work, thanks!

Fixed by #1621


ceylon doc mangles dollar sign in quotes in code block

@sadmac7000 found this very weird bug in the ceylon.ast documentation for SwitchCaseElseExpression:
"""A `switch`/`case`/`else` expression, that is,
   a [[`switch` clause|switchClause]], followed by one or more [[`case` expressions|caseExpressions]]
   and optionally an [[`else` expression|elseExpression]] preceded by an ‘`else`’ keyword.

   Examples:

       switch (seq) case (null) "null" case (is []) "empty" else "nonempty"
       switch (text.first) case ('$') 2 case ('#') 16 case ('0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9') 10 else nothing"""

A switch/case/else expression, that is, a switch clause (switchClause), followed by one or more case expressions (caseExpressions) and optionally an else expression (elseExpression) preceded by an ‘else’ keyword.
Examples:
switch (seq) case (null) "null" case (is []) "empty" else "nonempty"
switch (text.first) case (') 2 case ('#') 16 case ('0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9') 10 else nothing
) 2 case ('#') 16 case ('0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9') 10 else nothing

The dollar sign in the first case of the second example is gone, and all the text after it is duplicated.
Minimal example:
"""    a'$'b"""
shared class C() {}

a'b
b

It seems that the syntax highlighter is the culprit: without JavaScript enabled on the output page, the code is fine.

A probably solution to this would be to get rid of the separate "char" rule in ceylon.js, and change the "string" rule to this:
 pattern: /'([^'\\\n]|\\.)*'|"""([^"]|"[^"]|""[^"])*"""|(``|")([^"\\`]|\\.|`[^`"])*(`"|``|")/gm

i.e. recognize character literals as string literals.
Want to try that, @lucaswerkmeister?

Actually, @lucaswerkmeister, you can try this patch:
--- a/compiler-java/src/com/redhat/ceylon/ceylondoc/resources/ceylon.js
+++ b/compiler-java/src/com/redhat/ceylon/ceylondoc/resources/ceylon.js
@@ -21,12 +21,12 @@ Rainbow.extend( "ceylon", [
     pattern: /\b(assembly|module|package|import|alias|class|interface|object|given|value|assign|void|function|new|of|extends|satisfies|abstracts|in|out|return|break|continue|throw|assert|dynamic|if|else|switch|case|for|while|try|catch|finally|then|let|this|outer|super|is|exists|nonempty|while)\b/g
   },
   {
-    name: "string",
-    pattern: /"""([^"]|"[^"]|""[^"])*"""|(``|")([^"\\`]|\\.|`[^`"])*(`"|``|")/gm
-  },
-  {
-    name: "char",
-    pattern: /'([^'\\\n]|\\.)*'/gm
+    matches: {
+      1: 'char',
+      2: 'string',
+      3: 'string'
+    },
+    pattern: /'([^'\\\n]|\\.)*'|"""([^"]|"[^"]|""[^"])*"""|(``|")([^"\\`]|\\.|`[^`"])*(`"|``|")/gm
   },
   {
     name: "constant.numeric",

Well, I already have a fix for the upstream bug (ccampbell/rainbow#209), so we could just apply that to the version we ship with ceylondoc if they’re not going to merge it anytime soon.

My proposed patch didn't help, and the problem is indeed the bug in rainbow patched by @lucaswerkmeister. Closing.

Why did you close this? The upstream PR was never merged, so the bug still exists.

Because it's not a bug in Ceylon, and can't be fixed here.

Ohwell, I guess we could apply the patch directly to our copy of rainbow.js, but in 10 months you have not done that...

Ohwell, I guess we could apply the patch directly to our copy of rainbow.js, but in 10 months you have not done that...

Just for the record, this sounds simple but ended up taking several hours because our version of Rainbow was extremely outdated, Rainbow’s build system is broken, we didn’t use Rainbow correctly, and Firefox has styling errors.

But there’s a fix in #7161 now.

👍


net/zerotier: Update tag line and bump version.

Hi,
Updated to reflect change in the tag line on the Zerotier home page.
Please can this be merged in. Thank you.
-=david=-

Small note: normally changes like this don't require a version bump.
And, thanks, merged!

Hi,
Noted for future! :-)
Thanks!
-=david=-
On 28 July 2017 at 22:44, Franco Fichtner<EMAIL_ADDRESS>wrote:

Small note: normally changes like this don't require a version bump.
And, thanks, merged!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/opnsense/plugins/pull/212#issuecomment-318768918, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAaEjuwkCbmjCjOJWWoZjcqiiRPxQghOks5sSlY2gaJpZM4OnGEg
.

--
I prefer encrypted and signed messages.
Fingerprint: 110A F423 3647 54E2 880F ADAD 1C52 85BF B20A 22F9
No trees were harmed in the sending of this message, however, a number of
electrons were inconvenienced.


[BUG] Log packager skips processing all the remaining log files

Describe the bug

We've spotted that if there is log truncating happening during an upgrade (higher chance in a single node upgrade), the log packager will not only skip processing the impacted file but all the files after that file in lexical order.
Observed in log packager's log:
start to package upgrade logs
+ echo 'start to package upgrade logs'
++ mktemp -d
+ tmpdir=/tmp/tmp.cwOGu5UzxU
+ mkdir /tmp/tmp.cwOGu5UzxU/logs
+ cd /archive/logs
+ for f in *.log
+ awk '{$1=$2=""; print $0}' harvester-system.harvester-86bfd6897c-gjqtr.apiserver.20230323.log
+ jq -r .message
parse error: Invalid numeric literal at line 21, column 0
+ ret=4
+ '[' -n 4 ']'
+ echo 'Failed to process the file harvester-system.harvester-86bfd6897c-gjqtr.apiserver.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp harvester-system.harvester-86bfd6897c-gjqtr.apiserver.20230323.log /tmp/tmp.cwOGu5UzxU/logs/harvester-system.harvester-86bfd6897c-gjqtr.apiserver.20230323.log
Failed to process the file harvester-system.harvester-86bfd6897c-gjqtr.apiserver.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ jq -r .message
+ awk '{$1=$2=""; print $0}' harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentbit-hgtqv.fluent-bit.20230323.log
+ '[' -n 4 ']'
+ echo 'Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentbit-hgtqv.fluent-bit.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentbit-hgtqv.fluent-bit.20230323.log /tmp/tmp.cwOGu5UzxU/logs/harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentbit-hgtqv.fluent-bit.20230323.log
Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentbit-hgtqv.fluent-bit.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ jq -r .message
+ awk '{$1=$2=""; print $0}' harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentd-0.config-reloader.20230323.log
Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentd-0.config-reloader.20230323.log with ret=4
Copy the original file to the destination
+ '[' -n 4 ']'
+ echo 'Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentd-0.config-reloader.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentd-0.config-reloader.20230323.log /tmp/tmp.cwOGu5UzxU/logs/harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentd-0.config-reloader.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' harvester-system.hvst-upgrade-bls5n-upgradelog-packager-jj7fj-9knsw.packager.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-packager-jj7fj-9knsw.packager.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp harvester-system.hvst-upgrade-bls5n-upgradelog-packager-jj7fj-9knsw.packager.20230323.log /tmp/tmp.cwOGu5UzxU/logs/harvester-system.hvst-upgrade-bls5n-upgradelog-packager-jj7fj-9knsw.packager.20230323.log
Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-packager-jj7fj-9knsw.packager.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ awk '{$1=$2=""; print $0}' harvester-system.hvst-upgrade-bls5n-upgradelog-packager-k4q4w-2mk8x.packager.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-packager-k4q4w-2mk8x.packager.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp harvester-system.hvst-upgrade-bls5n-upgradelog-packager-k4q4w-2mk8x.packager.20230323.log /tmp/tmp.cwOGu5UzxU/logs/harvester-system.hvst-upgrade-bls5n-upgradelog-packager-k4q4w-2mk8x.packager.20230323.log
Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-packager-k4q4w-2mk8x.packager.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ jq -r .message
+ awk '{$1=$2=""; print $0}' harvester-system.hvst-upgrade-bls5n-upgradelog-packager-mbfrk-4z7nq.packager.20230323.log
+ '[' -n 4 ']'
+ echo 'Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-packager-mbfrk-4z7nq.packager.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp harvester-system.hvst-upgrade-bls5n-upgradelog-packager-mbfrk-4z7nq.packager.20230323.log /tmp/tmp.cwOGu5UzxU/logs/harvester-system.hvst-upgrade-bls5n-upgradelog-packager-mbfrk-4z7nq.packager.20230323.log
Failed to process the file harvester-system.hvst-upgrade-bls5n-upgradelog-packager-mbfrk-4z7nq.packager.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ awk '{$1=$2=""; print $0}' harvester-system.virt-api-7cfd78b999-crnj6.virt-api.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file harvester-system.virt-api-7cfd78b999-crnj6.virt-api.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp harvester-system.virt-api-7cfd78b999-crnj6.virt-api.20230323.log /tmp/tmp.cwOGu5UzxU/logs/harvester-system.virt-api-7cfd78b999-crnj6.virt-api.20230323.log
Failed to process the file harvester-system.virt-api-7cfd78b999-crnj6.virt-api.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ awk '{$1=$2=""; print $0}' harvester-system.virt-controller-5d54b8b9bf-489wh.virt-controller.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file harvester-system.virt-controller-5d54b8b9bf-489wh.virt-controller.20230323.log with ret=4'
Failed to process the file harvester-system.virt-controller-5d54b8b9bf-489wh.virt-controller.20230323.log with ret=4
Copy the original file to the destination
+ echo 'Copy the original file to the destination'
+ cp harvester-system.virt-controller-5d54b8b9bf-489wh.virt-controller.20230323.log /tmp/tmp.cwOGu5UzxU/logs/harvester-system.virt-controller-5d54b8b9bf-489wh.virt-controller.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' kube-system.harvester-whereabouts-6szm2.whereabouts.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file kube-system.harvester-whereabouts-6szm2.whereabouts.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
Failed to process the file kube-system.harvester-whereabouts-6szm2.whereabouts.20230323.log with ret=4
Copy the original file to the destination
+ cp kube-system.harvester-whereabouts-6szm2.whereabouts.20230323.log /tmp/tmp.cwOGu5UzxU/logs/kube-system.harvester-whereabouts-6szm2.whereabouts.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' kube-system.kube-apiserver-node-0.kube-apiserver.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file kube-system.kube-apiserver-node-0.kube-apiserver.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp kube-system.kube-apiserver-node-0.kube-apiserver.20230323.log /tmp/tmp.cwOGu5UzxU/logs/kube-system.kube-apiserver-node-0.kube-apiserver.20230323.log
Failed to process the file kube-system.kube-apiserver-node-0.kube-apiserver.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ awk '{$1=$2=""; print $0}' kube-system.kube-controller-manager-node-0.kube-controller-manager.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
Failed to process the file kube-system.kube-controller-manager-node-0.kube-controller-manager.20230323.log with ret=4
Copy the original file to the destination
+ echo 'Failed to process the file kube-system.kube-controller-manager-node-0.kube-controller-manager.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp kube-system.kube-controller-manager-node-0.kube-controller-manager.20230323.log /tmp/tmp.cwOGu5UzxU/logs/kube-system.kube-controller-manager-node-0.kube-controller-manager.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' kube-system.rke2-canal-wm7z2.calico-node.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file kube-system.rke2-canal-wm7z2.calico-node.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp kube-system.rke2-canal-wm7z2.calico-node.20230323.log /tmp/tmp.cwOGu5UzxU/logs/kube-system.rke2-canal-wm7z2.calico-node.20230323.log
Failed to process the file kube-system.rke2-canal-wm7z2.calico-node.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ awk '{$1=$2=""; print $0}' kube-system.rke2-ingress-nginx-controller-9zrdr.rke2-ingress-nginx-controller.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file kube-system.rke2-ingress-nginx-controller-9zrdr.rke2-ingress-nginx-controller.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp kube-system.rke2-ingress-nginx-controller-9zrdr.rke2-ingress-nginx-controller.20230323.log /tmp/tmp.cwOGu5UzxU/logs/kube-system.rke2-ingress-nginx-controller-9zrdr.rke2-ingress-nginx-controller.20230323.log
Failed to process the file kube-system.rke2-ingress-nginx-controller-9zrdr.rke2-ingress-nginx-controller.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ awk '{$1=$2=""; print $0}' kube-system.snapshot-controller-6cc58d858f-c5nfc.snapshot-controller.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
Failed to process the file kube-system.snapshot-controller-6cc58d858f-c5nfc.snapshot-controller.20230323.log with ret=4
Copy the original file to the destination
+ echo 'Failed to process the file kube-system.snapshot-controller-6cc58d858f-c5nfc.snapshot-controller.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp kube-system.snapshot-controller-6cc58d858f-c5nfc.snapshot-controller.20230323.log /tmp/tmp.cwOGu5UzxU/logs/kube-system.snapshot-controller-6cc58d858f-c5nfc.snapshot-controller.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' kube-system.snapshot-controller-6cc58d858f-j86vd.snapshot-controller.20230323.log
+ jq -r .message
Failed to process the file kube-system.snapshot-controller-6cc58d858f-j86vd.snapshot-controller.20230323.log with ret=4
Copy the original file to the destination
+ '[' -n 4 ']'
+ echo 'Failed to process the file kube-system.snapshot-controller-6cc58d858f-j86vd.snapshot-controller.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp kube-system.snapshot-controller-6cc58d858f-j86vd.snapshot-controller.20230323.log /tmp/tmp.cwOGu5UzxU/logs/kube-system.snapshot-controller-6cc58d858f-j86vd.snapshot-controller.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.backing-image-ds-harvester-system-harvester-iso-hm2kz.backing-image-data-source.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
Failed to process the file longhorn-system.backing-image-ds-harvester-system-harvester-iso-hm2kz.backing-image-data-source.20230323.log with ret=4
Copy the original file to the destination
+ echo 'Failed to process the file longhorn-system.backing-image-ds-harvester-system-harvester-iso-hm2kz.backing-image-data-source.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp longhorn-system.backing-image-ds-harvester-system-harvester-iso-hm2kz.backing-image-data-source.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.backing-image-ds-harvester-system-harvester-iso-hm2kz.backing-image-data-source.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.backing-image-manager-d7ad-b24a.backing-image-manager.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
Failed to process the file longhorn-system.backing-image-manager-d7ad-b24a.backing-image-manager.20230323.log with ret=4
+ echo 'Failed to process the file longhorn-system.backing-image-manager-d7ad-b24a.backing-image-manager.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
Copy the original file to the destination
+ cp longhorn-system.backing-image-manager-d7ad-b24a.backing-image-manager.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.backing-image-manager-d7ad-b24a.backing-image-manager.20230323.log
+ for f in *.log
+ jq -r .message
+ awk '{$1=$2=""; print $0}' longhorn-system.csi-attacher-5d4cc8cfc8-5jctp.csi-attacher.20230323.log
+ '[' -n 4 ']'
Failed to process the file longhorn-system.csi-attacher-5d4cc8cfc8-5jctp.csi-attacher.20230323.log with ret=4
Copy the original file to the destination
+ echo 'Failed to process the file longhorn-system.csi-attacher-5d4cc8cfc8-5jctp.csi-attacher.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp longhorn-system.csi-attacher-5d4cc8cfc8-5jctp.csi-attacher.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.csi-attacher-5d4cc8cfc8-5jctp.csi-attacher.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.instance-manager-e-c361fb41.engine-manager.20230323.log
+ jq -r .message
Failed to process the file longhorn-system.instance-manager-e-c361fb41.engine-manager.20230323.log with ret=4
Copy the original file to the destination
+ '[' -n 4 ']'
+ echo 'Failed to process the file longhorn-system.instance-manager-e-c361fb41.engine-manager.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp longhorn-system.instance-manager-e-c361fb41.engine-manager.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.instance-manager-e-c361fb41.engine-manager.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.instance-manager-r-76b7baf1.replica-manager.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file longhorn-system.instance-manager-r-76b7baf1.replica-manager.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp longhorn-system.instance-manager-r-76b7baf1.replica-manager.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.instance-manager-r-76b7baf1.replica-manager.20230323.log
Failed to process the file longhorn-system.instance-manager-r-76b7baf1.replica-manager.20230323.log with ret=4
Copy the original file to the destination
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-45r5l.longhorn-admission-webhook.20230323.log
+ jq -r .message
Failed to process the file longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-45r5l.longhorn-admission-webhook.20230323.log with ret=4
Copy the original file to the destination
+ '[' -n 4 ']'
+ echo 'Failed to process the file longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-45r5l.longhorn-admission-webhook.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-45r5l.longhorn-admission-webhook.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-45r5l.longhorn-admission-webhook.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-snr5g.longhorn-admission-webhook.20230323.log
+ jq -r .message
Failed to process the file longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-snr5g.longhorn-admission-webhook.20230323.log with ret=4
Copy the original file to the destination
+ '[' -n 4 ']'
+ echo 'Failed to process the file longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-snr5g.longhorn-admission-webhook.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-snr5g.longhorn-admission-webhook.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-snr5g.longhorn-admission-webhook.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.longhorn-csi-plugin-l6hb4.longhorn-csi-plugin.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file longhorn-system.longhorn-csi-plugin-l6hb4.longhorn-csi-plugin.20230323.log with ret=4'
Failed to process the file longhorn-system.longhorn-csi-plugin-l6hb4.longhorn-csi-plugin.20230323.log with ret=4
Copy the original file to the destination
+ echo 'Copy the original file to the destination'
+ cp longhorn-system.longhorn-csi-plugin-l6hb4.longhorn-csi-plugin.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.longhorn-csi-plugin-l6hb4.longhorn-csi-plugin.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.longhorn-loop-device-cleaner-dfrgk.longhorn-loop-device-cleaner.20230323.log
+ jq -r .message
+ '[' -n 4 ']'
+ echo 'Failed to process the file longhorn-system.longhorn-loop-device-cleaner-dfrgk.longhorn-loop-device-cleaner.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
Failed to process the file longhorn-system.longhorn-loop-device-cleaner-dfrgk.longhorn-loop-device-cleaner.20230323.log with ret=4
Copy the original file to the destination
+ cp longhorn-system.longhorn-loop-device-cleaner-dfrgk.longhorn-loop-device-cleaner.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.longhorn-loop-device-cleaner-dfrgk.longhorn-loop-device-cleaner.20230323.log
+ for f in *.log
+ awk '{$1=$2=""; print $0}' longhorn-system.longhorn-manager-m9phm.longhorn-manager.20230323.log
+ jq -r .message
Failed to process the file longhorn-system.longhorn-manager-m9phm.longhorn-manager.20230323.log with ret=4
Copy the original file to the destination
+ '[' -n 4 ']'
+ echo 'Failed to process the file longhorn-system.longhorn-manager-m9phm.longhorn-manager.20230323.log with ret=4'
+ echo 'Copy the original file to the destination'
+ cp longhorn-system.longhorn-manager-m9phm.longhorn-manager.20230323.log /tmp/tmp.cwOGu5UzxU/logs/longhorn-system.longhorn-manager-m9phm.longhorn-manager.20230323.log
+ cd /tmp/tmp.cwOGu5UzxU
+ zip -r /archive/hvst-upgrade-bls5n-upgradelog-archive-2023-03-23T03-59-49Z ./logs/
  adding: logs/ (stored 0%)
  adding: logs/kube-system.rke2-canal-wm7z2.calico-node.20230323.log (deflated 97%)
  adding: logs/harvester-system.hvst-upgrade-bls5n-upgradelog-packager-k4q4w-2mk8x.packager.20230323.log (deflated 98%)
  adding: logs/longhorn-system.backing-image-manager-d7ad-b24a.backing-image-manager.20230323.log (deflated 90%)
  adding: logs/longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-45r5l.longhorn-admission-webhook.20230323.log (deflated 55%)
  adding: logs/harvester-system.harvester-86bfd6897c-gjqtr.apiserver.20230323.log (deflated 96%)
  adding: logs/harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentbit-hgtqv.fluent-bit.20230323.log (deflated 98%)
  adding: logs/longhorn-system.instance-manager-e-c361fb41.engine-manager.20230323.log (deflated 99%)
  adding: logs/harvester-system.hvst-upgrade-bls5n-upgradelog-packager-jj7fj-9knsw.packager.20230323.log (deflated 98%)
  adding: logs/longhorn-system.csi-attacher-5d4cc8cfc8-5jctp.csi-attacher.20230323.log (deflated 74%)
  adding: logs/longhorn-system.longhorn-loop-device-cleaner-dfrgk.longhorn-loop-device-cleaner.20230323.log (deflated 97%)
  adding: logs/kube-system.kube-controller-manager-node-0.kube-controller-manager.20230323.log (deflated 94%)
  adding: logs/harvester-system.virt-controller-5d54b8b9bf-489wh.virt-controller.20230323.log (deflated 91%)
  adding: logs/kube-system.kube-apiserver-node-0.kube-apiserver.20230323.log (deflated 80%)
  adding: logs/longhorn-system.instance-manager-r-76b7baf1.replica-manager.20230323.log (deflated 94%)
  adding: logs/harvester-system.virt-api-7cfd78b999-crnj6.virt-api.20230323.log (deflated 99%)
  adding: logs/kube-system.rke2-ingress-nginx-controller-9zrdr.rke2-ingress-nginx-controller.20230323.log (deflated 96%)
  adding: logs/kube-system.snapshot-controller-6cc58d858f-c5nfc.snapshot-controller.20230323.log (deflated 97%)
  adding: logs/longhorn-system.longhorn-csi-plugin-l6hb4.longhorn-csi-plugin.20230323.log (deflated 97%)
  adding: logs/kube-system.harvester-whereabouts-6szm2.whereabouts.20230323.log (deflated 69%)
  adding: logs/kube-system.snapshot-controller-6cc58d858f-j86vd.snapshot-controller.20230323.log (deflated 96%)
  adding: logs/harvester-system.hvst-upgrade-bls5n-upgradelog-packager-mbfrk-4z7nq.packager.20230323.log (deflated 97%)
  adding: logs/longhorn-system.longhorn-manager-m9phm.longhorn-manager.20230323.log (deflated 99%)
  adding: logs/harvester-system.hvst-upgrade-bls5n-upgradelog-infra-fluentd-0.config-reloader.20230323.log (deflated 90%)
  adding: logs/longhorn-system.longhorn-admission-webhook-7c7d9b9dd9-snr5g.longhorn-admission-webhook.20230323.log (deflated 55%)
  adding: logs/longhorn-system.backing-image-ds-harvester-system-harvester-iso-hm2kz.backing-image-data-source.20230323.log (deflated 92%)
+ echo done
done

The log files are still being packaged but not processed to the original format (still in JSON-format) so it will be hard to read for human.
To Reproduce
Steps to reproduce the behavior:

Provision a Harvester cluster in v1.1.2-rc3
Trigger an upgrade to the same version using the same ISO image
kubectl exec into the fluentd Pod and mess up a random log file, for example, echo "AA AA AA" >> /archive/logs/harvester-system.harvester-86bfd6897c-gjqtr.apiserver.20230323.log
Click "Download Log" on the UI
Check the downloaded log archive, besides the messed up file, there will be other log files in JSON format, too

Expected behavior

The log packager should only skip process the impacted log file.
Support bundle

Environment

Harvester ISO version: v1.1.2-rc3
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Additional context
Add any other context about the problem here.

Verified this bug has been fixed.
Test Information

Environment: qemu/KVM single node
Harvester Version: v1.1-a45150f8-head
ui-source Option: Auto

Verify Steps

Install Harvester with any nodes
Perform a same version upgrade^1
During the Upgrade, login to the node and execute following command:

# To access the pod
CMD=$(kubectl get pods -A | grep infra-fluentd | awk '{print $1" "$2" -it sh"}') && kubectl exec -n $CMD
# To write some invalid log
echo "AAA AA AAA AAA OOOO AO" > /archive/logs/aaaooo.log && cat /archive/logs/aaaooo.log && exit

Login to dashboard, download upgrade log
file aaaooo.log should exist in the zipfile


nix tip methods

Bye-bye, tip methods.

Rebased on master.

Ready for review!

Self-merging. I want to rebase #3599 on this.


MODE-2539 Fixes the potential corruption of the system area after a restore operation

The problem occurs when restoring a 3.x repository (pre indexing) to a 4.x repository (post indexing) and occurs due to the fact that the /jcr:system/mode:indexes area has to be initialized only after the repository is restarted post-restore. This is because a restore operation can change the rootNode key and source key of the running repository.

Looks good.


RAS-920 Collection exercise change mockito-inline to mockito-core for Java

What and why?
Swaps mockito inline to mockito core and adding bytebuddy to allow it to run
How to test?

run mvn clean verify
deploy to your env and run the acceptance tests

Jira
https://jira.ons.gov.uk/browse/RAS-920

/deploy wilkia

/deploy robinm3


how to change the  input length of network?

Hi!
@yysijie
I'm sorry to bother you.
I built a database similar to Kinetics, but it length shorter than Kinetics. According to my person undertanding,  if the input is less than the preset length, it would random sample sub-sequencd with the same window, for example, when input is 100 frame, and the preset length is 300, then the finally input is 300 frames. When the model is trained, enter a long video,  the length of the input is 300 frames. Is it right? Could you tell me how to change the input length of network, because my train dataset is too short.
Thank you very much.

I think you just need to change the window_size in train.yaml, or make your length longer in #97 .

Hi, @huangzhenjie,
you can set the skeleton length according to your typical length in your dataset.
Our model is not sensitive to this hyper-parameter.


[BUG] Use "routerProvider" to customize the route jump problem

Describe the bug
The initial route cannot be set to the custom "routes" list directory.
He will jump to the first route in the "resources" list.
Steps To Reproduce
import routerProvider, { BrowserRouterComponent } from "@pankod/refine-react-router-v6";

      routerProvider={{

        routes: [
          {
            path: "/home",
            element: (<Home />),
          },
        ],
        ...routerProvider,
        RouterComponent: BrowserRouterComponent.bind({
          initialRoute: "/home",//invalid
        }),

      }}

Expected behavior
Can jump normally
Screenshot
No response
Desktop
OS : Ubuntu 22.04 LTS
browser ：edge
Mobile
No response
Additional Context
No response

Hey @booskz ,
I've tried and works very well. Could you share npm run refine whoami command result?

Usually the routing works normally . I'm not sure if I can use the root directory . A video was recorded here .
📹video


Incorrect URL in rule

In this rule:
https://github.com/chocolatey/package-validator/blob/master/src/chocolatey.package.validator/infrastructure.app/rules/CopyRightAndAuthorFieldsShouldntContainEmailRequirement.cs
It links to this URL:
https://github.com/chocolatey/package-validator/wiki/CopyrightAndAuthorFieldsShouldntContainEmail
However, this URL doesn't exist.  Instead, it should point to the following URL:
https://github.com/chocolatey/package-validator/wiki/NuspecDoesNotContainEmail

The PackageIdUsesUnderscoreNotes rule also links to a page that doesn't exist.
https://github.com/chocolatey/package-validator/blob/master/src/chocolatey.package.validator/infrastructure.app/rules/PackageIdUsesUnderscoresNote.cs
Links to:
https://github.com/chocolatey/package-validator/wiki/PackageIdUsesUnderscores
Can't find a wiki page that matches that rule either.

I have fixed the URL for the CopyRightAndAuthorFieldsShouldntContainEmailRequirement.cs file.
I think we need to create a new wiki document for the PackageIdUsesUnderscoresNote.cs file (https://github.com/chocolatey/package-validator/wiki/PackageIdUsesUnderscores)

@mkevenaar said...
I think we need to create a new wiki document for the PackageIdUsesUnderscoresNote.cs

I have created a stub page in the wiki for this.


can't connect mysql running on wsl2

I have to wsl2 instance , one is ubuntu ,the other is centos7,  I have install mysql on two wsl2 instance,  then  I  run python  on windows  as below,
this code can connect mysql on ubuntu , but can't connect mysql on centos ,   if I change host to  eth0 ip of centos , It work
import mysql.connector

mydb = mysql.connector.connect(
  host="localost",
  port=3306,
  user="root",
  password="xxx",
  database="xxxx"
)

Deleted template. If it is working in ubuntu not centos the problem is almost certainly in userspace not WSL. WAG you are using the same port for both instances of mysql.


New property

Is it possible to implement a new property of type image that represented the flag of each state? Can be called flag.
It's much better for UX to have flags in a GridView/ListView than just state names.

@brunopulis what do you think?

@luciano01 I like your proposal, would you like to implement?
I have two questions:

This images will be SVG type?
Is your project is open source?

If yes, send me URL to put in the readme.

@mvfsillva and @luciano01 I like the idea to use flags from each state. As Marcus said it would be ideal to use SVG to represent each flag because for accessibility it is very easy to manipulate.

What do you think @victorferreira?

That's a great idea. We could use the svg files used by Wikipedia.
https://pt.wikipedia.org/wiki/Ficheiro:Bandeira_da_Bahia.svg

@luciano01 I like your proposal, would you like to implement?
I have two questions:

This images will be SVG type?
Is your project is open source?
If yes, send me the URL to put in the readme.

I don't have experience with JavaScript. Would be better someone to implement, rsrs.
Answering:
1- I think SVG is better.
2- This is my intention, but I'm recovering from surgery on my shoulder, programming with one hand. Soon as possible I will make the project available on Github.

Nice @luciano01, I will implement :]

@mvfsillva Nice man, don't forget to describe the SVG files to improve the accessibility <3

Ok @brunopulis help me with this

@mvfsillva for sure dude ❤

@luciano01 I like your proposal, would you like to implement?
I have two questions:

This images will be SVG type?
Is your project is open source?
If yes, send me the URL to put in the readme.

Hey @mvfsillva , I finished uploading the project on Github. But I am still updating the code and the readme. Here's the link

Hi @victorferreira thanks for the opinion, you were thinking of implementing?

Sorry @victorferreira, I didn't ask you if you would like to implement 🙁 My bad.


Dual list component is not compiling in aot compilation

I am unable to reproduce this using angular-cli to build.

Installed packages for tooling via npm.
Successfully initialized git.
Project 'project' successfully created.
~/work> cd project/
~/work/project> npm install angular-dual-list --save
+<EMAIL_ADDRESS>added 1 package in 10.028s

Edited app.module.ts:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AngularDualListBoxModule } from 'angular-dual-listbox';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AngularDualListBoxModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Edited app.component.ts
import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'app';
  source = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g' ];
  target = [];
}

Edited app.component.html
<div style="text-align:center">
  <dual-list [source]="source" [(destination)]="target"></dual-list>
</div>

Then compiled:
~/work/project> ng build --prod
Date: 2017-09-04T17:59:01.569Z
Hash: ee8a1dda9accfb93e727
Time: 20989ms
chunk {0} polyfills.c9b879328f3396b2bbe8.bundle.js (polyfills) 64.1 kB {4} [initial] [rendered]
chunk {1} main.2dcdaf5838fa5a3462d9.bundle.js (main) 2.5 kB {3} [initial] [rendered]
chunk {2} styles.d41d8cd98f00b204e980.bundle.css (styles) 0 bytes {4} [initial] [rendered]
chunk {3} vendor.48b0b619cf9b59c19ec6.bundle.js (vendor) 320 kB [initial] [rendered]
chunk {4} inline.8e557ed5f8941930a4e9.bundle.js (inline) 1.45 kB [entry] [rendered]

I've also tested explicitly turing on aot, with --aot=true and the project builds with aot.

Please reopen this issue with a project (code) to reproduce this, if you want me to relook at what you are seeing.

There was a problem with me when trying to customize the inheriting component of DualListComponent.
I could not resolve the error, so I did not customize the component.
It may have been the same as @shubham441996.

That is odd. @danilomcb what was the customization you were trying to do?

I tried to do something similar to what existed in the documentation:
import { Component } from '@angular/core';
import { DualListComponent } from 'angular-dual-listbox/index';

@Component({
    selector: 'custom-dual-list',
    templateUrl: './custom-dual-list.component.html',
    styleUrls: [ './custom-dual-list.component.css' ]
})
export class CustomDualListComponent extends DualListComponent {
}

I tried to change the position and the colors of the buttons.
I also use angular-cli.
If I can not reproduce the error, I can try here.

I created an example project extending / customizing the DualListComponent and put it on GitHub. You can find the project here: Custom Dual Listbox.
@danilomcb Hopefully this will help out with extending / customizing the component.

Thankew so much.

I will test and correct my mistake.
Thank you, @czeckd!


Can't start a remote JVM debug session from my IDEA: "handshake failed - connection prematurally closed"

What happened?

What were you attempting to do?

I'm using pack and Paketo buildpacks for building OCI containers for my Spring Boot applications (version 2.4.6).
To clarify I'm not using the Spring Boot Maven plugin to create an OCI image for my applications.
The applications are built using Maven and Java 11 and are running in the OCI container using JRE 11.
Yesterday I ran into the issue of not being able to start a remote JVM debugging session from IntelliJ to a running container.

Steps to reproduce

Make sure to have Java JDK 11 installed (I'm using 11.0.11, vendor: AdoptOpenJDK)
Create a simple Spring Boot Application (version 2.4.5, Java version 11 with Spring Web dependency)
Build the project: ./mvnw clean package
Build the OCI container using pack with debug enabled: pack build application/demo --builder paketobuildpacks/builder:base --path target/demo-0.0.1-SNAPSHOT.jar --env BP_JVM_VERSION=11 --env BP_DEBUG_ENABLED=true
Start the container: docker run --rm --tty --publish 8080:8080 --publish 8000:8000 --env BPL_DEBUG_ENABLED=true application/demo
From the IDEA start a remote JVM debug session:

Error running 'Remote Debug': Unable to open debugger port (:8000): java.io.IOException "handshake failed - connection prematurally closed"
The Spring Boot application output log:
Setting Active Processor Count to 4
Calculating JVM memory based on 7074784K available memory
Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -Xmx6477722K -XX:MaxMetaspaceSize=85061K -XX:ReservedCodeCacheSize=240M -Xss1M (Total Memory: 7074784K, Thread Count: 250, Loaded Class Count: 12604, Headroom: 0%)
Adding 129 container CA certificates to JVM truststore
Spring Cloud Bindings Enabled
Debugging enabled on port 8000
Picked up JAVA_TOOL_OPTIONS: -Djava.security.properties=/layers/paketo-buildpacks_bellsoft-liberica/java-security-properties/java-security.properties -agentpath:/layers/paketo-buildpacks_bellsoft-liberica/jvmkill/jvmkill-1.16.0-RELEASE.so=printHeapHistogram=1 -XX:ActiveProcessorCount=4 -XX:MaxDirectMemorySize=10M -Xmx6477722K -XX:MaxMetaspaceSize=85061K -XX:ReservedCodeCacheSize=240M -Xss1M -Dorg.springframework.cloud.bindings.boot.enable=true -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n
Listening for transport dt_socket at address: 8000

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.4.6)

When I downgrade the Spring Boot application to Java 8.
And build using:
pack build application/demo --builder paketobuildpacks/builder:base --path target/demo-0.0.1-SNAPSHOT.jar --env BP_JVM_VERSION=8 --env BP_DEBUG_ENABLED=true
and start the OCI container:
docker run --rm --tty --publish 8080:8080 --publish 8000:8000 --env BPL_DEBUG_ENABLED=true application/demo
I can start the remote JVM debug session without any problem:
Connected to the target VM, address: ':8000', transport: 'socket'
The workaround I use now is to use Java 11 and build without the BP_DEBUG_ENABLED=true flag but add JVM remote debug settings myself using the JAVA_TOOL_OPTIONS:
docker run --rm --tty --publish 8080:8080 --publish 8000:8000 --env JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000" application/demo

What did you expect to happen?

I expect to be able to start a remote JVM debug session using Java 11 or later.

What was the actual behavior? Please provide log output, if possible.

The actual behavior: Can start a remote JVM debug session.
Error from IntelliJ:
Error running 'Remote Debug': Unable to open debugger port (:8000): java.io.IOException "handshake failed - connection prematurally closed"
Build Configuration
OS: Mac OS X, version: 10.15.7, arch: x86_64
Maven version: Apache Maven 3.6.3
Java version: 11.0.11, vendor: AdoptOpenJDK

What platform (pack, kpack, tekton buildpacks plugin, etc.) are you
using? Please include a version.

Pack version: 0.14.2+git-0fd189d.build-1450

What buildpacks are you using? Please include versions.

Paketo CA Certificates Buildpack 2.2.0
Paketo BellSoft Liberica Buildpack 8.0.0
Paketo Executable JAR Buildpack 5.0.0
Paketo Spring Boot Buildpack 4.3.0
Paketo Debug Buildpack 3.0.0

What builder are you using? If custom, can you provide the output from pack inspect-builder <builder>?

Builder: paketobuildpacks/builder:base

Can you provide a sample app or relevant configuration (buildpack.yml,
nginx.conf, etc.)?

Example application to reproduce the issue:
https://github.com/j-tim/spring-boot-paketo-buildpacks-debug-issue
To me it looks like the debug buildpack is not taking the difference between Java 8 and Java 11 command line arguments into account:
Java 8:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
Java 11:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000
Checklist

[x] I have included log output.
[x] The log output includes an error message.
[x] I have included steps for reproduction.

Thanks for this report. It looks like the behavior has changed in Java 11.
> java -version
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)

> java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 Test
Listening for transport dt_socket at address: 8000
started

and that results in:
> netstat -an | grep LISTEN | grep 8000
tcp4       0      0  *.8000                 *.*                    LISTEN

and with Java 11
> java -version
openjdk version "11.0.10" 2021-01-19 LTS
OpenJDK Runtime Environment (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM (build 11.0.10+9-LTS, mixed mode)

> java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 Test11
Listening for transport dt_socket at address: 8000
started

you get localhost instead of all interfaces.
> netstat -an | grep LISTEN | grep 8000
tcp4       0      0  <IP_ADDRESS>.8000         *.*                    LISTEN

The latter fails cause localhost is only accessible inside the container.
I will update the settings that we use for Java 11. Thanks again.

@dmikusa-pivotal is there any update regarding this issue? In case, I'm available to help fixing the bug.

If Java <= 8, then -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
If Java >= 9, then -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000

We are going to be working on this shortly (I'm hoping to have it done in the next couple of weeks).
There is a larger workstream to refactor & consolidate Java feature flag buildpacks like Debug. This is part of RFC #0004. We'll fix this issue during that work.

@dmikusa-pivotal thanks for your response and detailed explanation.
I think the behavior already changed since Java 9 see: https://bugs.openjdk.java.net/browse/JDK-8175050.
The work around I use for now is to build the OCI image using the --env BP_DEBUG_ENABLED=true flag:
pack build application/demo --builder paketobuildpacks/builder:base --path target/demo-0.0.1-SNAPSHOT.jar --env BP_JVM_VERSION=11 --env BP_DEBUG_ENABLED=true

And explicitly set the BPL_DEBUG_PORT to *:8000 when starting the OCI container:
docker run --rm --tty --publish 8080:8080 --publish 8000:8000 --env BPL_DEBUG_ENABLED=true --env BPL_DEBUG_PORT=*:8000 application/demo