Skip to content
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

Debugging in .NET devfile does not work #14090

Closed
5 of 23 tasks
amisevsk opened this issue Jul 31, 2019 · 2 comments
Closed
5 of 23 tasks

Debugging in .NET devfile does not work #14090

amisevsk opened this issue Jul 31, 2019 · 2 comments
Assignees
Labels
area/editor/theia Issues related to the che-theia IDE of Che area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. status/open-for-dev An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it.
Milestone

Comments

@amisevsk
Copy link
Contributor

Describe the bug

It does not appear to be possible to debug the sample hello world app included with the devfile in the .NET devfile.

Attempting to add configuration

{
  "type": "netcoredbg",
  "request": "launch",
  "program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/web.dll",
  "args": [],
  "name": ".NET Core Launch (console)",
  "stopAtEntry": false,
  "console": "internalConsole"
}

as suggested gives the error:

Exception thrown: 'Microsoft.DotNet.Cli.Utils.CommandUnknownException' in Microsoft.DotNet.Cli.Utils.dll
No executable found matching command "dotnet-/projects/bin/Debug/netcoreapp2.0/web.dll"

It appears that something is prefixing dotnet- to the executable; even with an absolute path for "program", the error

Exception thrown: 'Microsoft.DotNet.Cli.Utils.CommandUnknownException' in Microsoft.DotNet.Cli.Utils.dll
No executable found matching command "dotnet-/projects/dotnet-web-simple/bin/Debug/netcoreapp2.0/web.dll"

is logged.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Start .NET core workspace from devfile
  2. (unsure if necessary) Do workaround suggested in Theia Omnisharp Plugin doesn't detect new projects  #13739 (run "update dependencies task" and restart workspace or omnisharp container)
  3. Add debug config suggested above (or use intellisense to auto-generate it
  4. Attempt to run debug config.

Expected behavior

Theia launches app and starts debugging

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Installation method

  • chectl
  • che-operator
  • minishift-addon
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
      • OpenShift dev cluster
  • other: please specify

Additional context

@amisevsk amisevsk added kind/bug Outline of a bug - must adhere to the bug report template. area/editor/theia Issues related to the che-theia IDE of Che status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jul 31, 2019
@slemeur slemeur added area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. and removed kind/bug Outline of a bug - must adhere to the bug report template. status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jul 31, 2019
@slemeur slemeur added this to the 7.1.0 milestone Jul 31, 2019
@slemeur slemeur added severity/P1 Has a major impact to usage or development of the system. and removed severity/P2 Has a minor but important impact to the usage or development of the system. labels Jul 31, 2019
@slemeur
Copy link
Contributor

slemeur commented Jul 31, 2019

@tolusha : Can you please check this issue

@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Aug 1, 2019
@benoitf benoitf added status/open-for-dev An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Aug 1, 2019
@slemeur
Copy link
Contributor

slemeur commented Aug 2, 2019

As fixes are ready. I'm labelling this in 7.0

@slemeur slemeur modified the milestones: 7.1.0, 7.0.0 Aug 2, 2019
@svor svor self-assigned this Aug 5, 2019
@svor svor closed this as completed Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. status/open-for-dev An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it.
Projects
None yet
Development

No branches or pull requests

6 participants