Debugging from log

Hi, first of all, this is really cool
im planning to use bytenode in one of my production environment,
one issue tho, say my app crashed, any idea how can i pinpoint where is the crash ?
example:
this is the crash log i got from a .jsc file
TypeError: Cannot read property 'push' of undefined
    at Router.get (evalmachine.<anonymous>:1:250)
    at Layer.handle [as handle_request] (/home/engineer2/Vouch/sandbox/nexe-test/node_modules/express/lib/router/layer.js:95:5)
...
...

from that, i can't really see which line is the culprit.
just want to hear your thought on this,
i'm guessing this is a trade off for using this kind of tool ?
thanks!

edit:
also, theoretically, is there a way to reverse engineer complied file ?

Thank you for your positive feedback.
As far as I know, V8 does minify scripts before compiling them into bytecode. If you compile the minified version vs the documented version of lodash (for example), you will get almost the same result.
So, just as you can't easily debug the minified version of your scripts, you can't easily debug .jsc files. Moreover, the actual plain source code is missing in case of .jsc, it gets replaced with empty string.
The only useful information that you will get is the error stack, it will be something like that:
ReferenceError: someValue is not defined
    at someFunction (evalmachine.<anonymous>:1:112)
    at otherFunction (evalmachine.<anonymous>:1:149)
    at Object.<anonymous> (evalmachine.<anonymous>:1:165)
    at Object.Module._extensions.(anonymous function) [as .jsc] (/usr/local/lib/node_modules/bytenode/index.js:138:26)

Here, you know that the error is ReferenceError and it happened in someFunction() that was called inside otherFunction(). Now, you can check your source code and fix the problem.
For the other question: Yes, it can be reverse-engineered. With enough effort and time, you can reverse-engineer anything. I don't know precisely how hard de-compiling V8 bytecode is, but I guess it's not an easy task, giving that it's API is constantly changing and somewhat poorly documented. Also, there is no real demand for de-compiling V8 bytecode, not like C# or Java at least. So, your code should be safe, at least in the foreseeable future :).


Python console stdin is broken

I observe this in the nightly build of Slicer, but I suspect the culprit is the recent changes to the Python console.
Any command that inputs stdin causes the cursor to jump to where the command was entered:
input('\nTest:')

A more severe version is when using pdb, which altogether prevents entering debug commands:
1 / 0
import pdb
pdb.pm()

Thanks for the report.

I suspect the culprit is the recent changes to the Python console

Most likely.
Would you have time to help address the issue ?

Did input command work before? Regardless where the cursor position is, whatever you enter as a response to input, it will be interpreted as a command (I think this is not a new behavior).
The refactoring changed interaction between entering commands and printing output. I've fixed an issue of commands incorrectly constructed when string is printed before completing the command (my use case was that background tasks print outputs while I'm typing a command, see #733), but apparently it didn't solve all the issues.
@auneri It would be great if you could propose a fix, I would be happy to test it.
About pdb: the Python console should definitely work well with pdb, but note that there much more powerful visual debuggers (PyCharm, Visual Studio, Eclipse, LiClipse). You can very easily set them up, in any environment and any operating system. You might check them out as well.

The mentioned pull request seems to at least recover the old behavior.
@lassoan Thanks for the offer, it definitely needs testing to ensure I didn't break anything..


Multi-variadic Set

I would love to be able to build maps by passing multiple arguments as KV pairs.
mymap := ps.NewMap().Set("foo", "bar", "baz", "baa")

Would this make sense?

Actually I don't think there's a good way to do this. Sorry, just started with Go.


version 0.4.6: indent guides does not work properly.

First of all, thank you for your hard work! I'm a new user, I stumble upon gonevim while searching for vim/neovim indent guides. At the first glance, I like this program.
When I test the indent guides feature, there are few problems:

I open a Perl script or c++ files, the indent guide lines do not appear. If I move the cursor up down over the code block, the guide lines appeared and disappeared randomly. VS code displays them no problem.
The guide lines do not appear on Lua files at all.

I use Linux x86_64, pre-built goneovim downloaded from github.

Hi :)
Thanks for using Goneovim.
I want to parse this issue, so please let me know what your vimrc / init.vim contains.
Also, does the problem reappear when launched from the terminal with the following commands?
/path/to/goneovim -u NONE

I run also with -u NONE as you asked.

I figured out that the guide line disappear if the code block is not displayed entirely on the Goneovim window, or caused by word-wrapping, or sometimes I need to page up/down for the program to display the guide lines (I show in a screencast in attached file).
Goneovim does not display indent guides for Lua and Python files.
for some messy styled code, Goneovim does not also display guide lines.

I attached example and screenshot zip file.
example.zip

It doesn't display indent guides in init.vim too. Like
if(exists(foo))   bar endif

Hi, thank you!
Here is what I've tested:
The new build fixed:

Work with Python and Lua code.
Indent guide works with empty lines
Dealt with bad style code (at least, in the cases I know)

There are still problems:

Warped lines, comments still interrupt indent guides
Still has problem with space as indentation character (as you can see with the original.cc in my example.zip in the third post).
If the file is indented with 3 spaces, and tab's length is 4 then indent guides are only displayed for blocks indented by k * 3 * 4 spaces.
It seems that goneovim recognize indentation by tab instead of spaces.
I still have problem with "refreshing" (page up/down) to get the indent guides fully displayed. I don't know if it's just me?
Indent guides disappear if the first half of the code block is not displayed in the viewed window.

I made a screencast for the last two problem:
2020-06-07.zip

Hi, I appreciate the detailed report.
I have tried to improve on your points.
https://github.com/akiyosi/goneovim/actions/runs/130002541
Let me explain a bit about the internal implementation.
The indentation guide in goneovim doesn't look at the actual character of the file.
In the neovim UI, all whitespace characters (tabs and spaces) are treated as simple spaces.
For this reason, goneovim displays the indent guides according to the size of the tabstop.
If the width of the guide is not the right size for your file type, you can adjust the tabstop, e.g.  :set ts=4.
If you don't want to do it manually yourself, you can use autocmd or a plugin.
I'd be happy to get feedback from you again.

I'm beginning to think we need a personal setting for indent-guide feature.
In the current implementation, for example, the indent guides are displayed for all buffers. e.g.  terminal buffer.
So I'd like to get feedback on what options are needed.
I would appreciate any comments in this issue.

vim-startify has inden guides now

also init.vim doesn't have indent guides (tabstop=2)

init.vim
`vim
call plug#begin('~/.config/nvim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'dense-analysis/ale'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'zgpio/tree.nvim'
Plug 'mhinz/vim-startify'
Plug 'justinmk/vim-gtfo'
Plug 'jiangmiao/auto-pairs'
Plug 'psliwka/vim-smoothie'
Plug 'vim-airline/vim-airline'
Plug 'ryanoasis/vim-devicons'
Plug 'kassio/neoterm'
Plug 'mhinz/vim-signify'
Plug 'PitcherTear22/nvim-treesitter'
Plug 'akiyosi/gonvim-fuzzy'
Plug 'Yggdroot/LeaderF', { 'do': './install.sh' }
Plug 'norcalli/nvim-colorizer.lua'
Plug 'jeffkreeftmeijer/vim-numbertoggle'
Plug 'easymotion/vim-easymotion'
Plug 'tomasiser/vim-code-dark'
Plug 'liuchengxu/vim-which-key'
Plug 'reedes/vim-pencil'
call plug#end()
colorscheme dracula
set mouse=a
map
map
nnoremap  K :call show_documentation()
set number relativenumber
set guifont=Iosevka\ SS05:h13
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
highlight Comment cterm=italic gui=italic
set tabstop=2
set clipboard+=unnamedplus
"vim-airline config
let g:airline_theme='codedark'
let g:airline_powerline_fonts = 1
let g:airline#extensions#ale#enabled = 1
let g:airline#extensions#coc#enabled = 1
let g:airline#extensions#statusline#enabled = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#wordcount#filetypes = '\vasciidoc|help|mail|markdown|markdown.pandoc|org|rst|tex|text'
let g:airline_right_sep = "\uE0B6"
nmap  :NERDTreeToggle
if(exists('g:gonvim_running'))
nmap  :GonvimFuzzyFiles
" THIS STUFF IS FOR TESTING INDENT GUIDES
colorscheme dracula
set mouse=a
map
map
nnoremap  K :call show_documentation()
set number relativenumber
set guifont=Iosevka\ SS05:h13
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
highlight Comment cterm=italic gui=italic
else
nmap  :LeaderfFile
endif
"vim-smoothie
noremap   :call smoothie#downwards()
noremap     :call smoothie#upwards()
"ale
let g:ale_sign_error = '×'
let g:ale_sign_warning = '⚠'
let g:ale_java_eclipselsp_config_path='/home/chinmay/.jdtls'
let g:ale_lint_on_text_changed = 'always'
let g:ale_c_clangformat_options = '-style=Google'
let g:ale_fixers = {
\   '*': ['remove_trailing_lines', 'trim_whitespace'],
\   'bash': ['language_server'],
\   'java': ['google_java_format'],
}
let g:ale_linters = {
\   'python': ['flake8'],
}
set termguicolors
set noshowmode
let g:one_allow_italics = 1
"goneovim
if (exists('g:gonvim_running'))
hi MsgSeparator guifg=#282A36
let g:coc_config_home = '~/.goneovim'
endif
"coc snippets config
inoremap
\ pumvisible() ? coc#_select_confirm() :
\ coc#expandableOrJumpable() ? "<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])<CR>" :
\ check_back_space() ? "<TAB>" :
\ coc#refresh()
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1]  =~# '\s'
endfunction
let g:coc_snippet_next = ''
"fix syntax highlighting for comments in coc-json
autocmd FileType json syntax match Comment +//.+$+
let g:neoterm_default_mod='botright'
let g:Lf_WindowPosition = 'popup'
let g:Lf_PreviewInPopup = 1
lua require'colorizer'.setup()
let g:airline_section_z = airline#section#create(["\uE0A1" . '%{line(".")}' . "\uE0A3" . '%{col(".")}'])
nmap  :ALEFix
"TREE-SITTER SETUP
lua << EOF
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,                 -- false will disable the whole extension
disable = { 'rust' },     -- list of language that will be disabled
},
incremental_selection = {             -- this enables incremental selection
enable = true,
disable = { 'cpp', 'lua' },
keymaps = {                       -- mappings for incremental selection (visual mappings)
node_incremental = "e", -- "grn" by default,
scope_incremental = "f" -- "grc" by default
}
},
node_movement = {                     -- this enables cursor movement in node hierarchy
enable = true,
disable = { 'cpp', 'rust' },
keymaps = {                       -- mappings for node movement (normal mappings)
move_up = "",              -- default is to move with alt key hold
move_down = "",
move_left = "",
move_right = "",
}
},
ensure_installed = 'java' -- one of 'all', 'language', or a list of languages
}
EOF
nnoremap        :WhichKey ''
nnoremap   :WhichKey  ','
nnoremap  y  :CocList -A --normal yank
`

