簡體   English   中英

VS 代碼和 Julia - 無法通過 CTRL+F5 運行 Julia 應用程序

VS Code and Julia - Unable to run Julia applications via CTRL+F5

提示:本站收集StackOverFlow近2千萬問答,支持中英文搜索,鼠標放在語句上彈窗顯示對應的參考中文或英文, 本站還提供   中文簡體   英文版本   中英對照 版本,有任何建議請聯系yoyou2525@163.com。

我正在嘗試讓 Julia 擴展在 VS 代碼中工作。 我可以通過 REPL 運行 Julia 文件,並且可以在新進程中調試 Julia 文件。 但是我無法在新進程中運行 Julia 文件 換句話說,雖然所有其他運行選項都有效,但下圖中帶圓圈的選項無效。

在此處輸入圖像描述

這可能是什么原因?

我使用的是最新的穩定版 Julia (1.7.3),VS 代碼已全面更新。 我正在使用 Julia VS 代碼擴展的 1.6.28 版本。 我也在使用 Windows 10。使用 CRTL+F5 時,我根本沒有收到來自 VS 代碼的反饋。 雖然計數器確實出現在“運行和調試”窗格中,但在我以另一種方式運行文件之前,運行時實例不會顯示在調用堆棧中。 例如,如果我啟動 VS 代碼並使用“在新進程中運行文件”運行 Julia 文件,則運行和調試窗格如下所示:

在此處輸入圖像描述

如果我隨后使用“新進程中的調試文件”再次運行相同的程序,則“運行和調試”窗格將更新如下:

在此處輸入圖像描述

我注意到的唯一其他奇怪行為是加載 Julia 語言服務器時。 我在 Julia 語言服務器中得到以下 output :

