You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Rascal Charts库导入失败及pieChart未声明问题求助

Rascal Charts库在Eclipse插件中无法使用的问题

问题现象

  • VSCode更新后,Rascal的Charts库图表功能可正常使用,但在Eclipse插件的REPL或模块中,按照官方Charts库文档导入命名空间时失败:
    rascal>import vis::Charts;
    |prompt:///|(0,19,<1,0>,<1,19>): Could not import module vis::Charts: can not find in search path
    
  • 模块内编写如下饼图绘制代码:
    public void drawPieChart(map[str, int] code, str label){
        pieChart(toRel(code));
    }
    
  • 调用该函数时出现未声明变量错误:
    rascal>readTest();
    Reloading module Test
    The total lines in this project: 17507
    |project://*********/src/Visualize.rsc|(968,8,<35,1>,<35,9>): Undeclared variable: pieChart
    Advice: |http://tutor.rascal-mpl.org/Errors/Static/UndeclaredVariable/UndeclaredVariable.html|
    

已执行的操作

  • 在对应项目的控制台及模块中均尝试导入vis::Charts
  • 将Rascal版本升级至0.26.7

疑问

GitHub问题追踪器显示figure库存在问题,但官方文档未明确说明Charts库已失效或被移除。请问是操作有误,还是库本身存在问题?若为后者,预计何时能修复?

内容的提问来源于stack exchange,提问作者Armandreano

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.08 17:40:21