Comments (3)
有几个问题:
- 使用的执行节点是官方默认的节点吗?还是自己接入的节点?
- 如果使用官方的节点,对应的 GRADLE_HOME=/opt/gradle-6.5 位置有在官方节点机器中安装吗?
建议接入自己的节点,这样方便管理机器环境
from codeanalysis.
你好,感谢回复。
- 是官方默认的节点.
- 对应的 GRADLE_HOME=/opt/gradle-6.5 位置安装在官方节点机器。
此外,我自己又部署了一台Windows节点的机器,将gradle加入系统path中,而且在分析方案中也配置环境变量,这个节点是能够编译成功的。
不过在使用javawarning时提示下面的错误信息。
错误日志见下:
2024-01-02 17:19:41,402-INFO: start to run task: JavaWarning, execute_processes: ['compile', 'analyze', 'datahandle']
2024-01-02 17:19:41,529-INFO: Load tool config: https://git.code.tencent.com/TCA/tca-tools/puppy-tools-config.git
2024-01-02 17:19:47,856-INFO: Initing common tools ...
2024-01-02 17:19:47,856-INFO: Initing 3 tools, please wait a minute ...
[Tools init]: 0%| | 0/3 [00:00<?, ?it/s]
[Tools init]: 33%|█████████████████ | 1/3 [00:06<00:12, 6.22s/it]
[Tools init]: 67%|██████████████████████████████████ | 2/3 [00:06<00:03, 3.92s/it]
[Tools init]: 100%|███████████████████████████████████████████████████| 3/3 [00:06<00:00, 2.07s/it]
2024-01-02 17:19:54,089-INFO: Initialize tools done.(use time: 6.23s)
2024-01-02 17:19:54,089-INFO: run cmd: git lfs install
2024-01-02 17:19:54,771-INFO: Git LFS initialized.
2024-01-02 17:19:54,887-INFO: Initing other tools ...
2024-01-02 17:19:54,896-INFO: task start : <class 'task.model.compile.CompileTask'>
2024-01-02 17:19:54,896-INFO: pre_compile start.
2024-01-02 17:19:54,896-INFO: start __checkout_source_dir.
2024-01-02 17:19:54,896-INFO: 常规项目,直接拉取或复用本地缓存资源.
2024-01-02 17:20:00,583-INFO: load_source_dir done. source_dir insert env. sourcedir: C:\Users\usr\Desktop\TCA\CodeAnalysis\client\data\sourcedirs\git_j33qqk5c
2024-01-02 17:20:00,584-INFO: pre_compile done.
2024-01-02 17:20:00,585-INFO: PATH =
C:\Users\usr\Desktop\TCA\CodeAnalysis\tools\win-git-lfs-v3.1.2
C:\Users\usr\Desktop\TCA\CodeAnalysis\tools\win-git-lfs-v3.1.2
……
省略
……
2024-01-02 17:22:57,326-INFO:
2024-01-02 17:22:57,326-INFO: BUILD SUCCESSFUL in 2m 56s
2024-01-02 17:22:57,326-INFO: 101 actionable tasks: 15 executed, 86 up-to-date
2024-01-02 17:22:57,799-INFO: exist_error_flag : False
2024-01-02 17:22:57,799-INFO: exist_success_flag : True
2024-01-02 17:22:57,799-INFO: exist_100_flag : False
2024-01-02 17:22:57,799-INFO: cov_no_file_emitted : False
2024-01-02 17:22:57,799-INFO: 编译成功!
2024-01-02 17:22:57,799-INFO: basic compile done.
2024-01-02 17:22:57,799-INFO: done_compile start.
2024-01-02 17:22:57,799-INFO: task done : <class 'task.model.compile.CompileTask'>
2024-01-02 17:22:57,811-INFO: task start : <class 'task.model.analyze.AnalyzeTask'>
2024-01-02 17:22:57,811-INFO: pre_analyze start.
2024-01-02 17:22:57,811-INFO: pre_analyze done.
2024-01-02 17:22:57,884-WARNING: task status code is 201
2024-01-02 17:22:57,884-WARNING: task messsage: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 1726: invalid continuation byte
2024-01-02 17:22:57,887-WARNING: task result:
Traceback (most recent call last):
File "task\puppytask.py", line 63, in run
File "task\runtask.py", line 129, in task.runtask.tskr.tskr.run_task
File "task\taskmgr.py", line 73, in taskrunner
File "task\model\analyze.py", line 49, in runner
File "tool\javawarning.py", line 68, in analyze
File "d:\app\python37\lib\codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 1726: invalid continuation byte
2024-01-02 17:22:57,888-INFO: task result: \路径……\CodeAnalysis\client\data\taskdirs\task_320\task_response.json
我有些疑惑Ubuntu的节点为何不能编译成功,以及在Windows节点下的问题该如何解决?是我配置的问题还是工程本身的问题?
from codeanalysis.
-
Ubuntu的节点为何不能编译成功?
这个目前由于缺乏足够信息无法判断,可以自行尝试登录节点调试下,看任务执行时候gradle是否存在。 -
Windows节点下的问题该如何解决?
这里应该是编码问题,可以尝试 基于 htmlcs中读取文件的代码 调试 javawarning读取文件位置代码 试试。欢迎PR
from codeanalysis.
Related Issues (20)
- 使用Findbugs工具分析代码出现编译失败。 HOT 3
- 仓库登记时候显示错误,配置为ssh,显示自动将ssh替换为http HOT 1
- license-classifier工具扫描目标文件数为0时,会执行异常,应该返回空结果 HOT 1
- luacheck分析大项目的时候会因为文件太多导致命令参数过长 HOT 2
- 无法邀请团队成员 HOT 2
- 有submodule子仓的仓库下载代码失败 HOT 4
- 在分析方案列表中切换分析方案时,规则配置里的规则包排序不会优先显示已开启的
- 求一些提高服务可靠性的建议🫡
- 问下有除了腾讯csig以外用这个代码分析的用户吗? HOT 1
- 是否有Python静态代码解析结果的关系图功能,类似vs code中的“查找所有引用” HOT 1
- 基于客户端分析模式,怎么获取git代码的详情,代码库12G HOT 4
- 【需求】在标记处理问题时,能够支持填写标记的备注,方便回溯问题分析过程 HOT 1
- 圈复杂度的codefile报错,代码检测错误codefile正常 HOT 4
- 客户端扫描执行崩溃 HOT 1
- 【需求】调研集成 corax 社区版 HOT 1
- web端部署最新资源执行 `sh build-source.sh`在windows环境下会导致configs.json路径问题
- cls生成的Server ID发生了变化 HOT 1
- 客户端本地分析失败,HTTP Error 500: Internal Server Error
- 打开问题详情复制文件名时,变成关闭 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeanalysis.