-
Notifications
You must be signed in to change notification settings - Fork 705
[O# Parity] Support dotnet script (.csx) files #6411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ran into this issue tonight. I had to add the following change to vscode settings {
"dotnet.server.useOmnisharp": true
} Then I disabled the Dev Kit extension for a specific workspace where I'm writing dotnet script files. Doing this only affects that workspace and leaves the DevKit extension enabled globally for other workspaces where I'm writing typical libs or apps. Once I disable the extension and reloaded vscode, it downloaded omnisharp. Then I had to reload vscode and restart the omnisharp server to get intellisense working. Ideally it shouldn't require any configuration on the user's part to use dotnet script, but the above seems to work for now. |
CSX support is still missing from the new server, for now the workaround is to set |
I'm having a similar issue as well, and the above workaround does work. However, the resulting inconsistencies in the configuration behavior of the global project are unacceptable, and it is hoped that the configuration behavior of the script mode and the development mode can be unified. |
Can the Omnisharp commands be re-added, notably when |
Another possible partial-workaround (if you don't want to disable devkit): adding any I added Omnisharp is not installed in vscode, nor anywhere else. Some intellisense Stuff works:
Quite a few things don't work at all:
Without "#r" not intellisense |
Do you know where I can find a bit more information on the usage of |
It's used to load DLLs. It's documented here and there as a side-note.
You'll find more by googling these searchwords https://www.google.com/search?q=c%23+script+%22r%23%22+directive |
Type: Bug
Issue Description
Steps to Reproduce
md scripting
cd scripting
dotnet script init
bye.csx
Console.WriteLine("test");
Expected Behavior
The syntax highlighting works for file
bye.csv
Actual Behavior
Request textDocument/signatureHelp failed
appearsLogs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.82.2
C# Extension: 2.1.2
Using OmniSharp: false
Dotnet Information
Error running dotnet --info: Error: Command failed: C:\Program Files\dotnet\dotnet.exe --info 'C:\Program' is not recognized as an internal or external command, operable program or batch file.'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Visual Studio Code Extensions
Extension version: 2.1.2
VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.19044
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: