Giter VIP home page Giter VIP logo

Comments (17)

jtsom avatar jtsom commented on June 18, 2024 1

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.

attilaersek avatar attilaersek commented on June 18, 2024

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.

egamma avatar egamma commented on June 18, 2024

@retk the PR has been merged.

Ping @DustinCampbell @davidfowl

from vscode-csharp.

jtsom avatar jtsom commented on June 18, 2024

And what is necessary to get this to actually be in VS Code?

from vscode-csharp.

jrieken avatar jrieken commented on June 18, 2024

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.

DustinCampbell avatar DustinCampbell commented on June 18, 2024

Omnisharp doesn't ship with run-in-terminal -- did you mean the C# Extension?

from vscode-csharp.

jrieken avatar jrieken commented on June 18, 2024

Yeah, I meant the extension

from vscode-csharp.

jtsom avatar jtsom commented on June 18, 2024

Either way... it's not in VS Code :)

from vscode-csharp.

attilaersek avatar attilaersek commented on June 18, 2024

run-in-terminal is in package dependencies

  "dependencies": {
   ...
    "run-in-terminal": "*",
   ...
  },

although as @jrieken mentioned there might be another issues too

from vscode-csharp.

jtsom avatar jtsom commented on June 18, 2024

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.

jtsom avatar jtsom commented on June 18, 2024

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.

DustinCampbell avatar DustinCampbell commented on June 18, 2024

This is the right place for the bug.

from vscode-csharp.

attilaersek avatar attilaersek commented on June 18, 2024

i'll try to reproduce the issue later today with vscode 1.0 and update the issue with details.

from vscode-csharp.

DustinCampbell avatar DustinCampbell commented on June 18, 2024

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.

attilaersek avatar attilaersek commented on June 18, 2024

@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.

DustinCampbell avatar DustinCampbell commented on June 18, 2024

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.

DustinCampbell avatar DustinCampbell commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.