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

Supportable JS project dependencies are detected correctly #711

Closed
brikelly opened this issue Jun 5, 2023 · 6 comments · Fixed by #712
Closed

Supportable JS project dependencies are detected correctly #711

brikelly opened this issue Jun 5, 2023 · 6 comments · Fixed by #712

Comments

@brikelly
Copy link
Contributor

brikelly commented Jun 5, 2023

Our installer is not correctly detecting bona fide supportable JS projects. It should additionally look in files like yarn.lock or package-lock.json.

@kgilpin
Copy link
Contributor

kgilpin commented Jun 5, 2023 via email

@dividedmind
Copy link
Contributor

Yes, do we have an example?

@brikelly brikelly changed the title JS projects are detected correctly Supportable JS project dependencies are detected correctly Jun 5, 2023
@brikelly
Copy link
Contributor Author

brikelly commented Jun 6, 2023

@dividedmind not to my mind, but I know it has been reported. I believe correct detection of Next.js / Express is particularly difficult due to this issue, if that helps.

@kgilpin
Copy link
Contributor

kgilpin commented Jun 6, 2023

We need to find Express, jest and mocha in package-lock.json and yarn.lock.

That’s all it is!

@dividedmind dividedmind transferred this issue from getappmap/appmap-js Jun 7, 2023
@dividedmind
Copy link
Contributor

Corresponding intellij issue: getappmap/appmap-intellij-plugin#294

dividedmind added a commit that referenced this issue Jun 7, 2023
Sometimes supported web or test frameworks are not direct
dependencies of the project but instead are transitively pulled
by another one; this is especially common with express.js.

AppMap should still work correctly with most of these projects.
To make this use case easier, make sure to look in package-lock.json
and yaml.lock in the project support detection in addition to package.json.

Fixes #711
dividedmind added a commit that referenced this issue Jun 9, 2023
Sometimes supported web or test frameworks are not direct
dependencies of the project but instead are transitively pulled
by another one; this is especially common with express.js.

AppMap should still work correctly with most of these projects.
To make this use case easier, make sure to look in package-lock.json
and yaml.lock in the project support detection in addition to package.json.

Fixes #711
dividedmind added a commit that referenced this issue Jun 9, 2023
Sometimes supported web or test frameworks are not direct
dependencies of the project but instead are transitively pulled
by another one; this is especially common with express.js.

AppMap should still work correctly with most of these projects.
To make this use case easier, make sure to look in package-lock.json
and yaml.lock in the project support detection in addition to package.json.

Fixes #711
appland-release pushed a commit that referenced this issue Jun 15, 2023
# [0.86.0](v0.85.0...v0.86.0) (2023-06-15)

### Features

* add run and test configs for java users ([8ffacbe](8ffacbe))
* command to download latest java agent jar ([8cc8966](8cc8966))
* commands to update launch and test configs ([e5e1aeb](e5e1aeb))
* download latest java agent jar file ([5e8c694](5e8c694))
* Look for JavaScript dependencies in lockfiles ([face65f](face65f)), closes [#711](#711)
@appland-release
Copy link
Contributor

🎉 This issue has been resolved in version 0.86.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

4 participants