我想使用Rust和Actix-Web运行一个 Web 服务器。按照文档中的这些步骤操作后,一切都按预期工作:服务器在端口 8080 上运行。
我遇到的问题是 VSCode 显示错误
将错误悬停在 IDE 中时,工具提示中会显示此错误消息
proc 宏
main未扩展:无法为 /Users/name/Documents/projects/project-rust/target/debug/deps/libactix_web_codegen-b262af45f63000f3.dylib 创建扩展器:Io(Custom { kind: InvalidData, error: DlOpen { desc: "dlopen (/Users/name/Documents/projects/project-rust/target/debug/deps/libactix_web_codegen-b262af45f63000f3.dylib,0x000A):尝试:'/Users/name/Documents/projects/project-rust/target/debug/deps /libactix_web_codegen-b262af45f63000f3.dylib'(mach-o 文件,但是不兼容的架构(有'arm64',需要'x86_64')),'/usr/local/lib/libactix_web_codegen-b262af45f63000f3.dylib'(没有这样的文件) , '/usr/lib/libactix_web_codegen-b262af45f63000f3.dylib' (没有这样的文件)" } })
环境 - macOS 蒙特利 12.1 (M1)
我让 vscode 运行并调试 GO 代码一切正常,在我从 VSCode 中更新后,现在我无法调试,并且不断收到此错误:
could not launch process: not an executable file
Process exiting with code: 1
Run Code Online (Sandbox Code Playgroud)
配置 :
go version
go version go1.15.5 windows/amd64
dlv version
Delve Debugger
Version: 1.6.0
set GOPATH=C:\Users\foo\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 …Run Code Online (Sandbox Code Playgroud) 更新后的 vscode(2021 年 11 月(版本 1.63))Unicode 高亮#
\nvscode 突出显示相同的波斯语单词,我想将波斯语字符添加到允许的字符中。但如何呢?
\n谢谢你,如果你能帮助我
\n“字符 U+0647“\xd9\x87”可能会与字符 U+006f“o”混淆,后者在源代码中更常见。”
\n我正在尝试覆盖rfceVS 代码中的代码片段,但当存在命名文件时,我似乎无法自动填充文件名。如果文件未保存(未命名),则应该如此NameOfComponent,但如果文件已保存(有名称),则代码片段应将组件命名为与文件名相同的名称,但不带扩展名。这是我到目前为止所拥有的:
"React Component": {
"prefix": "rfce",
"body": [
"import React, { useState, useEffect } from \"react\";",
"",
"const ${1:NameOfComponent} = () => {",
" return (",
" <>",
" ${2:<div>Hello World</div>}",
" </>",
" );",
"};",
"",
"export default ${1:NameOfComponent};"
],
"description": "React Component"
}
Run Code Online (Sandbox Code Playgroud) 我在 VSCode 上使用 Jupyter Notebook,并希望在单元完成执行时收到通知。我进行了搜索,但找不到此任务的任何扩展。有办法让它发挥作用吗?
无法在我的 python 文件中运行/调试运行。我知道我在计算机上下载了 python。我知道我在 VS code 中下载了扩展。每次我尝试运行一行简单的 print("abc") 代码时,我在终端中什么也得不到,并且显示一条消息:
"Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information."
Run Code Online (Sandbox Code Playgroud)
此外
"Python extension loading..."
Run Code Online (Sandbox Code Playgroud)
而且扩展程序似乎永远无法完成加载,已经好几个小时了。
我在 Windows 下工作,该如何解决这个问题
我正在尝试在安装了wgetVSCode 服务器的 Linux VM 上安装从 Marketplace 下载的 VSIX 包,但出现以下错误:
$ wget -nv https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage -o vspackage.vsix
$ code --install-extension vspackage.vsix
Installing extensions on SSH: boozy-olive-harrier...
Corrupt ZIP: end of central directory record signature not found
Failed Installing Extensions: vscode-remote://ssh-remote%2Bboozy-olive-harrier/root/vspackage.vsix
Run Code Online (Sandbox Code Playgroud)
在 Windows 上使用 Firefox 下载文件并使用 VSCode 客户端 ( ref ) 内的“从 VSIX 安装...”按钮可以按预期工作。
我使用的网址是:https: //marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage
我比较了下载文件的 md5sum,如果我从 Windows 或 Linux 下载文件,则不会得到相同的结果:
Linux虚拟机:
wget$ wget -nv https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage
2021-02-09 16:50:08 URL:https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage [1270960/1270960] -> "vspackage" [1]
$ du -sk vspackage
1244 vspackage …Run Code Online (Sandbox Code Playgroud) 今天我注意到 VSCode 中的终端旁边绘制了一个奇怪的符号。看起来它的目的是指示下一个输入从哪里开始。我该如何关闭此功能?这让我发疯。我把所有选项都扔到了终端页面,但我什么也没看到......
显示奇怪圆圈的图像:
我长期成功的 VSCode Python 设置莫名其妙地崩溃了。
请问下面的错误是什么意思?首先推荐的Python 3.12找不到_tkinter。我尝试安装较旧的版本并得到这个。我也无法使用 pip,它说“外部管理环境”。我迷路了。
% cd /Users/ken/Teaching/Python2024 ; /usr/bin/env /opt/local/bin/python3.9 /Users/ken/.vscode/extensions/ms-python.debugpy-2023.3.13341006-darwin-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 64660 -- /Users/ken/Teaching/Python2024/turtle1.py
E+00000.193: Error while enumerating installed packages.
Traceback (most recent call last):
File "/Users/ken/.vscode/extensions/ms-python.debugpy-2023.3.13341006-darwin-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/common/log.py", line 361, in get_environment_description
report(" {0}=={1}\n", pkg.name, pkg.version)
AttributeError: 'PathDistribution' object has no attribute 'name'
Stack where logged:
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/ken/.vscode/extensions/ms-python.debugpy-2023.3.13341006-darwin-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/__main__.py", line 91, in <module>
main()
File "/Users/ken/.vscode/extensions/ms-python.debugpy-2023.3.13341006-darwin-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/__main__.py", line 21, in main
log.describe_environment("debugpy.launcher …Run Code Online (Sandbox Code Playgroud) python ×3
actix-web ×1
c# ×1
debugging ×1
go ×1
marketplace ×1
pip ×1
python-3.x ×1
rust ×1
zip ×1