But the tree-sitter setup part has guides:

@PitcherTear22
Hi, thanks for the report.
The first point you pointed out, about the indentation guide display for the vim-startify buffer.
Yes, I am aware of these issues. For example, terminal buffers will show the guide as well. And this issue is a bit difficult. Because these can only be handled if you understand the content. For this reason, I think there needs to be some settings for displaying indentation guides. For example, specifying an out-of-target buffer.
Second point :
This is because the indentation level is 1. Currently, the indent guide is displayed from a level 2 (i.e., two tabs) block.
The third point :
This is shown as expected for blocks with an indentation level of 2 or higher.

Second point :
This is because the indentation level is 1. Currently, the indent guide is displayed from a level 2 (i.e., two tabs) block.

Oh I understand now

The third point :
This is shown as expected for blocks with an indentation level of 2 or higher.

Yeah I meant to say that this was not a problem in init.vim

Sorry for offtopic question!
What is your theme/skin, fonts, and how to config Goneovim match the system style here?
I use KDE, btw.

vim colorscheme - dracula
font - iosevka (ss05)
matching system - i use a matching wallpaper and shell theme
I use gnome, if you use KDE it should match even more beacuse goneovim is qt

Thanks!


New section on moral anti-realism

Added a moral-anti-realism section to Philosophy. Felt that a fleshed-out explanation here was necessary as most people believe in morality, so just leaving it unexplained in the summary was a bit jarring. If any changes need to be made let me know.

britbonger spelling, misplaced hyphen in "moral anti-realist".
also: line 31: "The fact that I think that morality is not real"
even if this is true, i feel like this wording is just asking for problems.

Cheers for the corrections. I will reconsider how to word the statement you highlighted.

britbonger spelling, misplaced hyphen in "moral anti-realist".
also: line 31: "The fact that I think that morality is not real"
even if this is true, i feel like this wording is just asking for problems.

Cheers for the corrections. I will reconsider how to word the statement you highlighted.

i can't really come up with something i'm happy with but something more like:
"Just because I don't believe that morality is objective" or
"Just because I believe that morality is fluid/objective"
i feel like having "i don't think morality is real" is just going to encourage dumbfucks Pog facing screaming "HE DOESN'T THINK MORALITY IS REAL! WHAT AN IDIOT"

britbonger spelling, misplaced hyphen in "moral anti-realist".
also: line 31: "The fact that I think that morality is not real"
even if this is true, i feel like this wording is just asking for problems.

Cheers for the corrections. I will reconsider how to word the statement you highlighted.

i can't really come up with something i'm happy with but something more like:
"Just because I don't believe that morality is objective" or
"Just because I believe that morality is fluid/objective"
i feel like having "i don't think morality is real" is just going to encourage dumbfucks Pog facing screaming "HE DOESN'T THINK MORALITY IS REAL! WHAT AN IDIOT"

Yeah it's a legitimate criticism, especially when this is supposed to be a public-facing diplomatic piece on Destiny. I think using a word like "objective" is problematic though, because the question isn't about moral objectivism/subjectivism, and when were dealing with philosophy we have to be super careful about the terms used. For now I've reworded to "The fact that I think there is no such thing as morality" as stated in the summary and start of the section. If you do come up with anything better though please do let me know and I'll revise it again.

UWOTM8


MIC-750 landing page

MIC-750

Codecov Report
Attention: Patch coverage is 86.84211% with 5 lines in your changes missing coverage. Please review.

Project coverage is 90.46%. Comparing base (44914e5) to head (bbff2c1).
Report is 2 commits behind head on main.

Files with missing lines
Patch %
Lines

assets/js/utils.js
60.00%
2 Missing :warning:

assets/js/card.js
83.33%
1 Missing :warning:

server/routes/controller.ts
88.88%
1 Missing :warning:

server/routes/manage-csips/controller.ts
50.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #309      +/-   ##
==========================================
- Coverage   90.48%   90.46%   -0.02%
==========================================
  Files         344      347       +3
  Lines        5128     5151      +23
  Branches      745      746       +1
==========================================
+ Hits         4640     4660      +20
- Misses        473      476       +3
  Partials       15       15

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


GH122: DocumentSymbol returns DocumentSymbol[] or SymbolInformation[]

ping @david-driscoll @tintoy
Fixes #122

I completely missed this when I was working on #126...


Comma separated numbers

The list of changes I have made -

Commented on some main functions like getLocaleClass, getLocale, convert
This is the first iteration of commenting where I have added comments to the above functions only.
Issue: when passed any number with commas it doesn't give the text
- Added method in checkType that checks the string number ('1,234.90') and remove the strings and pass as the number
- It adds functionality for the user to pass the number with comma-separated values if any.

I have updated the changes for comments and function name.

@apoorvachikara You shall remove package-lock file from your PR as it doesn't require any update. I'd suggest you to sync your repo and rebase your branch with main branch and push the changes.

Rebase is clean and easier. Do you believe there will be any challenge with rebase?


Can't remove XP Drain Singularity Tank from Refined Storage

Describe the bug
The XP drain singularity tank from the Mob Grinding Utils mod cannot be taken out of the refined storage when it contains liquid (storing xp). When the tank is empty, it can be taken out like any other item, but when storing xp, clicking on the item won't do anything and thus can't be taken out of the storage. Also something else I noticed is that when the controller is losing energy and goes off, access to all your items is turned off like it should be, but the xp drain singularity tank appears as being accessible but still cant be taken out, so clearly something is going wrong with that specific item. I am unable to reproduce this second bug though.
This image shows that I can pick up the tank when there is no xp fluid inside of it.

This image shows that there is xp fluid inside and I am unable to pick it up

How can we reproduce this bug or crash?

Create a refined storage unit with a storage part so that items can be stored in it
Craft a xp drain singularity tank from Mob Grinding Utils
Have some amount of xp levels, just say 5, and stand over the drain so that it extracts the levels
Break the drain and put it into the refined storage
Search for the drain and attempt to take it out of the storage, no inputs will allow you to take out the item

What Minecraft version is this happening on?
Minecraft 1.21.1
What NeoForge or Fabric version is this happening on?
NeoForge 21.1.89
What Refined Storage version is this happening on?
v2.0.0-milestone.4.11
Relevant log output
No response

Looks related to https://github.com/refinedmods/refinedstorage2/issues/735 possibly?
Definitely needs to be investigated i think


Make write timeout work on Socket transport

A pending write could be hanging the write loop, so we need to abort it out of band in case of a write timeout. In the libuv transport we do this by disposing the socket in the writer completion callback, which cancels the pending write req.

@muratg / @halter73 - anything to do here for preview1?

We'll be overhauling this area as we continue to investigate Sockets transport as a transport.

@muratg @cesarbs are you tracking this elsewhere? Sockets transport should not be used in production without a timeout.

@davidfowl is this still being tracked? it is important...

Yes. We need to rework the write timeout logic in a few places and we're using #2171 to track getting the write timeout logic working the correctly for all transports and configurations.


Error while creating in Virtualbox

I'm trying to create a new machine with Virtualbox driver and I'm getting an error.
You can see the full log here: http://pastebin.com/ZStQsaPG
And I've filtered the lines that I think that are important:
> docker-machine -D create -d virtualbox test
Docker Machine Version: 0.5.1 (7e8e38e)
[...]
(test) DBG | COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm test --natpf1 delete ssh
(test) DBG | STDOUT:
(test) DBG | {
(test) DBG | }
(test) DBG | STDERR:
(test) DBG | {
(test) DBG | VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not available)
(test) DBG | VBoxManage.exe: error: Context: "RemoveRedirect(Bstr(ValueUnion.psz).raw())" at line 1767 of file VBoxManageModifyVM.cpp
(test) DBG | }
[...]
Error creating machine: Error in driver during machine creation: exit status 1

My OS is Windows 10 x64
> docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      windows/amd64

Fixed by uninstalling and installing again Virtualbox. Somehow updating Docker Toolbox to 1.9.1a corrupted my Virtualbox installation.


semantic-ui-less reset.overrides?

semantic-ui-less has a file in /themes/default/globals/reset.overrides which this project does not have. Was that intentional?

Yes it is intentional because in the code write in LESS everything has been mixed and it is not easy to be able to locate the location of a code related to a certain behavior. I have refactored so.

Refactored? Where did you end up putting the reset styes then? Or did you just remove them?

Reset styles ==> https://github.com/justkey007/fomantic-ui-sass/tree/master/src/definitions/globals
Variables ===> https://github.com/justkey007/fomantic-ui-sass/tree/master/src/themes/default/globals

Sorry... maybe I'm slow, but I don't see the normalize.css rules anywhere? https://github.com/Semantic-Org/Semantic-UI-LESS/blob/master/themes/default/globals/reset.overrides

The inclusion of /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ into Semantic-UI seems essential to the framework to make the theme behave consistently cross-platform.

Specifically, I see https://github.com/justkey007/fomantic-ui-sass/tree/master/src/definitions/globals, but I don't see https://github.com/Semantic-Org/Semantic-UI-LESS/blob/master/themes/default/globals/reset.overrides there.

The inclusion of /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ into Semantic-UI seems essential to the framework to make the theme behave consistently cross-platform.

Yes you are right I omitted it without knowing it. As I told you, a lot of the work has been done by automation. Help me integrate it if you have a while. Thank you


Request support for Proscenic A9 Air Purifier (2)

Sorry for incomplete A9 Tuya info.
Now I am adding needed details for Proscenic A9 Air Purifier support (Recent A9 Support REQ was closed due to incomplete info).
As I mentioned, problem with Official Tuya A9 support is no possibility to set purifier fan speed.
When adding new A9 device via HA following message appears:
"Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect."
2023-08-24 21:07:12.205 DEBUG (SyncWorker_19) [custom_components.tuya_local.device] Test refreshed device state: {"Error": "Unexpected Payload from Device", "Err": "904", "Payload": null}
2023-08-24 21:07:12.206 DEBUG (SyncWorker_19) [custom_components.tuya_local.device] new state (incl pending): {"updated_at":<PHONE_NUMBER>.2057283}

{"1":"Switch","2":"PM2.5","4":"Speed","5":"Filter Usage","7":"Child lock","8":"Light","101":"定时倒计时","102":"预约倒计时","103":"设备sn","104":"累计CADR值"}

