Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Unable to use with appsody applications in vscode #5

Closed
csantanapr opened this issue Sep 23, 2019 · 2 comments
Closed

Unable to use with appsody applications in vscode #5

csantanapr opened this issue Sep 23, 2019 · 2 comments

Comments

@csantanapr
Copy link

Using VSCode Codewind node.js profiler with appsody app it doesn't highlights the code with profiling metadata

Steps to reproduce:

  • create appsody app
appsody init nodejs-express
  • Add app to codewind workspace
  • Right click on app select Open Performance Dashboard
  • Run a Load Test
  • Verify files are generated in root directory
tree load-test                                 
load-test
├── 20190923221512
│   ├── metrics.json
│   └── profiling.json
├── 20190923221649
│   ├── metrics.json
│   └── profiling.json
└── config.json
  • Open app.js go to line 3 and 4
const app = require('express')()

app.get('/', (req, res) => {
  res.send("Hello from Appsody!");
});

module.exports.app = app;

Problem:
No performance/profiling metada shows up

I think it doesn't work because the profile file load-test/###/profiling.json has the file path starting in /project/user-app/app.js and the /parent/user-app doesn't exist in the appsody root directory for the app locally in vscode

      {
        "self": 1702,
        "parent": 1701,
        "file": "/project/user-app/app.js",
        "name": "app.get",
        "line": 3,
        "count": 3
      },

The root of the appsody app only contains app.js and package.json

@csantanapr
Copy link
Author

I tried replacing /project/user-app/app.js with /app.js in all the profiling.json files, and I still don't get any metadata when open app.js and hover the mouse or put the cursor on lines 3 or 4

@tetchel
Copy link

tetchel commented Sep 24, 2019

Issue moved to eclipse/codewind #533 via ZenHub

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants