Comments (17)
Any idea when a fix will be made so it get through to VS Code? Using dnx commands are impossible through VS Code until this is corrected, making VSCode useless for targeting .NET Core on Windows.
from vscode-csharp.
There's already a pull request for the run-in-terminal package that fixes this issue on a lower level:
microsoft/run-in-terminal#2
from vscode-csharp.
@retk the PR has been merged.
Ping @DustinCampbell @davidfowl
from vscode-csharp.
And what is necessary to get this to actually be in VS Code?
from vscode-csharp.
the [email protected]
contains the fix and omnisharp ships with that version of the extension. There might be another issue somewhere along the way.
from vscode-csharp.
Omnisharp doesn't ship with run-in-terminal
-- did you mean the C# Extension?
from vscode-csharp.
Yeah, I meant the extension
from vscode-csharp.
Either way... it's not in VS Code :)
from vscode-csharp.
run-in-terminal is in package dependencies
"dependencies": {
...
"run-in-terminal": "*",
...
},
although as @jrieken mentioned there might be another issues too
from vscode-csharp.
Well, then I've opened a new issue on VS Code. If the dependencies have been fixed, then something in Code is broken.
from vscode-csharp.
And it was closed and moved back here.
Is anyone going to take this up and make sure it gets to VS Code??? I don't even know where the problem is anymore... VS Code? OmniSharp? run-in-terminal? Everyone is pointing to the other...
from vscode-csharp.
This is the right place for the bug.
from vscode-csharp.
i'll try to reproduce the issue later today with vscode 1.0 and update the issue with details.
from vscode-csharp.
Note that "dnx run" is unlikley to get fixed. We're focused on supporting ASP .NET Core RC2. When that is released, DNX will go away.
from vscode-csharp.
@DustinCampbell : yes, i'm aware of that, although the csharp package 0.3.7 still depends on run-in-terminal package. it might use this dependency for other reasons too.
I've managed to reproduce the issue with vscode 1.0. It installs csharp package 0.3.7 as extension into:
~/.vscode\extensions\ms-vscode.csharp-0.3.7
run-in-terminal package version 0.0.3 is installed as lates version of the dependency (see package.json under dependencies)
Although this version has the commited pull request the problem still exists. To fix the issue the following changes are needed:
diff --git a/lib/index.ts b/lib/index.ts
index 09c5128..e802873 100644
--- a/lib/index.ts
+++ b/lib/index.ts
@@ -60,7 +60,7 @@ function runInTerminalWin(file: string, args: string[], options: Options): Promi
'/wait',
'cmd.exe',
'/c',
- `"${file} ${args.map(escapeWinArg).join(' ') } & pause"`
+ `""${file}" ${args.map(escapeWinArg).join(' ') } & pause"`
];
and it must be recompiled with tsc.
Should I open a new issue in run-in-terminal and create a pull request?
I'm not sure if this issue must remain open here until a new version is released, or someone should open a new one somewhere else? (for eg the cshap package is affected as well)
from vscode-csharp.
FWIW, I'm planning to fix this by not using run-in-terminal at all. I think it's a bit awkward that a new terminal window is created for this operation. Instead, I'll just launch "dotnet" as a child process and capture the output and display it within VS Code.
from vscode-csharp.
This should be fixed with #238. While the "dnx run" command is no longer relevant, we have removed run-in-terminal so other commands should not exhibit this problem.
from vscode-csharp.
Related Issues (20)
- Brace completion doesn't take existing end brace into account
- Parameter help doesn't work inside of lamdas
- Reordering classes, methods and so on using Outline window
- C# Dev Kit LSP "'end' must not be less than 'start'"
- Option to disable implicitly adding `using` directives HOT 4
- C# code analysis fails to initialize with error `System.ArgumentException: filePath` HOT 1
- Request codeLens/resolve failed in git diff HOT 2
- Auto doc comment generation and other formatOnType features broken HOT 9
- Request textDocument/foo failed HOT 10
- Creating a new class under a folder in Solution Explorer does not give the class correct namespace HOT 2
- Iteration Plan for June 2024
- Please default to P2P reference HOT 1
- Standardize UI Navigation with `workbench.action.navigate` HOT 1
- test HOT 1
- If your .NET version is too old, you get no intellisense and an unhelpful error. HOT 1
- Project system ran into an unexcepted error HOT 1
- Various missing features in RazorPages in 2.31.19 HOT 1
- LSP server fails to initialize with: "Failed to find all versions of .NET Core MSBuild. Call to hostfxr_resolve_sdk2." HOT 1
- [MacOS] Unable to display source file when debugging .net dll compiled on Windows with portable pdb format and published as nuget HOT 4
- Razor code formatting is unusable when the end of line is LF
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-csharp.