{
"result": {
"model": "{"modelId":"000002dghv","services":[{"actions":[],"code":"","description":"","events":[],"name":"默认服务","properties":[{"abilityId":1,"accessMode":"rw","code":"switch","description":"","name":"开关","typeSpec":{"type":"bool","typeDefaultValue":false}},{"abilityId":2,"accessMode":"ro","code":"pm25","description":"好\t≤75\n差\t76-150\n非常差\t＞150\n","name":"PM2.5","typeSpec":{"max":999,"min":0,"scale":0,"step":1,"type":"value","typeDefaultValue":0,"unit":""}},{"abilityId":4,"accessMode":"rw","code":"fan_speed_enum","description":"","name":"风速","typeSpec":{"range":["Sleep","1","2","3","4","Auto"],"type":"enum","typeDefaultValue":"Sleep"}},{"abilityId":5,"accessMode":"ro","code":"filter","description":"","name":"滤芯使用率","typeSpec":{"max":100,"min":0,"scale":0,"step":1,"type":"value","typeDefaultValue":0,"unit":"%"}},{"abilityId":7,"accessMode":"rw","code":"child_lock","description":"","name":"童锁","typeSpec":{"type":"bool","typeDefaultValue":false}},{"abilityId":8,"accessMode":"rw","code":"light","description":"一键熄灯/开灯 ， 下发任意其他指令同时唤醒","name":"灯光","typeSpec":{"type":"bool","typeDefaultValue":false}},{"abilityId":11,"accessMode":"rw","code":"filter_reset","description":"","name":"滤芯复位","typeSpec":{"type":"bool","typeDefaultValue":false}},{"abilityId":16,"accessMode":"ro","code":"filter_days","description":"","name":"滤芯剩余小时","typeSpec":{"max":3000,"min":0,"scale":0,"step":1,"type":"value","typeDefaultValue":0,"unit":"h"}},{"abilityId":17,"accessMode":"ro","code":"total_runtime","description":"","name":"累计工作时间","typeSpec":{"max":5256000,"min":0,"scale":0,"step":1,"type":"value","typeDefaultValue":0,"unit":"min"}},{"abilityId":20,"accessMode":"ro","code":"total_pm","description":"","name":"累计吸收颗粒","typeSpec":{"max":10000000,"min":0,"scale":0,"step":1,"type":"value","typeDefaultValue":0,"unit":"mg"}},{"abilityId":21,"accessMode":"ro","code":"air_quality","description":"","name":"空气质量","typeSpec":{"range":["great","mild","good","medium","severe"],"type":"enum","typeDefaultValue":"great"}},{"abilityId":22,"accessMode":"ro","code":"fault","description":"","name":"故障告警","typeSpec":{"label":["e1","e2"],"maxlen":2,"type":"bitmap","typeDefaultValue":0}},{"abilityId":101,"accessMode":"rw","code":"timer_countdown","description":"=0 时 定时功能关闭，开启是下发具体时长，当定时倒计时时长发生改变时上报","name":"定时倒计时","typeSpec":{"max":24,"min":0,"scale":0,"step":1,"type":"value","typeDefaultValue":0,"unit":"h"}},{"abilityId":102,"accessMode":"rw","code":"reserve_countdown","description":"\n长度3位，例：201   预约倒计时20h ，  风机档位 low；mcu此时判断是否在定时任务，有则忽略，并上报00X（X代表当前风机档位）\nsleep = 0   low  = 1  mid =2  high =3  auto =4\n；00X表示预约倒计时关闭，当倒计时时间发生变化时，主动按照此格式上报","name":"预约倒计时","typeSpec":{"maxlen":255,"type":"string","typeDefaultValue":""}},{"abilityId":103,"accessMode":"ro","code":"device_sn","description":"","name":"设备sn","typeSpec":{"maxlen":255,"type":"string","typeDefaultValue":""}},{"abilityId":104,"accessMode":"ro","code":"CADR","description":"","name":"累计CADR值","typeSpec":{"max":9999999,"min":0,"scale":0,"step":1,"type":"value","typeDefaultValue":0,"unit":"立方米"}}]}]}"
},
"success": true,
"t":<PHONE_NUMBER>266,
"tid": "43ef15d242b311ee9a70760d0d3c40d3"
}
pm25	Integer
{
"unit": "",
"min": 0,
"max": 999,
"scale": 0,
"step": 1
}
filter	Integer
{
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
filter_days	Integer
{
"unit": "h",
"min": 0,
"max": 3000,
"scale": 0,
"step": 1
}
total_time	Integer
{
"unit": "min",
"min": 0,
"max": 5256000,
"scale": 0,
"step": 1
}
total_pm	Integer
{
"unit": "mg",
"min": 0,
"max": 10000000,
"scale": 0,
"step": 1
}
air_quality	Enum
{
"range": [
"great",
"mild",
"good",
"medium",
"severe"
]
}
fault	Bitmap
{
"label": [
"e1",
"e2"
]
}

{result: [{dpName: "Switch", dpId: 1}, {dpName: "PM2.5", dpId: 2}, {dpName: "Speed", dpId: 4},…],…}
result: [{dpName: "Switch", dpId: 1}, {dpName: "PM2.5", dpId: 2}, {dpName: "Speed", dpId: 4},…]
status: "ok"
success: true
t:<PHONE_NUMBER>631
{
"result": [
{
"dpName": "Switch",
"dpId": 1
},
{
"dpName": "PM2.5",
"dpId": 2
},
{
"dpName": "Speed",
"dpId": 4
},
{
"dpName": "Filter Usage",
"dpId": 5
},
{
"dpName": "定时倒计时",
"dpId": 101
},
{
"dpName": "预约倒计时",
"dpId": 102
},
{
"dpName": "Child lock",
"dpId": 7
},
{
"dpName": "设备sn",
"dpId": 103
},
{
"dpName": "Light",
"dpId": 8
},
{
"dpName": "累计CADR值",
"dpId": 104
},
{
"dpName": "Reset Filter",
"dpId": 11
},
{
"dpName": "Filter Left Days",
"dpId": 16
},
{
"dpName": "Total Runtime",
"dpId": 17
},
{
"dpName": "Total PM",
"dpId": 20
},
{
"dpName": "Air Quality",
"dpId": 21
},
{
"dpName": "Fault Alarm",
"dpId": 22
}
],
"t":<PHONE_NUMBER>631,
"success": true,
"status": "ok"
}

switch	Boolean
"{true,false}"
lock	Boolean
"{true,false}"
light	Boolean
"{true,false}"
filter_reset	Boolean
"{true,false}"

2023-08-24 20:11:18	Report	累计CADR值	91762立方米	device itself
2023-08-24 20:11:13	Report	PM2.5	1	device itself
2023-08-24 20:11:08	Report	PM2.5	2	device itself
2023-08-24 20:10:58	Report	累计CADR值	91761立方米	device itself
2023-08-24 20:10:48	Report	PM2.5	1	device itself
2023-08-24 20:10:43	Report	累计CADR值	91760立方米	device itself
2023-08-24 20:10:28	Report	累计CADR值	91759立方米	device itself
2023-08-24 20:10:08	Report	累计CADR值	91758立方米	device itself
2023-08-24 20:09:53	Report	累计CADR值	91757立方米	device itself
2023-08-24 20:09:38	Report	累计CADR值	91756立方米	device itself
2023-08-24 20:40:18	Device semaphore	Device semaphore	signal intensity:-74||Remaining memory:34672||UTC:1692902418||DST:1692906018	device itself
2023-08-24 19:42:25	Device restart	Device restart		device itself
2023-08-24 19:42:17	Report	累计CADR值	4立方米	device itself
2023-08-24 19:42:17	Report	Filter Left Days	3000h	device itself
2023-08-24 19:42:17	Report	Filter Usage	100%	device itself
2023-08-24 19:42:17	Report	Air Quality	Mild pollution	device itself
2023-08-24 19:42:17	Report	PM2.5	10	device itself
2023-08-24 19:42:15	Report	Light	OFF	device itself
2023-08-24 19:42:15	Report	定时倒计时	0h	device itself
2023-08-24 19:42:15	Report	Reset Filter	ON

2023-08-24 21:07:12.205 DEBUG (SyncWorker_19) [custom_components.tuya_local.device] Test refreshed device state: {"Error": "Unexpected Payload from Device", "Err": "904", "Payload": null}

It would help a lot if you could resolve this issue first and get logs containing dps sent from the device.  In any case this will be a necessary step.  Since you are getting connected, the most likely issue is an incorrect protocol version.  If you are using Auto, then you may need to find out some way which protocol version your device uses, and set that version in the connection details step.

I just tried to insert A9 device again (device id, local key, ip address (verified), except "sub device id", which i do not know (or use)).
Before insert I enabled also tuya debug, then I tried to insert and change among all available protocol versions, from 3.1 to 3.5 + auto (here apparently interface chooses 3.3) but no success (It is no difference in logs if i also enable "Poll only").
Debug logs are below. There are two errors, 904 (protocols 3.1 to 3.3) and 914 ( protocols 3.4 and 3.5).
With each attempt (for different protocol versions) a gui insert window returns an error:
"Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect."
I do not know how to get those "dps" data.
2023-09-10 15:23:34.063 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.1
2023-09-10 15:23:34.156 DEBUG (SyncWorker_57) [custom_components.tuya_local.device] Test refreshed device state: {"Error": "Unexpected Payload from Device", "Err": "904", "Payload": ""}
2023-09-10 15:23:34.156 DEBUG (SyncWorker_57) [custom_components.tuya_local.device] new state (incl pending): {"updated_at":<PHONE_NUMBER>.1560123}
2023-09-10 15:23:43.979 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-09-10 15:23:43.979 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.2
2023-09-10 15:23:44.251 DEBUG (SyncWorker_19) [custom_components.tuya_local.device] Test refreshed device state: {"Error": "Unexpected Payload from Device", "Err": "904", "Payload": null}
2023-09-10 15:23:44.251 DEBUG (SyncWorker_19) [custom_components.tuya_local.device] new state (incl pending): {"updated_at":<PHONE_NUMBER>.2515166}
2023-09-10 15:23:49.074 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-09-10 15:23:49.074 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3
2023-09-10 15:23:49.209 DEBUG (SyncWorker_36) [custom_components.tuya_local.device] Test refreshed device state: {"Error": "Unexpected Payload from Device", "Err": "904", "Payload": null}
2023-09-10 15:23:49.210 DEBUG (SyncWorker_36) [custom_components.tuya_local.device] new state (incl pending): {"updated_at":<PHONE_NUMBER>.209755}
2023-09-10 15:23:52.310 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-09-10 15:23:52.310 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.4
2023-09-10 15:23:52.341 DEBUG (SyncWorker_41) [custom_components.tuya_local.device] Test refreshed device state: {"Error": "Check device key or version", "Err": "914", "Payload": null}
2023-09-10 15:23:52.341 DEBUG (SyncWorker_41) [custom_components.tuya_local.device] new state (incl pending): {"updated_at":<PHONE_NUMBER>.3412867}
2023-09-10 15:23:55.609 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-09-10 15:23:55.610 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.5
2023-09-10 15:24:05.627 DEBUG (SyncWorker_55) [custom_components.tuya_local.device] Test refreshed device state: {"Error": "Check device key or version", "Err": "914", "Payload": null}
2023-09-10 15:24:05.628 DEBUG (SyncWorker_55) [custom_components.tuya_local.device] new state (incl pending): {"updated_at":<PHONE_NUMBER>.6275096}
2023-09-10 15:24:23.474 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-09-10 15:24:23.475 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.5
2023-09-10 15:24:33.500 DEBUG (SyncWorker_11) [custom_components.tuya_local.device] Test refreshed device state: {"Error": "Check device key or version", "Err": "914", "Payload": null}
2023-09-10 15:24:33.500 DEBUG (SyncWorker_11) [custom_components.tuya_local.device] new state (incl pending): {"updated_at":<PHONE_NUMBER>.500337}

See discussion #522.
You are managing to get a connection, but it is not working, most likely due to one of the parameters (device id, or local key) being incorrect.

I tried with two of my A9 units and both have the same logs. So i really doubt it is device id or local key issue. I double checked when i copied them from my Tuya account.
Sent from Yahoo Mail on Android
On Mon, 11 Sept 2023 at 0:19, Jason @.***> wrote:
See discussion #522.
You are managing to get a connection, but it is not working, most likely due to one of the parameters (device id, or local key) being incorrect.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Translate/Persian

Translated All the readme.md file to persian

Dear @Ge64com,
This pull request cannot be committed, because you changed the whole readme to Farsi, and not all of the users of this template are Iranian. As a result, we can't accept this pull request.


Remove Python 2 compatibility code

This PR removes some Python 2 compatibility code:

six.moves.xrange -> range
remove __future__ imports via pyupgrade --py3-only

This is ready for review.
There seem to be some auto-generated Jupyter notebooks committed in the repo. I didn't touch those in this PR. Is this needed? Generally it's better to have auto-generated files not in version control, no?
% ack six.moves
examples/notebook/examples/stigler_diet.ipynb
26:    "from six.moves import xrange\n",

examples/notebook/examples/transit_time.ipynb
33:    "from six.moves import xrange\n",

examples/notebook/constraint_solver/cvrptw_break.ipynb
37:    "from six.moves import xrange\n",

examples/notebook/constraint_solver/cvrptw.ipynb
37:    "from six.moves import xrange\n",

examples/notebook/constraint_solver/cvrp.ipynb
37:    "from six.moves import xrange\n",

examples/notebook/constraint_solver/vrpgs.ipynb
37:    "from six.moves import xrange\n",

examples/notebook/constraint_solver/cvrp_reload.ipynb
37:    "from six.moves import xrange\n",

I have pushed the change internally.
Thanks for the PR. I will close it now.


refactor: install vim-tiny instead of vim to save 30MB on images

The Issue
I'm taking a look at the contents of the webserver image for ways to reduce its size. vim adds 30MB of data only useful to vim users doing lots of work with vim inside the container - not the typical quick edits that are needed.
How This PR Solves The Issue
I noticed ~30MB of vim data in /usr/share. In practice, most ddev users will be running editors or IDEs on their host, so expanded scripts and syntax highlighting is not as useful. It's also pretty easy for developers to replace vim-tiny with vim locally if they want.
Master (arm builds):
ddev/ddev-webserver-prod                             v1.23.4-47-gfec8d695f-dirty     c57d5ba5346a   7 minutes ago   1.39GB
ddev/ddev-webserver                                  v1.23.4-47-gfec8d695f-dirty     d21725fbef6f   7 minutes ago   1.62GB

This PR:
ddev/ddev-webserver-prod                             v1.23.4-47-gfec8d695f-dirty     7e2ef816f3da   11 seconds ago   1.36GB
ddev/ddev-webserver                                  v1.23.4-47-gfec8d695f-dirty     e883d473cfa7   37 seconds ago   1.58GB

Manual Testing Instructions
Note that vim is still available.
Automated Testing Overview
None needed.
Release/Deployment Notes
No deployment changes.

I can live with this for sure, thanks for studying this out. Set to draft until it has a pushed image and makes it into versioncontstants.go.

Rebased and pointed to the built image. This saves about 12MB (compressed) off of both amd64 and arm64 images. It's always great to see them under 500MB!

There's an apparently unrelated failure on this, testing PHP 8.4. https://github.com/ddev/ddev/actions/runs/11152843523/job/30999249654#step:16:2090

    	Error Trace:	/home/runner/work/ddev/ddev/pkg/ddevapp/config_test.go:882

    	Error:      	Not equal:
    	            	expected: "float(0.6)"
    	            	actual  : "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0\n\nDeprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0\nfloat(0.6)"

I know we pushed ddev-php-base for v1.23.4, where we added php8.4.

The test is working, but fragile. There are two deprecations in php8.4 that changes the output.
    	            	expected: "float(0.6)"
    	            	actual  : "Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0\n\nDeprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0\nfloat(0.6)"

Thanks for this initiative @deviantintegral !


headless_shell: cannot execute binary file

There are some issues opened like #63 that are due to the headless_shell binary not working anymore in new Lambdas.
UPDATE: Binary not copied properly to zip uploaded to Lambda.
I just tried to unzip de zipped package uploaded to Lambda. Then I uploaded the headless_shell binary to an EC2 instance running 2017.03. I could then reproduce the issue. However, if I upload the binary I compiled to the same instance, I noticed the binary works.
The issue is then the packaging process. The binaries are for some reason different (Check the size difference between the original binary and the binary copied to the zip file).

I am guessing the issue should be somewhere here https://github.com/adieuadieu/serverless-chrome/blob/develop/packages/serverless-plugin/src/index.js#L155.
@adieuadieu any ideas?
WORKAROUND
New deployment:

Run once sls deploy -v.
Follow the next section.

You already deployed the service once:

Run serverless package -p ./out. This generates a folder with a zip called like your service (e.g. ./out/my-service.zip)
Unzip the file my-service.zip.
Copy the file ./node_modules/@serverless-chrome/lambda/dist/headless_shell to ./out/my-service/node_modules/@serverless-chrome/lambda/dist/headless_shell. Override the file.
Zip the contents of the folder ./out/my-service.
Upload to a S3 bucket and copy the link.
Go to your lambda configuration code section and select S3 link, and paste the link to your new bundle. Then click save, and it should work.

Potential cause - Amazon Linux AMI release 2017.03
After thinking about it for a while, I think I found the root of the issue. The AMI for the Lambdas was updated to the 2017.03 version.
I ran a simple lambda doing cat /etc/system-release and this was the output:
"Amazon Linux AMI release 2017.03\n"
Tomorrow I will try to recompile Chrome 61 with the Lambda patch using the "Amazon Linux AMI release 2017.03" image
However, I recompiled Chrome 61 with @adieuadieu 's change use_dev_shm = false; (https://groups.google.com/a/chromium.org/forum/#!msg/headless-dev/qqbZVZ2IwEw/CPInd55OBgAJ), using the Amazon Linux AMI release 2017.03. But unfortunately, I am still getting the error /var/task/node_modules/@serverless-chrome/lambda/dist/headless_shell: cannot execute binary file.
Some ideas:

[x] Compiling a debug version of Chrome.
[x] Maybe there is some other flag that I could pass to normal Chrome to debug why this is happening?
[x] Download binary from Lambda and try to execute it in a similar environment (EC2 with AMI 2017.03).

UPDATE: Binary not copied properly to zip uploaded to Lambda.
I just tried to unzip de zipped package uploaded to Lambda. Then I uploaded the headless_shell binary to an EC2 instance running 2017.03. I could then reproduce the issue. However, if I upload the binary I compiled to the same instance, I noticed the binary works.
The issue is then the packaging process. The binaries are for some reason different (Check the size difference between the original binary and the binary copied to the zip file).

I am guessing the issue should be somewhere here https://github.com/adieuadieu/serverless-chrome/blob/develop/packages/serverless-plugin/src/index.js#L155.
@adieuadieu any ideas?

WORKAROUND
New deployment:

Run once sls deploy -v.
Follow the next section.

You already deployed the service once:

Run serverless package -p ./out. This generates a folder with a zip called like your service (e.g. ./out/my-service.zip)
Unzip the file my-service.zip.
Copy the file ./node_modules/@serverless-chrome/lambda/dist/headless_shell to ./out/my-service/node_modules/@serverless-chrome/lambda/dist/headless_shell. Override the file.
Zip the contents of the folder ./out/my-service.
Upload to a S3 bucket and copy the link.
Go to your lambda configuration code section and select S3 link, and paste the link to your new bundle. Then click save, and it should work.

There was a bug in Serverless CLI... https://github.com/serverless/serverless/pull/4189
We can close this ticket.
Solution
Update Serverless to 1.21.1.
npm install -g<EMAIL_ADDRESS>


HDDS-1748. Error message for 3 way commit failure is not verbose. Contributed by Supratim Deka

https://issues.apache.org/jira/browse/HDDS-1748
Added logs to print pipeline id, block id and datanode addresses when 3 way commit failure is encountered
in watchForCommit.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
38
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
506
trunk passed

+1
compile
269
trunk passed

+1
checkstyle
64
trunk passed

+1
mvnsite
0
trunk passed

+1
shadedclient
839
branch has no errors when building and testing our client artifacts.

+1
javadoc
153
trunk passed

0
spotbugs
339
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
546
trunk passed

_ Patch Compile Tests _

+1
mvninstall
462
the patch passed

+1
compile
283
the patch passed

+1
javac
283
the patch passed

+1
checkstyle
69
the patch passed

+1
mvnsite
0
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
639
patch has no errors when building and testing our client artifacts.

+1
javadoc
153
the patch passed

-1
findbugs
219
hadoop-hdds generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)

