88250 / wide Goto Github PK
View Code? Open in Web Editor NEW🌈 一款基于 Web 的 Go 语言 IDE,随时随地玩 golang。
Home Page: https://wide.b3log.org
License: Apache License 2.0
🌈 一款基于 Web 的 Go 语言 IDE,随时随地玩 golang。
Home Page: https://wide.b3log.org
License: Apache License 2.0
您好,非常感谢作者的付出,发现三个问题,第一次提Issues,提的不好请见谅。
Linux raspberrypi 4.19.97-v7l+ armv7l GNU/Linux
go version go1.14.2 linux/arm
Docker Engine Community Version 19.03.8 OS/Arch Linux/arm
main.go
里面,第160行,绑定的地址和端口没有应用conf.Wide.Server
获取的数据。
Lines 158 to 163 in 3256f60
通过直接修改,成功修复绑定问题。
使用的测试平台是树莓派4B,Go源码在编译之后Docker无法正常执行,提示"NanoCPUs can not be set, as your kernel does not support CPU cfs period/quota or the cgroup is not mounted",发现原因是在session/processes.go
的第73行。
Line 73 in 3256f60
删除-cpus
参数后Docker成功执行命令。
在初次使用时,Wide需要从DockerHub拉取Golang镜像用于编译源码,但是因为网速的原因,无法在5秒之内拉取镜像,所以命令会被强制中断,具体代码:
Lines 181 to 198 in 3256f60
通过提前执行Pull操作可以成功拉取镜像,程序在Wide上也能正常编译。
但是希望能够将Pull的过程和Run的过程分开,可以在程序初始化的过程先判断Golang镜像是否在Docker中保存至本地,避免Run的时候才Pull。
Line 1 in 47374dd
b3gulu.Log.org -> b3log.org, 估计是 refactor 的时候一并改了。
wide存在一处反射型XSS漏洞
请描述如何重现这个问题:
1.在IDE中新建一个文件,对文件名没有过滤“<”,“>”等特殊字符。
2.操作刚才新建的文件,比如打开编辑器或者关闭编辑器,xss漏洞可被触发。
请尽量清晰精准地描述你所期待的结果。
如果可能,请尽量附加截图或录像来描述你遇到的问题。
因为是在其他项目中发现的该问题,该项目引用了wide
请提供其他附加信息帮助我们诊断问题。
通过升级 gocode 解决 https://github.com/stamblerre/gocode
长远之计 #5
请尽量清晰精准地描述你碰到的问题。
请描述如何重现这个问题:
请尽量清晰精准地描述你所期待的结果。
如果可能,请尽量附加截图或录像来描述你遇到的问题。
请提供其他附加信息帮助我们诊断问题。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.