smartide / smartide Goto Github PK
View Code? Open in Web Editor NEWCloudNative IDE - Empower develoeprs with CloudNative technologies, may the force with you!
Home Page: https://smartide.cn
License: GNU General Public License v3.0
CloudNative IDE - Empower develoeprs with CloudNative technologies, may the force with you!
Home Page: https://smartide.cn
License: GNU General Public License v3.0
This module is really too big, it is difficult to clone it completely within the Chinese network, I hope to give a solution.
2022-07-14 16:43:38 [INFO] [SSH] Connecting to a remote host smartide@IP:22 ...
2022-07-14 16:43:40 [INFO] 正在获取模板 ...
2022-07-14 16:43:50 [INFO] 当前目录已经完成初始化,无须再次进行!
2022-07-14 16:43:53 [INFO] SmartIDE VM Mode is starting up...
2022-07-14 16:43:53 [INFO] [SSH] Connecting to a remote host [email protected]:22 ...
2022-07-14 16:43:54 [INFO] [Config] Use the the configuration file in your repo : ~/project/ry-cloud/.ide/.ide.yaml
2022-07-14 16:43:55 [INFO] 工作区配置改变!
后面就没下文了,还有很多需要改
使用
smartide start https://gitee.com/idcf-boat-house/boathouse-calculator.git
或
git clone https://gitee.com/idcf-boat-house/boathouse-calculator.git
cd boathouse-calculator
smartide start
都会失败
报错信息:
[v1.0.32.7251]
2022-12-07 14:23:11.689 INFO SmartIDE启动中 ...
2022-12-07 14:23:11.689 INFO 读取工作区信息 ...
2022-12-07 14:23:12.473 INFO 当前目录已经完成初始化,无须再次进行!
2022-12-07 14:23:12.474 INFO 新增工作区!
2022-12-07 14:23:12.475 INFO 读取 docker-compose 文件:docker-compose.yaml
2022-12-07 14:23:12.587 FATAL ; runtime error: slice bounds out of range [:-1]; goroutine 1 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x88
github.com/leansoftX/smartide-cli/pkg/common.(*smartIDELogStruct).Fatal(0x1027d9520, {0x101aca420, 0x140004e2858}, {0x0, 0x0, 0x0})
/home/localadmin/agents/agent01/_work/4/s/cli/pkg/common/log.go:199 +0x1c4
main.main.func1()
/home/localadmin/agents/agent01/_work/4/s/cli/main.go:41 +0x50
panic({0x101aca420, 0x140004e2858})
/usr/local/go/src/runtime/panic.go:1038 +0x21c
github.com/leansoftX/smartide-cli/internal/biz/config.GitConfig(0x0, {0x0, 0x0}, 0x0, 0x140008f8a60, {{0x0, 0x0}, 0x0, {0x0, 0x0}, ...}, ...)
/home/localadmin/agents/agent01/_work/4/s/cli/internal/biz/config/gitconfig.go:138 +0xba8
github.com/leansoftX/smartide-cli/internal/biz/config.(*SmartIdeConfig).ConvertToDockerCompose(0x14000478fc0, {{0x0, 0x0}, 0x0, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, ...}, ...)
/home/localadmin/agents/agent01/_work/4/s/cli/internal/biz/config/config.go:307 +0x12a8
github.com/leansoftX/smartide-cli/cmd/start.ExecuteStartCmd({{0x0, 0x0}, {0x14000047128, 0x18}, {0x0, {0x0, 0x0}}, {0x14000048004, 0x1e}, {0x10169aae3, ...}, ...}, ...)
/home/localadmin/agents/agent01/_work/4/s/cli/cmd/start/local.go:90 +0x4e0
github.com/leansoftX/smartide-cli/cmd.glob..func15(0x1027c1700, {0x10280c2c8, 0x0, 0x0})
/home/localadmin/agents/agent01/_work/4/s/cli/cmd/start.go:177 +0x6d0
github.com/spf13/cobra.(*Command).execute(0x1027c1700, {0x10280c2c8, 0x0, 0x0})
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x668
github.com/spf13/cobra.(*Command).ExecuteC(0x1027c0580)
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x410
github.com/spf13/cobra.(*Command).Execute(...)
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/leansoftX/smartide-cli/cmd.Execute({{0x140004e78a0, 0xc}, {0x140004e7870, 0xb}, {0x1400055ca20, 0x23}, {0x1400055ca50, 0x28}, {0x1400055ca70, 0x8}, ...})
/home/localadmin/agents/agent01/_work/4/s/cli/cmd/root.go:144 +0x88
main.main()
/home/localadmin/agents/agent01/_work/4/s/cli/main.go:50 +0xd4
wait wait。。。。。。
镜像:registry.cn-hangzhou.aliyuncs.com/smartide/smartide-java-v2-jetbrains-idea:2021.2.3-openjdk-11-jdk-2081
容器日志为:/idesh/gosu_entrypoint.sh: line 34: exec: smartide: not found
之前有提到web端会上线 但是文档没看到有这部分介绍 请问目前是否支持web端
希望支持arm架构
我用的是 SmartIDE/server/deployment/docker-compose.yaml部署的
报错信息是
standard_init_linux.go:228: exec user process caused: exec format error
按文档新增主机 添加主机前,需要主机已完成 SmartIDE初始化配置 。
工作区新增工作区一直处于部署状态,怎么查看部署日志
删除xtp.xtp-docker 和linxiao.xtp-docker两个测试包
https://marketplace.smartide.cn/extension/xtp/xtp-docker
https://marketplace.smartide.cn/extension/linxiao/xtp-docker
➜ test smartide.exe new php
v0.1.9.1753
2022-01-11 11:34:48.286 INFO 正在获取模板 ...
mkdir //: The filename, directory name, or volume label syntax is incorrect.
mkdir //wsl.localhost/: The specified path is invalid.
mkdir //: The filename, directory name, or volume label syntax is incorrect.
mkdir //wsl.localhost/: The specified path is invalid.
mkdir //: The filename, directory name, or volume label syntax is incorrect.
mkdir //wsl.localhost/: The specified path is invalid.
2022-01-11 11:34:48.973 INFO SmartIDE启动中 ...
2022-01-11 11:34:48.973 INFO 读取工作区信息 ...
2022-01-11 11:34:50.510 INFO 新增工作区!
then stuck hanging
非常棒的一个项目
我看了一下安装文档,IPv6目前并不支持
目前运营商都在普遍支持pv6了,想咨询下,roadmap会加入ipv6支持的计划吗?
PS D:\bk-test> smartide.exe start --host xxx --username zs --repourl https://github.com/idcf-boat-house/boat-house.git
v0.1.7.1456
2021-12-08 11:01:57.045 INFO SmartIDE启动中 ...
2021-12-08 11:01:57.050 INFO 读取工作区信息 ...
2021-12-08 11:01:57.052 INFO 检查ssh连接是否正常 xxx ...
2021-12-08 11:01:57.136 INFO 远程主机模式启动中 ...
2021-12-08 11:01:57.137 INFO 连接远程主机 zs@xxx ...
2021-12-08 11:02:00.333 INFO [Git] 克隆代码库 ...
remote: Enumerating objects: 224, done.
remote: Counting objects: 100% (224/224), done.
remote: Compressing objects: 100% (184/184), done.
Receiving objects: 100% (224/224), 740.12 KiB | 0 bytes/s, done. 0
Resolving deltas: 100% (32/32), done.
2021-12-08 11:02:04.584 INFO [Git] Git 代码库克隆完成。
2021-12-08 11:02:04.638 INFO 执行 git checkout && git pull
2021-12-08 11:02:07.739 INFO 读取代码库下的配置文件 '~/project/bk-test/.ide/.ide.yaml' ...
2021-12-08 11:02:07.793 INFO 工作区配置改变!
2021-12-08 11:02:09.926 ERROR ; sudo: no tty present and no askpass program specifiedProcess exited with status 1
some enviroment can't connect via ssh, so smartide may be need socks and http proxy server config support.
想咨询下 server 相关的代码在哪里。我只看到有cli 的代码
问题主要是在ipad上不做任何的显示,无法正常编辑。我在mac的浏览器上显示是正常的。我尝试更换ipad的浏览器,但是依旧无效。
As code show, this function will get all container status when container in dockerComposeServices.
However, when get any correct container, the function will break incorrectly.
This bug make the function return only the first correct container.
Lines 132 to 141 in fb52a51
您好,我想搭建一个内网的本地的插件市场,就部署到单Linux服务器里,看smartIDE官网给的方法是azure服务器+blob storage云存储的方式,有没有部署到单Linux服务器的方法?谢谢啦
v0.1.9.1753
2022-01-03 15:51:35.654 INFO 正在获取模板 ...
2022-01-03 15:51:36.446 INFO SmartIDE启动中 ...
2022-01-03 15:51:36.446 INFO 读取工作区信息 ...
2022-01-03 15:51:37.802 INFO 新增工作区!
2022-01-03 15:51:38.120 INFO 创建临时目录(.temp),请在 Git 中忽略此目录:C:\Test\idea.ide.temp
2022-01-03 15:51:38.140 INFO [SSH] 转发端口:6822
Creating smartide-java-template ... error
ERROR: for smartide-java-template Cannot create container for service smartide-java-template: mkdir C:\Program Files\Git\bin.m2: Access is denied.
ERROR: for smartide-java-template Cannot create container for service smartide-java-template: mkdir C:\Program Files\Git\bin.m2: Access is denied.
ERROR: Encountered errors while bringing up the project.
2022-01-03 15:51:41.635 FATAL ; exit status 1; goroutine 1 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
github.com/leansoftX/smartide-cli/pkg/common.(*smartIDELogStruct).Fatal(0x25af031, {0x24e8aa0, 0xc00067e000}, {0x0, 0x0, 0x0})
/home/localadmin/agents/agent01/_work/1/s/pkg/common/log.go:86 +0x1e5
github.com/leansoftX/smartide-cli/cmd/start.ExecuteStartCmd({0x0, {0x0, 0x0}, {0xc0000dc460, 0xc}, {0x25ae357, 0xe}, {0xc0000aeba0, 0x30}, {0x25a3dcb, ...}, ...}, ...)
/home/localadmin/agents/agent01/_work/1/s/cmd/start/local.go:128 +0xbcc
github.com/leansoftX/smartide-cli/cmd.glob..func6(0x36903c0, {0xc000021a70, 0x1, 0x3})
/home/localadmin/agents/agent01/_work/1/s/cmd/new.go:138 +0xa88
github.com/spf13/cobra.(*Command).execute(0x36903c0, {0xc000021a40, 0x3, 0x3})
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0x368fec0)
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/leansoftX/smartide-cli/cmd.Execute({{0xc000034470, 0xb}, {0xc000034440, 0xa}, {0xc00034de60, 0x21}, {0xc00034de90, 0x28}, {0xc00034deb0, 0x8}, ...})
/home/localadmin/agents/agent01/_work/1/s/cmd/root.go:75 +0x79
main.main()
/home/localadmin/agents/agent01/_work/1/s/main.go:44 +0x118
Can I use smartIDE to debug the k8s cluster where the smart server is located?
I want to use the smart IDE to debug the cloud environment by vmlc.
如果手动删除了创建的容器与clone的代码库,再执行smartide remove ${workspace_id}
或者smartide remove -y -f
后,执行smartide ls
发现对应的workspace仍然存在,除非手动删除~/.ide/
才能删除记录
allow user to trigger a smartide-cli task to create a remote workspace, this is useful when you want deploy a dev/test environment with a specific codebase version.
here is a gitlab-smartide-cli-ci.yml sample
stages:
- smartide
smartide_start:
stage: dev-env-start
image: registry.cn-hangzhou.aliyuncs.com/smartide/smartide-cli
script:
- smartide start --mode=server --host <address-ip> --username <ssh-user> --password <ssh-password> <git-url>
consider pass in the following parameters:
git-ref
, so you can use commit-id
, tag
, or branch
post a blog to https://smartide.cn/zh/blog/
and a video to https://space.bilibili.com/1001970523
如果移动了已创建的项目结构,无论通过remove 或者reset都删除不了workspace
smartide.exe remove 6
v0.1.8.1602
2021-12-22 17:47:11.179 INFO SmartIDE工作区删除中 ...
2021-12-22 17:47:11.179 INFO 读取工作区信息 ...
是否确认删除?(y|n)
y
2021-12-22 17:47:14.360 ERROR ; open D:\bkui\.ide\.gitignore: The system cannot find the path specified
2、日志
20220124.log
3、简要描述一下过程。
smartide账号已创建,docker、docker-compose运行正常
本地跑smartIDE出现SSH问题
SSH可以连接,端口全开放
希望官方能对若依项目进行开发模板适配
https://gitee.com/y_project/RuoYi-Vue
使用私有部署server,且工作区也在当前机器
boathouse-calculator git:(master) # 在 MacOS 上打开 终端应用(Terminal) 并复制粘贴本段脚本
git clone https://gitee.com/idcf-boat-house/boathouse-calculator.git
cd boathouse-calculator
smartide start
Cloning into 'boathouse-calculator'...
remote: Enumerating objects: 907, done.
remote: Counting objects: 100% (907/907), done.
remote: Compressing objects: 100% (412/412), done.
remote: Total 907 (delta 477), reused 877 (delta 457), pack-reused 0
Receiving objects: 100% (907/907), 4.34 MiB | 4.46 MiB/s, done.
Resolving deltas: 100% (477/477), done.
v0.1.7.1429
2021-12-02 10:26:19.986 INFO SmartIDE启动中 ...
2021-12-02 10:26:19.986 INFO 读取工作区信息 ...
2021-12-02 10:27:32.127 INFO 工作区配置改变!
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1446cf4]
goroutine 1 [running]:
golang.org/x/crypto/ssh.(*Client).NewSession(0xc000550b00)
/home/localadmin/go/pkg/mod/golang.org/x/[email protected]/ssh/client.go:130 +0x14
github.com/leansoftX/smartide-cli/lib/common.(*SSHRemote).ExecSSHCommandRealTimeFunc(0xc0005407a0, {0xc000036b40, 0x1e}, 0x0)
/home/localadmin/agents/agent01/_work/1/s/lib/common/sshremote.go:370 +0x85
github.com/leansoftX/smartide-cli/lib/common.(*SSHRemote).ExecSSHCommandRealTime(...)
/home/localadmin/agents/agent01/work/1/s/lib/common/sshremote.go:364
github.com/leansoftX/smartide-cli/cmd/dal.SSHVolumesConfig({, _}, _, {{0x0, 0x0}, {0x0, 0x0, 0x0}, {{0x0, 0x0}, ...}, ...}, ...)
/home/localadmin/agents/agent01/_work/1/s/cmd/dal/gitconfig.go:77 +0xbb
github.com/leansoftX/smartide-cli/cmd/dal.(*YamlFileConfig).ConvertToDockerCompose(0xc00054c0e0, {{0x0, 0x0}, 0x0, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, ...}, ...)
/home/localadmin/agents/agent01/_work/1/s/cmd/dal/config.go:666 +0xe31
github.com/leansoftX/smartide-cli/cmd/start.ExecuteStartCmd({0x0, {0x0, 0x0}, {0xc00003c004, 0x5a}, {0x1961fa7, 0xe}, {0x0, 0x0}, {0x195be11, ...}, ...}, ...)
/home/localadmin/agents/agent01/_work/1/s/cmd/start/local.go:54 +0x32a
github.com/leansoftX/smartide-cli/cmd.glob..func9(0x20a1e20, {0x20de6d0, 0x0, 0x0})
/home/localadmin/agents/agent01/_work/1/s/cmd/start.go:56 +0x2b3
github.com/spf13/cobra.(*Command).execute(0x20a1e20, {0x20de6d0, 0x0, 0x0})
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0x20a07a0)
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
/home/localadmin/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/leansoftX/smartide-cli/cmd.Execute({{0xc000038430, 0xb}, {0xc000038400, 0xa}, {0xc000450bd0, 0x21}, {0xc000450d50, 0x28}, {0xc000450d70, 0x8}, ...})
/home/localadmin/agents/agent01/_work/1/s/cmd/root.go:68 +0x79
main.main()
/home/localadmin/agents/agent01/_work/1/s/main.go:35 +0xbb
系统 ubuntu 20.02 完全按手册 https://smartide.cn/zh/docs/install/server/ 安装
”创建失败Post "http://minikube": dial tcp: lookup minikube on 127.0.0.11:53: server misbehaving”
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.