_ Other Tests _

+1
unit
256
hadoop-hdds in the patch passed.

-1
unit
1809
hadoop-ozone in the patch failed.

+1
asflicense
54
The patch does not generate ASF License warnings.

6849

Reason
Tests

FindBugs
module:hadoop-hdds

org.apache.hadoop.hdds.scm.XceiverClientRatis.watchForCommit(long, long) concatenates strings using + in a loop  At XceiverClientRatis.java:+ in a loop  At XceiverClientRatis.java:[line 264]

org.apache.hadoop.hdds.scm.storage.BlockOutputStream.watchForCommit(boolean) concatenates strings using + in a loop  At BlockOutputStream.java:in a loop  At BlockOutputStream.java:[line 367]

Failed junit tests
hadoop.ozone.client.rpc.TestOzoneAtRestEncryption

hadoop.ozone.client.rpc.TestOzoneRpcClient

hadoop.ozone.client.rpc.TestSecureOzoneRpcClient

hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1051

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux bb7c37431317 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 15d82fc

Default Java
1.8.0_212

findbugs
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/1/artifact/out/new-findbugs-hadoop-hdds.html

unit
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/1/artifact/out/patch-unit-hadoop-ozone.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/1/testReport/

Max. process+thread count
4580 (vs. ulimit of 5500)

