question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

luci-app-shadowsocks-libev: servers page broken in latest luci

See original GitHub issue

@jow- @yousong The “Remote Servers” page is broken in new version of luci, showing “TypeError Cannot read property ‘id’ of undefined”. I found it’s because UIDropdown.__init__ is not called, which is caused by super function. https://github.com/openwrt/luci/blob/1df1421221a2e22334668e6c5524fc359f21d32d/modules/luci-base/htdocs/luci-static/resources/luci.js#L267-L291 I don’t know why superContext is not a local veriable. Because of this, superContext remains LuCI.View when UIDropdown.__init__ is called. So __init__ is not found and not called.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jow-commented, Nov 26, 2019

@yousong - thanks for the suggestion. I opted for a different approach in the end which was easier for me to wrap my head around.

0reactions
yousongcommented, Nov 26, 2019

@jow- Likely it’s not enough and a stack-like structure is required.

Let’s consider the following case. The 2nd and 3rd super('render') calls are at the same level. Context will be cleared on return from 2nd call, causing the 3rd call starting from scratch invoking method of child class.

obj.super('render')
  obj.super('render')
  obj.super('render')
Read more comments on GitHub >

github_iconTop Results From Across the Web

package: luci-app-shadowsocks-libev - OpenWRT
Name: luci-app-shadowsocks-libev; Version: git-20.216.14006-3a7c6df; Description: LuCI Support for shadowsocks-libev\\ \\; Installed size: ...
Read more >
Brush OpenWRT router installation shadowsocks to use ...
First you need to download the necessary software package - a package that is shadowsocks luci and graphical control app,Their respective ...
Read more >
GSoC 2018 Archives - Page 2 of 5 - Freifunkblog
The main goal was to have a ground routing configuration page in Lime-app (simple GUI for Libremesh router management). This main goal was...
Read more >
Tproxy udp - Seba Online
Contribute to maxlicheng/luci-app-ssr-plus development by creating an account ... Shadowsocks-libev is a lightweight secured SOCKS5 proxy for e513/udp : who ...
Read more >
Ports and Clients - renfufei/shadowsocks GitHub Wiki
Click / TAP HERE TO View Page on GitHub.com ➡️ ... Linux / Server side ... openwrt-shadowsocks - LuCI package for shadowsocks-libev ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found