在最新版本的 vscode 中启动 Julia 时发生本机异常

问题描述 投票:0回答:1

总是显示(args[3]必须是一个字符串(不是未定义的))。但是,我不知道args出现在哪个文件中。

不知道有没有人遇到过同样的问题并解决了?我尝试修改launch.json文件,但没有成功。

exception terminal julia arguments
1个回答
0
投票

这个问题你解决了吗? 我曾经遇到过同样的错误,我使用以下setting.json 文档修复了它:

{
    "workbench.colorTheme": "Default Dark+",
    "editor.accessibilitySupport": "off",
    "window.zoomLevel": 1,
    "security.workspace.trust.untrustedFiles": "open",
    "cmake.showOptionsMovedNotification": false,
    "julia.symbolCacheDownload": true,
    "julia.enableTelemetry": true,
    "julia.additionalArgs": [],
    "julia.debuggerDefaultCompiled": [
        "Base.",
        "-Base.!",
        "-Base.|>",
        "-Base.all",
        "-Base.all!",
        "-Base.any",
        "-Base.any!",
        "-Base.cd",
        "-Base.iterate",
        "-Base.collect",
        "-Base.collect_similar",
        "-Base._collect",
        "-Base.collect_to!",
        "-Base.collect_to_with_first!",
        "-Base.filter",
        "-Base.filter!",
        "-Base.foreach",
        "-Base.findall",
        "-Base.findfirst",
        "-Base.findlast",
        "-Base.findnext",
        "-Base.findprev",
        "-Base.Generator",
        "-Base.map",
        "-Base.map!",
        "-Base.maximum!",
        "-Base.minimum!",
        "-Base.mktemp",
        "-Base.mktempdir",
        "-Base.open",
        "-Base.prod!",
        "-Base.redirect_stderr",
        "-Base.redirect_stdin",
        "-Base.redirect_stdout",
        "-Base.reenable_sigint",
        "-Base.setindex!",
        "-Base.setprecision",
        "-Base.setrounding",
        "-Base.show",
        "-Base.sprint",
        "-Base.sum",
        "-Base.sum!",
        "-Base.task_local_storage",
        "-Base.timedwait",
        "-Base.withenv",
        "-Base.Broadcast",
        "Core",
        "Core.Compiler.",
        "Core.IR",
        "Core.Intrinsics",
        "DelimitedFiles",
        "Distributed",
        "LinearAlgebra.",
        "Serialization",
        "Statistics",
        "-Statistics.mean",
        "SparseArrays",
        "Mmap"
    ],
    "julia.usePlotPane": false,
    "julia.useCustomSysimage": true,
    "julia.executablePath": "XXXXXXXXXXXXXXXXXyourpathXXXXXXXXXXXXXX"
}

也许你可以试试这个。

© www.soinside.com 2019 - 2024. All rights reserved.