modules
C: hadoop-hdds/client U: hadoop-hdds/client

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/1/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
515
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
493
trunk passed

+1
compile
248
trunk passed

+1
checkstyle
62
trunk passed

+1
mvnsite
0
trunk passed

+1
shadedclient
826
branch has no errors when building and testing our client artifacts.

+1
javadoc
153
trunk passed

0
spotbugs
317
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
507
trunk passed

_ Patch Compile Tests _

+1
mvninstall
426
the patch passed

+1
compile
245
the patch passed

+1
javac
245
the patch passed

+1
checkstyle
62
the patch passed

+1
mvnsite
0
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
625
patch has no errors when building and testing our client artifacts.

+1
javadoc
150
the patch passed

+1
findbugs
512
the patch passed

_ Other Tests _

-1
unit
250
hadoop-hdds in the patch failed.

-1
unit
1632
hadoop-ozone in the patch failed.

+1
asflicense
44
The patch does not generate ASF License warnings.

6914

Reason
Tests

Failed junit tests
hadoop.hdds.scm.container.placement.algorithms.TestSCMContainerPlacementRackAware

hadoop.ozone.client.rpc.TestContainerStateMachineFailures

hadoop.ozone.client.rpc.TestFailureHandlingByClient

hadoop.ozone.client.rpc.TestSecureOzoneRpcClient

hadoop.ozone.client.rpc.TestOzoneRpcClient

hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis

hadoop.ozone.client.rpc.TestOzoneAtRestEncryption

hadoop.hdds.scm.pipeline.TestRatisPipelineCreateAndDestory

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1051

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux aed05ca75ca3 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / ec851e4

Default Java
1.8.0_212

unit
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/2/artifact/out/patch-unit-hadoop-hdds.txt

unit
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/2/artifact/out/patch-unit-hadoop-ozone.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/2/testReport/

Max. process+thread count
5270 (vs. ulimit of 5500)

modules
C: hadoop-hdds/client U: hadoop-hdds/client

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/2/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
32
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
480
trunk passed

+1
compile
262
trunk passed

+1
checkstyle
73
trunk passed

+1
mvnsite
0
trunk passed

+1
shadedclient
857
branch has no errors when building and testing our client artifacts.

+1
javadoc
163
trunk passed

0
spotbugs
310
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
501
trunk passed

_ Patch Compile Tests _

+1
mvninstall
448
the patch passed

+1
compile
270
the patch passed

+1
javac
270
the patch passed

+1
checkstyle
80
the patch passed

+1
mvnsite
0
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
679
patch has no errors when building and testing our client artifacts.

+1
javadoc
166
the patch passed

+1
findbugs
531
the patch passed

_ Other Tests _

+1
unit
292
hadoop-hdds in the patch passed.

-1
unit
1819
hadoop-ozone in the patch failed.

+1
asflicense
53
The patch does not generate ASF License warnings.

6874

Reason
Tests

Failed junit tests
hadoop.hdds.scm.pipeline.TestRatisPipelineProvider

hadoop.ozone.client.rpc.TestFailureHandlingByClient

hadoop.ozone.client.rpc.TestSecureOzoneRpcClient

hadoop.ozone.client.rpc.TestOzoneRpcClient

hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis

hadoop.ozone.client.rpc.TestBlockOutputStreamWithFailures

hadoop.ozone.client.rpc.TestOzoneAtRestEncryption

hadoop.ozone.client.rpc.TestOzoneClientRetriesOnException

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1051

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 17ae3f480778 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 993dc87

Default Java
1.8.0_212

unit
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/3/artifact/out/patch-unit-hadoop-ozone.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/3/testReport/

Max. process+thread count
5404 (vs. ulimit of 5500)

modules
C: hadoop-hdds/client U: hadoop-hdds/client

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1051/3/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

Thanks for updating the patch @supratimdeka . I will commit this shortly


importing css files, is sass-loader doing it? is it the right thing to do?

I got tripped up for a while because I had these lines in my app.scss
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha/css/bootstrap.min.css');

.btn-error {
  @extend .btn;
  cursor: default; // remove finger
  color: red;
}

Everything about the site worked just fine except @extend .btn didn't do a thing.
Bootstrap was displaying properly.
Took me a while to track down the fact that sass ignores importing files that don't have the extension sass or scss.  I only found this problem running my scss through the command line sass program.
So whats happening here is that sass-loader is importing a .css file but sass is ignoring it!  Or is another loader importing it?
Here's the relevant part of my config
      loaders: [
        {
          test: /\.scss$/,
          loader: "style!css!sass"
        },
        {
          test: /\.jsx?$/,
          loaders: [ 'react-hot', 'babel' ],
          exclude: /node_modules/
        },
        {
          test: /\.jsx?$/,
          exclude: /node_modules/,
          loader: 'babel-loader',
          query: {
            stage: 1
          }
        },
        {
          test: /\.css$/,
          loader: "style!css"
        },
        {
          test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.eot($|\?)|\.svg($|\?)/,
          loader: 'url-loader'
        }
      ]

Sass is not downloading files afaik. So when you import an http url you won't be able to extend classes that are defined in these remote files. These imports will be resolved on runtime inside the browser.


How to hide/disable the Custom button in Color Palette

[yes ] I have verified there are no duplicate active or recent bugs, questions, or requests

I would like to remove the "custom" button in the Color Palette dialog. How can this be done?
Reason: I have an array of preset colors. I want the user to pick only the preset colors not a custom color using seekbar
Regards

Hi @CeJienAJPC,
this is not a bug you can deny the custom Color selection by set the Option "allowUserColorInput" to false.
builder.allowUserColorInput(false);
Best regards,
Vall0n

@Vall0n
Thank you for the solution. I know it ain't a bug. I was just looking if there was a way. Thanks again


Consider adding hooks back to RequestContext