[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at 'c:\Users\Nick-PC\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\symbolstorev5'.
[ Info: Starting LS at 1659719702
[ Info: Downloading caches...
┌ Info: Couldn't retrieve cache file for Dates.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/D/Dates_ade2ca70-3891-5945-98fb-dc099432e06a/vnothing_nothing.tar.gz
[ Info: Downloading caches... (4%)
┌ Info: Couldn't retrieve cache file for TOML.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/T/TOML_fa267f1f-6049-4f14-aa54-33bafae1ed76/vnothing_nothing.tar.gz
[ Info: Downloading caches... (8%)
┌ Info: Couldn't retrieve cache file for LibCURL.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/L/LibCURL_b27032c2-a3e7-50c8-80cd-2d36dbcbfd21/vnothing_nothing.tar.gz
[ Info: Downloading caches... (12%)
┌ Info: Couldn't retrieve cache file for Mmap.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/M/Mmap_a63ad114-7e13-5084-954f-fe012c677804/vnothing_nothing.tar.gz
[ Info: Downloading caches... (15%)
┌ Info: Couldn't retrieve cache file for Markdown.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/M/Markdown_d6f4376e-aef5-505a-96c1-9c027394607a/vnothing_nothing.tar.gz
[ Info: Downloading caches... (19%)
┌ Info: Couldn't retrieve cache file for LibGit2.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/L/LibGit2_76f85450-5226-5b5a-8eaa-529ad045b433/vnothing_nothing.tar.gz
[ Info: Downloading caches... (23%)
┌ Info: Couldn't retrieve cache file for Logging.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/L/Logging_56ddb016-857b-54e1-b83d-db4d58db5568/vnothing_nothing.tar.gz
[ Info: Downloading caches... (27%)
┌ Info: Couldn't retrieve cache file for Base64.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/B/Base64_2a0f44e3-6c83-55bd-87e4-b1978d98bd5f/vnothing_nothing.tar.gz
[ Info: Downloading caches... (31%)
┌ Info: Couldn't retrieve cache file for REPL.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/R/REPL_3fa0cd96-eef1-5676-8a61-b3b8758bbffb/vnothing_nothing.tar.gz
[ Info: Downloading caches... (35%)
┌ Info: Couldn't retrieve cache file for Downloads.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/D/Downloads_f43a241f-c20a-4ad4-852c-f6b1247861c6/vnothing_nothing.tar.gz
[ Info: Downloading caches... (38%)
┌ Info: Couldn't retrieve cache file for ArgTools.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/A/ArgTools_0dad84c5-d112-42e6-8d28-ef12dabb789f/vnothing_nothing.tar.gz
[ Info: Downloading caches... (42%)
┌ Info: Couldn't retrieve cache file for Random.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/R/Random_9a3f8284-a2c9-5f02-9a11-845980a1fd5c/vnothing_nothing.tar.gz
[ Info: Downloading caches... (46%)
┌ Info: Couldn't retrieve cache file for UUIDs.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/U/UUIDs_cf7118a7-6976-5b1a-9a39-7adc72f591a4/vnothing_nothing.tar.gz
[ Info: Downloading caches... (50%)
┌ Info: Couldn't retrieve cache file for Artifacts.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/A/Artifacts_56f22d72-fd6d-98f1-02f0-08ddc0907c33/vnothing_nothing.tar.gz
[ Info: Downloading caches... (54%)
┌ Info: Couldn't retrieve cache file for Unicode.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/U/Unicode_4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5/vnothing_nothing.tar.gz
[ Info: Downloading caches... (58%)
┌ Info: Couldn't retrieve cache file for Pkg.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/P/Pkg_44cfe95a-1eb2-52ea-b672-e2afdf69b78f/vnothing_nothing.tar.gz
[ Info: Downloading caches... (62%)
┌ Info: Couldn't retrieve cache file for InteractiveUtils.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/I/InteractiveUtils_b77e0a4c-d291-57a0-90e8-8db25a27a240/vnothing_nothing.tar.gz
[ Info: Downloading caches... (65%)
┌ Info: Couldn't retrieve cache file for Sockets.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/S/Sockets_6462fe0b-24de-5631-8697-dd941f90decc/vnothing_nothing.tar.gz
[ Info: Downloading caches... (69%)
┌ Info: Couldn't retrieve cache file for Serialization.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/S/Serialization_9e88b42a-f829-5b0c-bbe9-9e923198166b/vnothing_nothing.tar.gz
[ Info: Downloading caches... (73%)
┌ Info: Couldn't retrieve cache file for Tar.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/T/Tar_a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e/vnothing_nothing.tar.gz
[ Info: Downloading caches... (77%)
┌ Info: Couldn't retrieve cache file for NetworkOptions.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/N/NetworkOptions_ca575930-c2e3-43a9-ace4-1e988b2c1908/vnothing_nothing.tar.gz
[ Info: Downloading caches... (81%)
┌ Info: Couldn't retrieve cache file for Test.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/T/Test_8dfed614-e22c-5e08-85e1-65c5234f0b40/vnothing_nothing.tar.gz
[ Info: Downloading caches... (85%)
┌ Info: Couldn't retrieve cache file for Printf.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/P/Printf_de0858da-6303-5e67-8744-51eddeeeb8d7/vnothing_nothing.tar.gz
[ Info: Downloading caches... (88%)
┌ Info: Couldn't retrieve cache file for SHA.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/S/SHA_ea8e919c-243c-51af-8825-aaa63cd721ce/vnothing_nothing.tar.gz
[ Info: Downloading caches... (92%)
┌ Info: Couldn't retrieve cache file for Libdl.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/L/Libdl_8f399da3-3557-5675-b5ff-fb832c97cbdb/vnothing_nothing.tar.gz
[ Info: Downloading caches... (96%)
┌ Info: Couldn't retrieve cache file for FileWatching.
└   exception = HTTP/1.1 404 Not Found while requesting https://www.julia-vscode.org/symbolcache/store/v1/packages/F/FileWatching_7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee/vnothing_nothing.tar.gz
[ Info: All cache files downloaded. (100%)
[ Info: Loading IJulia from cache... (0%)
┌ Warning: Pkg not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: Test not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: Random not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: Libdl not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: UUIDs not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
[ Info: Loading SoftGlobalScope from cache... (0%)
┌ Warning: REPL not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
[ Info: Loading Conda from cache... (0%)
┌ Warning: Downloads not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
[ Info: Loading JSON from cache... (0%)
┌ Warning: Dates not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
[ Info: Loading Parsers from cache... (0%)
┌ Warning: Mmap not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: Unicode not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
[ Info: Loading VersionParsing from cache... (0%)
[ Info: Loading ZMQ from cache... (0%)
┌ Warning: Sockets not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: FileWatching not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: ZeroMQ_jll not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: Base64 not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
[ Info: Loading MbedTLS from cache... (0%)
┌ Warning: MbedTLS_jll not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: MozillaCACerts_jll not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: InteractiveUtils not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: Printf not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
┌ Warning: Markdown not stored on disc
└ @ SymbolServer c:\Users\Nick-PC\.vscode\extensions\julialang.language-julia-1.6.28\scripts\packages\SymbolServer\src\SymbolServer.jl:247
[ Info: Received new data from Julia Symbol Server.

使用“新進程中的調試文件”后,我還在“任務”中得到以下 output:

Error: there is no registered task type 'julia-proc'. Did you miss installing an extension that provides a corresponding task provider?

如果使用其他兩個運行命令之一,我不會在“任務”中得到相同的 output。

問題暫未有回復.您可以查看右邊的相關問題.
2 相當於CTRL + F5的代碼(php,html等)

我正在編寫一個個人理財項目,想知道是否有與瀏覽器CTRL + F5按鍵等效的代碼? 我不只是想刷新頁面,我想強制完全刷新。 由於這只是一個個人項目,所以我並不在乎它的實現方式或所使用的語言。 謝謝 伊恩 ...

6 無法在命令行上運行 Julia

我已經下載了 Julia 但我無法在命令行上運行它。 當我在命令行上運行julia時,我收到錯誤zsh: command not found: Julia 。 我試圖添加export PATH="/Applications/Julia-1.7.app/Contents/Resources/juli ...

2022-07-24 12:10:31 0 20   julia/ zsh
7 Visual Studio F5 和 Ctrl+F5?

我這里有奇怪的問題。 我使用的是 Visual Studio 2010。當我使用F5調試代碼時,出現錯誤。 但是沒有調試( Ctrl + F5 )代碼運行良好。 那么誰能告訴我是什么問題,它們之間有什么區別以及如何克服問題? ...

8 按F5 / Ctrl + F5的圖像

我正在使用PHP建立網站。 我有一個圖像處理程序來處理圖像並緩存它們。 我的問題是,當我多次按F5鍵時,有時圖像不顯示或不緩存。 任何人都可以幫助我解決此類問題,或向我提出最佳解決方案的建議。 ...

9 如何在VS代碼中設置Julia?

我來自純粹的Windows Visual Studio編程背景,幾乎沒有Linux經驗。 似乎可以使用VS Code在Julia中編程,但我無法弄清楚如何正確設置。 有沒有人有好的示例launch.json , tasks.json或其他可以作為構建示例的文件? 在詳細的教程中看到 ...

10 Julia 與 Linux 中的 VS 代碼集成

我正在使用 Pop_os! 系統(基於 ubuntu 的系統)並且剛剛安裝了 VS Code。 我想使用 Julia 並在 VS 代碼擴展市場中安裝 Julia 擴展。 在擴展設置中,我輸入了 Julia 可執行路徑作為我安裝它的位置(在我的例子中是:/opt/julia-1.5.3-linux-x ...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2022 STACKOOM.COM