This is a follow-up discussion of https://github.com/line/armeria/pull/2375
It seems pretty common for users to set/clear a thread-local variable based on the life cycle of `RequestContext, e.g.
serviceContext.onEnter { _ ->
    MDC.put(correlationIdKey, context.correlationId)
    MDC.put(requestIdKey, context.requestId)
}
serviceContext.onExit { _ ->
    MDC.remove(correlationIdKey)
    MDC.remove(requestIdKey)
}

This is doable via RequestContextExportingAppender, but in some cases like the above, callbacks can be much simpler and more efficient. (See the thread from @andrewoma at: https://line-armeria.slack.com/archives/C1NGPBUH2/p1582090225136400)

The problem with the old API (onEnter()) is that a user can add it only after the context is pushed, which means that the following code will never set MDC at all:
Server server = Server
  .builder()
  .service("/", (ctx, req) -> {
    ctx.onEnter(unused -> MDC.put(..., ctx.id()));
    logger.info("MDC will not be set at all for this message.");
    return HttpResponse.of(200);
  })
  .build();

Therefore, @anuraaga suggested an alternative API similar to https://grpc.github.io/grpc-java/javadoc/io/grpc/Context.Storage.html
We might want to provide something with better usability, though, like:
Server server = Server
  .builder()
  .contextStorage(new ThreadLocalContextStorage() {
    // Invoked before invoking the decorator chain.
    @Override
    public void onEnter(ctx) { MDC.put(..., ctx.id(); }
    ...
  })
  ...

WebClient client = WebClient
  .builder(...)
  .contextStorage(...)https://github.com/contact
  ...

From what I understand, the example in the original issue is at least less efficient (why use a callback to sync one threadlocal to another when you don't have to) and not clearly simpler. Can you explain more concretely why the callback would be better? I don't think log MDC is a use case for a context storage API.

the example in the original issue

Which one is it?

Sorry I was trying to translate "Original Post" like on Reddit and didn't do it right 😅 I meant top post of this issue.

I thought callbacks are more efficient than RequestContextExportingAppender in this specific example, because putting request ID is just a single MDC.put() call while while RCEA has to 1) re-export when availabilityStamp changes and 2) create a union map for each log message.
Maybe controversial, but some may think one way or the other way clearer.

Ah I guess that means exporting Armeria values like the request id without using armeria-logback at all. Without benchmarks, it's hard to say for sure but I would still suspect the exporter to be better - there is the same number of reads from a threadlocal, but the exporter doesn't need to remove attributes one-by-one.
Anyways considering the original request was about logging context information, but we already support this, I don't see why adding hooks is a solution. If dealing with logback.xml is tedious, we could provide Flags.java or tweak the defaulted attributes to reduce the tediousness. But it sounds like a configuration issue rather than a semantic one, which would require a new API like onEnter.

    // Invoked before invoking the decorator chain.
    @Override
    public void onEnter(ctx) { MDC.put(..., ctx.id(); }

I wonder invoking before the decorator chain is enough? MDC.put(...) will put ctx into current thread local storage.
I guess the MDC.put(...) should be called again when RequestContext is propagated to other threads like RxJava execution scheduler.

No matter is this the case or not, shouldn't we provide the method which is going to work as  onEnter did? 😆

Yeah I still think we should add the context storage customization option - it's quite different than just adding hooks back to RequestContext like this issue.

I feel like there needs to be some way to achieve what the hooks did. Perhaps the Appender approach is better for this particular use case of MDCs (however, it currently doesn't work in the same fashion and has a large amount of moving parts to take on).
ThreadLocals are kind of necessary to integrate with various frameworks. Maybe there's a middle ground of downcasting if usage is to be discouraged.

I'd also add it's not so much about context storage, but if there's a legacy framework expecting something to exist of a ThreadLocal, I can't see any way of setting it up and tearing it down when a request context begins execution on a given thread

Yeah I brought exactly that up in the original discussion
https://github.com/line/armeria/pull/2375#issuecomment-571028023
Searching through many libraries that rely heavily on context, I couldn't find one that did not provide customization of the context without threadlocal syncing. One open source usage of the hooks I found was actually buggy because the hooks do not provide a clear lifecycle, and replacing with a context storage customization approach fixed it up. It reminds me of our brave support too, which took many versions to work out using the threadlocal syncing, and all the hacks we added could go away by removing the syncing completely.
Context storage customization can provide the lifecycle hook even for syncing things like a threadlocal if a library does come up which requires it. But we were thinking of doing that post-1.0 since we haven't found one yet.
I think we found specifically to logback which prompted this issue

The exporter had a lot of bugs. These are mostly fixed.
Working in logback.xml may be tedious. If so, we could probably provide a programattic approach for logback too that uses the exporter without adding these dangerous hooks

I think I largely agree with your assessment. I guess I was just getting extremely nervous (and still am to a certain extent) of hitting a blocker where I can't upgrade Armeria. The removal of onEnter/onExit means the Appender has to work, or I'm essentially blocked. @trustin has just reproduced and fixed that issue, so I'm hopefully unblocked and can continue on. But I completely understand you don't want to commit to an api you're not happy with for 1.0.

Thanks and sorry for the nervousness. Indeed, we definitely do not want to block any current code. Hopefully the bug fixes work things out.

@anuraaga I'm working on providing a way to customize the context propagation.
One of our customers uses Armeria and another framework together, (which means RequestContextExportingAppender can't be used), and they use MDC, so I need this.
I was sort of thinking of two ways:

Add a Supplier, which emits Storage to ClientBuilder and ServerBuilder.
Use Java SPI to create the Storage.

The first one is for just in case, a user wants different storages for the ClientRequestContext and ServiceRequestContext. But I highly doubt that if there's such a case.
So I lean toward the second option. Do you have anything in mind before I get into this?

Nope SPI sounds good :)
Just wondering, what situation results in the appender not being usable? "One of our customers uses Armeria and another framework together, (which means RequestContextExportingAppender can't be used), "

Stopped to upgrade. 🤣 I was actually trying to add fake ServiceRequestContext using ServiceRequestContextBuilder for the requests come through the framework, but it's huge so I gave up. 😆


Motions import cannot find column supporters

After selecting a file in Import Motions there is no preview available.
The console reports an error:

Also noticing that the motions import sample file is missing the supporters column.

fixed in new import


Fixes model weight loading

This fixes model weight loading by making layer array bias optional through a template parameter, and reading the head scale from the weights.

👍
I'm assuming something will still need to be done to head_rechannel processing to keep it from trying to add the bias - I'm just keeping it from setting the weights.


Not an Issue

No issues with your  script.
Just some kudos on a job well done.
First time freebsd user and your script helped immensely, saved a lot of time and effort to give freebsd a try.
I first used this to install KDE5 on a desktop, complete in about an hour or so.
Second install was used to install kodi to a second drive, that will be used to view movies and tv, no issues at all with your script, however, kodi failed to start, lots of missing dependencies, filed a bug on that.
On the kodi install, first run thru, I chose  1.. No desktop software, thinking I would be able to select multimedia/kodi, no luck, so
on second run, I selected 15. Custom, that enabled me to select kodi and install, after installing the missing files, up pops kodi.
In reading over the script, I see no mention or description of the category "Other", maybe a blurb about its capabilities?
Thanks for taking the time to create a very helpful and straight forward script, that does what its meant to do.

Greatly appreciate the positive feedback and suggestions.
I just updated the Quick Start tab at http://acadix.biz/desktop-installer.php and the miserably outdated man page.
I will also mention kodi in the docs or maybe even support it explicitly in a future version.  Was not even aware of it until you mentioned it.


refactor: remove codegen

Codecov Report

Merging #2 (3318103) into master (3c51ff1) will increase coverage by 0.46%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master        #2      +/-   ##
===========================================
+ Coverage   99.53%   100.00%   +0.46%
===========================================
  Files         134         2     -132
  Lines        5173        47    -5126
===========================================
- Hits         5149        47    -5102
+ Misses         18         0      -18
+ Partials        6         0       -6

Impacted Files
Coverage Δ

consumer.go
100.00% <ø> (ø)

supplier.go
100.00% <ø> (ø)

Continue to review full report at Codecov.

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


Shot of dialogs

Expected behaviour

take a snapshot of a dialog

Actual behaviour

dialog is omitted

Steps to reproduce

create a fragment like in https://developer.android.com/guide/topics/ui/dialogs
DialogFragment dialog = DialogFragment.newInstance();
dialog.show(getFragmentManager(), "dialogTag");
take a screenshot with

Screenshot.snap(dialog.getView()).record();
get a NPE getMeasuredHeight()' on a null object reference

trying to take a snapshot of activity results in a screenshot without dialog

Version of the library
3.1.0

hi. how about for permission dialogs? to how to screenshot the activity with it?

hi... how can i get the instance of dialog?


v22.2.1 run tests against SQLite

[Current coverage][cc-pull] is 100% (diff: 100%)

Merging [#585][cc-pull] into [master][cc-base-branch] will not change coverage

@@           master   #585   diff @@
====================================
  Files          28     28
  Lines         439    439
  Methods       111    111
  Messages        0      0
  Branches        0      0
====================================
  Hits          439    439
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update [d5b0348...422d1d3][cc-compare]
[cc-base-branch]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/compare/d5b03480b998eb5d0ef4267ada5eebe2f6abffe0...422d1d3746d033e343cff6d661ee41e438f5a84f?src=pr
[cc-pull]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/pull/585?src=pr

implementation failed because of: https://github.com/doctrine/dbal/pull/2402


NO_PROXY environment variable is ignored.

Currently, Guzzle uses the HTTP_PROXY and HTTPS_PROXY environment variables as the default values for $config['proxy']['http'] and $config['proxy']['https'], which are used to set the corresponding cURL options.
However, it does not use the NO_PROXY environment variable to set CURLOPT_NOPROXY, which causes a problem if, for example, you're behind a proxy and trying to request a local page.
It would be great if using NO_PROXY could be implemented.

As a temporary workaround, you can pass it as a curl option.

Looks like there is actually support for this, but not in the form of CURLOPT_NOPROXY.

If you set
putenv('no_proxy', '*');

https://github.com/curl/curl/blob/7408570bf04555b9e56ed1cb9ffba5621411b145/docs/libcurl/libcurl-tutorial.3#L844
and
https://github.com/curl/curl/blob/7f2a1df6f5fc598750b2c6f34465c8d924db28cc/lib/url.c#L2652
curl should detect 'no_proxy' option automatically.


Use TypeScript namespaces to separate Prisma & Application types

Prisma Client needs specific types, such as StringFilter in the generated TypeScript code to function.
This works fine as long as it doesn't interfere with anything. In order to prevent interference, we introduced reserved words.
What can easily happen, is that a model in the Prisma Schema might be called something like Query or Transaction and we would have a conflict.
In order to prevent this and not even make it possible for this to happen anymore, we could use TypeScript namespaces.
Concretely, in order to keep the application-specific types as simple as possible, I suggest moving all Prisma-related types under a TypeScript namespace called Prisma. The model types stay as they are, so they can be easily imported.

An example of before and after:
Before

After


Not null node refference crashes the engine

Godot version
4.0 beta 5
System information
Windows 11 | RTX 3050 | Vulkan | ...
Issue description
The editor crashes when trying to access a not null child node data
https://user-images.githubusercontent.com/94804344/203394016-ca7b4125-b70f-4873-8cf6-f40052d14cc4.mp4
Note: it doesn't happen when refferencing an AnimationPlayer or RigidBody2D, I've only tested with Timer2D, Notifier2D and Raycast2D, AnimationPlayer and RigidBody2D.
Steps to reproduce

Cache a Node into a typed variable
Try accessing any of its properties, signals, methods and others (ctrl + space)
Some nodes will cause the editor to crash while trying to access its data

Minimal reproduction project
CrashVarRef.zip

I tried to replicate this on Linux with v4.0.beta.custom_build [0aba65989] and godot did not crash, but showed instead a Menu with available properties.

Seems like duplicate of #68910


Multiple redirects failing in routercomponent

I am currently trying to create a routing component based on the example code and the xstream-boilerplate routing component. I am getting stuck on a particular issue for a redirect function.
export function createRedirect (path) {
  const redirect = (sources) => {
    const vTree = xs.of(div('.redirect', 'Redirecting...'));
    const redirect$ = xs.of(sources.router.createHref(path));
    return {
      DOM: vTree,
      router: redirect$
    }
  }
  return sources => isolate(redirect)(sources);
}

I am using this function to let the '/' state redirect to a substate, so that there is always some url qualified substate for the host page component. So for example '/' redirects to '/qualifiedstate'. And this seems to work pretty well, the main component is always redirecting. However if I want to continue the redirect stream by redirecting '/' in qualifiedstate to 'somesubstate', thus: '/' -> '/qualifiedstate' -> 'qualifiedstate/somesubstate', the redirect seems to stop on the vtree created by the redirect component. The redirect then does work for hrefs aimed at '/qualifiedstate', it's only the initial flow from '/' -> '/qualifiedstate' -> '/qualifiedstate/somesubstate' that seems to fail.
I've added my current implementation to a webpackbin: http://www.webpackbin.com/EJYlChBIb, it seems however that the history package will not load there so I can't guarantee it works.
I am not exactly sure where the issue lies, I find it odd that the DOM sink seems to be returned properly but the router sink doesn't, considering they both use the same stream operator. Any insight into the matter would be greatly appreciated.

I fixed the import to history to work on webpackbin, and a couple of missing imports and variable naming mismatching (drivers -> sources), but ran into a new error.
http://www.webpackbin.com/Nk-T47LIZ

I've fixed the issue but it seems webpackbin doesn't play nice with url routing. I've created a repository with a small example app to demonstrate the issue I am facing: https://github.com/Steelfish/cyclic-routingcomponent.
As you can see there, the app is routed from '/' to '/state' but does not enter substate2 when starting at '/. When using a href or visiting '/state' you are properly redirected.


A problem occurred evaluating root project 'android'.

On running cca emulate  android ..... here is what I'm getting
cca v0.4.1
Running command: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run --emulator
WARNING : no emulator specified, defaulting to myAvd
Waiting for emulator...
emulator: emulator window was out of view and was recentered

Booting up emulator (this may take a while).......................BOOT COMPLETE

FAILURE: Build failed with an exception.

* Where:
Build file '/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle' line: 175

* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.074 secs

/home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: /home/jay/HelloChromeAppOnAndroid/platforms/android/gradlew with args: assembleArmv7Debug,-b,/home/jay/HelloChromeAppOnAndroid/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-x,lint,-x,lintVitalX86Release,-x,lintVitalArmv7Release,-x,compileLint,-x,copyReleaseLint,-x,copyDebugLint
Error: /home/jay/HelloChromeAppOnAndroid/platforms/android/cordova/run: Command failed with exit code 8
    at ChildProcess.whenDone (/home/jay/.nvm/v0.10.32/lib/node_modules/cca/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

Error: /Volumes/Working/Development/Cordova/plugin/opcv/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

Where:
Build file '/Volumes/Working/Development/Cordova/plugin/opcv/platforms/android/build.gradle' line: 253

What went wrong:
A problem occurred evaluating root project 'android'.

Project with path ':androidOpenCVExample' could not be found in root project 'android'.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

I got this error. would you please resolve this issue for me?

sudo chmod 777  ~/.android
worked for me!

HGHG

Error:(1, 1) A problem occurred evaluating root project 'app'.

Plugin with id 'com.android.application' not found.

Error:(14, 1) A problem occurred evaluating project ':app'.

Cannot invoke method signingConfigs() on null object

Hi i am getting below error please help me
Evaluating project ':app' using build file '/home/ubuntu/clarks-select-android/app/build.gradle'.
FAILURE: Build failed with an exception.

Where:
Build file '/home/ubuntu/clarks-select-android/app/build.gradle' line: 10

What went wrong:
A problem occurred evaluating project ':app'.

org/gradle/initialization/BuildCompletionListener

Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED


Menu Text Graphic Issue

[ Please replace text in [] with the answer from the above question! ]
Do you use Java 8?
[Yes]
What version of Minecraft do you use?
[1.12.2]
What version of MinecraftForge do you use?
[1.12.2-forge1.12.2-<IP_ADDRESS>5]
What version of SanLib do you use?
[1.12.1]
What version of Turret Mod Rebirth do you use?
[1.12.2]
What is the issue / bug you have encountered? Give us a short description.
[Text graphics not appearing in item menus. Ex. nothing in white/blacklist for turret control, nothing in any categories in the turret tablet.  Graphical glitches when the area is clicked]
How can it be reproduced?
[Open any menu (turret, tablet, etc.)]

]
Please post your log file (either in /logs/fml-client-latest.log or /logs/latest.log) on https://gist.github.com and provide the link:
https://gist.github.com/InTheBetween/7fcc04d7da7ee4effce400807b7a9f59

Can you try disabling shaders in the config (under /config/sapturretmod.cfg set useShaders to false)?
If that works your graphics driver needs updating / it doesn't support the shaders used.
If it doesn't try to use just TurretMod and SanLib alone. If that works, it's most likely another mod messing up.

Sooo... any updates on it? Did you get it to work or not?

I'm closing this issue now. If you still have problems, please open a new issue.


Implementing Scrolling with UITableView

What I need to do to use the scrolling with UIViewContollers that contain UITableViews or UICollectionViews?
There is as ticket (#6) but I don't understand what I must implement in swift 3. It says to call the loadView of the UIViewController.
This must be done where? In the container or the contained one?
There is not some delegate method or something, to not mess with the loadView and changing the view of the controller?

I really don't know what is wrong with Xcode, but after cleaning derived data it worked correctly and found the scrolling view automatically.
Sorry if anyone wasted time on this...


Added a license file using the BSD-3-Clause (new) license template

Hello Atif
First, thank you for creating this useful library and choosing an open-source license for it.
I am very strict when it comes to project licenses and this is usually the first thing I check before adopting an open-source library or component in my own work. I am using this particular library for quite some time and I am familiar with its license terms, but I've had bad luck locating its source-code repository for quite some time, until today (😊 ).
Currently, the project's license terms are available in the COPYING.txt file, which is not automatically recognized by GitHub as the BSD-3-Clause license (I believe this is the right license this project is released under). The purpose of this commit is to make it more obvious for developers, who browse the repository, to identify the license -- its name should now appear on the right pane in the repository page and will link to the BSD-3-Clause license text. I achieved this using the BSD-3-Clause (new) license template form that is provided by GitHub, and changed copyright date to 2007-2020 (I was asked in the license template form and assumed the project is still active so the end-date should be 2020).
I'm hoping my cosmetic contribution is all fine with you.

Yep, all this sounds very reasonable. I will try to accomplish this later today :) .

And done :) Your knowledge of GitHub using Licensee really made this a baby's game


Error from building apk

Environment:

mixpanel_flutter version: 2.3.1
Flutter version: 3.24.0

Actual Behavior:
The build fails with an error indicating that android:attr/lStar is missing.
Additional Information:

The android:attr/lStar attribute was introduced in Android 12 (API level 31). Ensure that your compileSdkVersion and targetSdkVersion are set to 31 or higher in your build.gradle file.
I have already tried updating dependencies and performing a clean build.

Thank you for your assistance!

Fixed in v2.3.2, thanks for bringing it up!


ResponseError might need to implement json.Unmarshal

For tsp we emit this type for Foundations.ErrorResponse. When this type is a field in a model, it's likely that we'll need to be able to unmarshal the values.

Thinking more, this isn't applicable for ResponseError as it's populated from a *http.Response and not JSON data.


Dynamic MVAU

Thanks @azizb-xlnx - with your latest changes I think this is good to go for the EoY targets. Not sure what is going on for the failing quicktest, as it passed when I tried to run end2end_mobilenet tests individually so I wouldn't worry too much about that one.


Feat(progress-reporter)

Rename current progress-reporter to dots-reporter
Add new fancy progress-reporter

Based on new release (4.1.2-rc2) of stryker-api
TODO

Write unittests


Current helm charts doesn't work metrics exporter.

Current helm charts doesn't work metrics exporter.
Reason
Promethes port doesn't open.
Tasks

[x] Expose 6789 port in deployment.
[x] Expose 6789 port in service.
[x] Output config.yaml for metrics. How to setup it in prometheus.
[x] Update values.yaml
[ ] Update README

Hi, @davidzhao
I improved helm chart for prometheus.
How do I contribute??
Regards.

@monkeydaichan Please submit a PR!


Access Files module

Is there a way to access the new-ish Files module that replaced Notes & Attachments using the SOAP API? I cannot seem to find the module on the docs. Or is the change simply on the force.com side and backend is all the same, still using Attachment?

Hello,
Actually, it's on Salesforce side, the only thing you need to maybe update is the wsdl and create connection with a recent one.
See SOAP API Developer Guide - Attachment

Thanks.
After reading a lot of release notes and posts, I found that the "Files" module is actually named "ContentDocument" in force.com, and "Files" in Salesforce Chatter: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdocument.htm


qBittorrent, Tribler, Deluge

Project URL

https://www.qbittorrent.org/
https://www.tribler.org/
https://deluge-torrent.org/

Project Readme

https://github.com/qbittorrent/qBittorrent/blob/master/README.md
https://github.com/Tribler/tribler/blob/next/README.rst
https://git.deluge-torrent.org/deluge/tree/README.rst

Category

file-sharing

Checklist

[ ] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Appropriate language icon(s) added if applicable
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Warning

:warning:
Too many changes (when adding, please keep it to one project per Pull Request)

  Generated by :no_entry_sign: Danger

@serhii-londar no, current category is fine.

@Coeur Ok! 👍


 It's kind of cool. But it is unnecessary in the sense that DataFramesMeta.jl doesn't really have a use-case for this kind of thing.
Could you give more examples for where this kind of feature would be useful?

Dataframesmeta has no need for nesting, that's true. I've mostly needed better nesting when dealing with other collections, for example when doing string parsing or web scraping or things like that. There's really no good idiom to continue a chain at a lower nesting level, unless you skip out of the logic with a normal map, or put the chain in manually, but that loses the succinctness of the macro.

FWIW I've been using this branch for Advent of Code these past few days, where there's a decent amount of parsing and general transformations. I like it a lot, as discussed in https://github.com/jkrumbiegel/Chain.jl/issues/45. Here's an example:
links = @chain input begin
    strip
    split("\n")
    @chain map() do
        split("-")
        Pair(_...)
        [_, _ |> reverse]
    end
    flatten
    collect
end

FWIW this just appeared on my notifications; it looks like the same design! https://discourse.julialang.org/t/ann-datapipes-jl/60734/61

I posted the PR with the design on slack, possibly got it from there


restore mssql test profile on Jenkins

for some reason, SQLServer stopped working. mssql profile was  deleted temporarily  to get the build out the door.

rebuilding a new CI box


Question: How to prevent applications to access my screen contents and clipboard?

I have Yubikey Authenticator installed on my Mac. The software is able to read QR code from the screen without any warning. Does it mean any other softwares, possibly malicious, can also read my screen contents? If so, is there any way to stop it?
Another issue is with regard to clipboard. Is it possible to restrict applications access to the clipboard (especially the paste command) on apple laptops (only allow Ctrl + V to paste)? I realize that with apple's new universal clipboard, this will be somewhat complicated.

I'm not aware of ways to mitigate either risk. I'll keep your request open for a little while to brainstorm ideas by others. But really, both behaviors are features, not bugs, of the OS.

If you're really paranoid about it, you could probably try to compartmentalise in VMs as much as possible (Similarly to how Qubes does it). That way, you could have a really secure main OS with as much tech and blocking as possible and have individual VMs for "untrusted" apps and important ones like the YubiKey Authenticator or your passwd manager.

@TraderStf Possibly Cleanboard? It's also available on the macOS App Store (with the added benefit of sandboxing, right?).

@kxpvcr seems so


Add HotBot logic to grant users active automagically

Currently this is a manual look and feel process to gauge activity of newcomers.
Logic could be cased on a messages per day as well as activity over x days in a row

Moving to a different bot.


Changed cron expression so, it really runs every 2 weeks

@MatusJenca2 Please update commit message to something more 'clear' e.g. Update scheduled pipeline to run every 2 weeks
(good article about commit messages: https://www.freecodecamp.org/news/how-to-write-better-git-commit-messages/)


add a boolean test case from json serialization

#153

Is this to make sure this behavior doesn't regress? Since this is more testing NSJSONSerialization than Mapper


Provider user gives feedback for applications rejected by default

Context
We would like to give provider users the opportunity to add feedback for applications rejected by default. The aim of this PR is to capture this feedback and surface it in the right places within the provider interface. Displaying such feedback to candidates is not part of this work.
Changes proposed in this pull request
Add give_feedback_for_rbd section to app/services/provider_interface/sort_application_choices.rb, so that the 'Give feedback' section appears in the application list.

Add @rejection_reason_required block to app/views/provider_interface/application_choices/_application_choice_header.html.erb so that the following prompt appears (only for applications rejected by default).

Add routes/controller/views for:

GET /feedback
POST /feedback/check
POST /feedback

Add a FeedbackController and a RejectedByDefaultFeedbackForm for validating rejection_reason.
Add a RejectByDefaultFeedbackComponent for displaying any unstructured reasons for rejection present for applications rejected by default. The 'Change' link allows you to go back and edit rejection_reason as many times as you want.
Store feedback within rejection_reason and set reject_by_default_feedback_sent_at (added in https://github.com/DFE-Digital/apply-for-teacher-training/pull/3376)
Guidance to review
The new 'Give feedback: ...' group in the applications list will include both current cycle and previous cycle applications, as long as they are missing a rejection_reason and were rejected by default. Should we only be prompting users to add feedback for current cycle applications?
Should the 'Give feedback' flow require make_decisions and what do we show users without it? The 'Give feedback: you did not respond in time' section within the applications list is shown to all.
The number of days quoted in the prompt correspond to reject_by_default_days. Is this correct?
I have named the component RejectByDefaultFeedbackComponent because I assume we'll only use it for applications rejected by default. Is this a valid assumption, or should we allow provider users to edit/change rejection_reasons for other types of rejection, as well?
Are the error messages ok?

Link to Trello card
2920 - Giving feedback after Reject By Default
Things to check

[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] New environment variables have been added to the Azure config

Plans for this feature have changed, I'm updating the design and also the normal rejection flow.

Design update:
Direct rejection flow has been updated to be consistent with the reject by default feedback flow, until structured reasons for rejection are merged.
Before:

After:

I've also added feedback events to the Timeline:

Code update:
Code now sends email to the candidate: see relevant preview here --> https://apply-for-te-2920-feedb-h0mf6t.herokuapp.com/rails/mailers/candidate_mailer/feedback_received_for_application_rejected_by_default
RejectByDefaultFeedbackComponent has been repurposed as FeedbackPreviewComponent. The status box component for 'rejected' applications has been updated. See https://apply-for-te-2920-feedb-h0mf6t.herokuapp.com/rails/view_components/provider_interface/feedback_preview_component and https://apply-for-te-2920-feedb-h0mf6t.herokuapp.com/rails/view_components/provider_interface/status_box_component/rejected (hit browser refresh for variations)
cc @adamsilver

[ ] Having entered feedback, when clicking back from the check answers page the feedback is not blank.

Updated email formatting (inset for rejection_reason):


Add anchor tags to website docs

Removed broken links and added anchor links to website docs. Closes #629

Links from https://github.com/alanbares/react-server/tree/add-anchor-to-website-docs/docs work as expected.  Lgtm :+1:

I also pulled the website and ran it and made sure everything was still working


Conv Details

The conv in original is
==>Basic()
==>torch.nn.Conv2d(in_channels=intInput, out_channels=intOutput, ...)
Yours is
==>_conv_module()
==>torch.nn.Conv2d(in_channels, in_channels, kernel, stride, padding)
The channel is different.

After fixing this bug, have you obtained the result same as the original author's  https://github.com/sniklaus/sepconv-slomo ?
I just got the blur result in this project.


Prevent flash of footer on the account page

When loading the account page, there's a small flash of the footer before the page renders
https://user-images.githubusercontent.com/9113740/105638688-a6d42580-5e39-11eb-9987-ed75bf62638e.mp4

Maybe this is because of the client side user check + redirect?

Good eye! In account.js on line 30, unauthenticated users are redirected to /signin. Surely enough, the video shows that URL briefly.

Sent from

This has been fixed!


Feature Request: Allow registering multiple times (with flag)

Hello,
I'm using Prometheus with Scala and the Play Framework 2.5. Play will hot-reload every time there is a code change which means .register() is called multiple times. This causes errors saying there is already a collector with that name registered. I would like to disable the exception at registration if there is something with the same name. Perhaps it could print a warning?

This is a feature request for the Java client, you should file it there. This behaviour is intended though, as it is a mistake to register multiple collectors with the same name.


Fix IgniteExtensionsManager initialization

when extension accessed manager.iteration in their initialize method, it failed because it's not prepared yet. (happed in ProgressBarNotebook)
This PR fixes this.

/test

/test

/test


MUMUP-1943 : Add configuration to get frame apps search to work

Basically adds a redirect if its a frame app.  Has a shortcut for /web to avoid page refresh.

:+1:


chore(main): release 6.7.0

:robot: I have created a release beep boop
6.7.0 (2024-12-07)
Features

using folke/snacks.nvim can preserve window layouts on deletes (5c0f9b2)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v6.7.0
:sunflower:


Support for nested files in incremental tasks

Expected Behavior
When using the incremental task API's, I'd like to know the (root relative) path of each file in the event handlers.

IncrementalTaskInputs.outOfDate(Action<? super InputFileDetails>)
IncrementalTaskInputs.removed(Action<? super InputFileDetails>)

I suggest adding InputFileDetails.getPath() which would be the value of FileVisitDetails.getPath() for each File originating from a FileTree task input.
Current Behavior
Currently we only have access to InputFileDetails.getFile() but we don't know the relative path. We can actually calculate the path for file adds and updates with a bit of work but it's impossible to calculate the path for nested files which have been removed
Context
Let's use the example from the documentation
class IncrementalReverseTask extends DefaultTask {
     @InputDirectory
     def File inputDir

     @OutputDirectory
     def File outputDir

     @TaskAction
     void execute(IncrementalTaskInputs inputs) {
         if (!inputs.incremental) {
             project.delete(outputDir.listFiles())
         }
         inputs.outOfDate { change ->
             def targetFile = project.file("$outputDir/${change.file.name}")
             targetFile.text = change.file.text.reverse()
         }

         inputs.removed { change ->
             def targetFile = project.file("$outputDir/${change.file.name}")
             if (targetFile.exists()) {
                 targetFile.delete()
             }
         }
     }
 }

Notice how if files were nested in inputDir they will be flattened in outputDir because of the following (repeated) line
def targetFile = project.file("$outputDir/${change.file.name}")

Ultimately I'd like to do the following instead
def targetFile = project.file("$outputDir/${change.path}")

Please see this forum post for a real world use case wanting to implement an incremental copy task

You can access the normalized path of the change using the InputChanges API introduced in Gradle 5.4 via FileChange.getNormalizedPath(). See https://docs.gradle.org/current/userguide/custom_tasks.html#sec:implementing_an_incremental_task

Ah, thanks. It would be great if you could mention in the IncrementalTaskInputs documentation that it's being deprecated in favour of `InputChanges

We are going to deprecate it in Gradle 6.0 and going to mention the new API then.


Add slick-active before changing slide

Hey there,
is it possible to add .slick-active / .slick-current to next slide before changing to next slide?
Kindest regards

You could just use the beforeChange event to do what you wish.

I'm seeing it's directly after beforeChange, so normally it should be fast enough. I'll have a look why my css animation is triggered a bit too late. Thx!


add param to request in tenant not working

Describe the bug
in tenant with sub domain definition add param to  request not work i also active redis bootstraper
       Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper::class, // Note: phpredis is needed
bellow code
$request->request->add(['variable' => 'value']); //add request
dd($request->variable)
return null
Steps to reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Your setup

Laravel version:7
stancl/tenancy version: 3.4

Please don't open multiple bug reports if you don't say what the package does wrong and don't fill out the issue template.
If there's a clear thing that the package should be doing and it does something else, you can open a bug report and fill out expected behavior, actual behavior, and steps to reproduce.
What you're writing here is really just a support question that one specific thing in a larger codebase doesn't work, without saying how it's related to the package.

Please don't open multiple bug reports if you don't say what the package does wrong and don't fill out the issue template.
If there's a clear thing that the package should be doing and it does something else, you can open a bug report and fill out expected behavior, actual behavior, and steps to reproduce.
What you're writing here is really just a support question that one specific thing in a larger codebase doesn't work, without saying how it's related to the package.

ok ..

ok ..

#Describe the bug
in tenant with sub domain definition add param to request not work
$request->request->add(['variable' => 'value']); //add request
dd($request->variable)
return null
#Steps to reproduce
1 - run app in multi database
2- add session driver to SESSION_DRIVER=redis
3- set routes tenant definition to InitializeTenancyByDomainOrSubdomain::class
4- active Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper::class
#Expected behavior
i need add param to $request in tenant grammatically but return null but this code in traditional laravel project work fine
Your setup
Laravel version:7
stancl/tenancy version: 3.4

#Describe the bug
in tenant with sub domain definition add param to request not work
$request->request->add(['variable' => 'value']); //add request
dd($request->variable)
return null
#Steps to reproduce
1 - run app in multi database
2- add session driver to SESSION_DRIVER=redis
3- set routes tenant definition to InitializeTenancyByDomainOrSubdomain::class
4- active Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper::class
#Expected behavior
i need add param to $request in tenant grammatically but return null but this code in traditional laravel project work fine
Your setup
Laravel version:7
stancl/tenancy version: 3.4

help me please

help me please


Added tests for message function api

General Checkups

[x] Have you checked that there aren't other open pull requests for the same issue/update/change?
[x] If your code includes new features and not just bug fixes/copy editing: Did you include new tests?

Description

Related Issue

Example

Hi @gedankenstuecke @madprime, I have renamed and moved the tests for message function. Please review.

@DartingMelody awesome! No worries on the variables defined in locals(), but there's a couple other style issues still raised by Hound. It seems minor, but we'd like our code to have a standard style, so I'd like those to be fixed. :)
Have you added a linter into your code editor? If not, you might want to look into this. I use linter-flake8 with atom. It's very useful to be able to see issues immediately, while coding!

Hi, @madprime , thanks for suggesting the linter. I switched to atom with flake8 linter. I have fixed the hound issues(except the locals()). Please review. Thanks! :)

@DartingMelody Thank you! It's great to have more testing, and I'm glad the tip about a linter was helpful. :) I'll merge now!


Merge changes from the fork used by the dlang tour

Basically this is the new content from the @wilzbach fork except that i've made a reset to exclude the last commit. The last commit changed the name but this is not necessary anymore since we own the original now.

Hmm, I think we may actually need @wilzbach's commit, because even though we have full access to this github repo, we don't have access to the code.dlang.org account to redirect the dub package, so we may need to register a new one.

Apart from that, obviously everything looks good to to me in this PR. I was wondering if we should do an additional rebase to drop the commits that touch the readme file and dub.json, which are now useless, but I decided to preserve the history, to keep things simple.

we don't have access to the code.dlang.org account to redirect the dub package
The redirect is probably automatic. Queries for Ferdinand repositories land here.