getappmap / getappmap/appmap-js

CLI ships with optional chaining operators, unsupported by Node 12

Open
#416 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
53
Forks
18
Avg merge
3d 18h
Merged PRs (30d)
8

Description

bundle exec rake appmap:swagger
rake aborted!
AppMap::CommandError: Command failed: ["node", "/Users/ptrdvrk/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/appmap-0.65.1/node_modules/@appland/appmap/src/cli.js", "swagger"]; stderr: /Users/ptrdvrk/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/appmap-0.65.1/node_modules/@appland/appmap/src/agentInstaller/javaAgentInstaller.js:160
stderr:       projectSection?.appendChild(doc.createElement('build'));
stderr:                      ^
stderr:
stderr: SyntaxError: Unexpected token .
stderr:     at Module._compile (internal/modules/cjs/loader.js:703:23)
stderr:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
stderr:     at Module.load (internal/modules/cjs/loader.js:628:32)
stderr:     at Function.Module._load (internal/modules/cjs/loader.js:555:12)
stderr:     at Module.require (internal/modules/cjs/loader.js:666:19)
stderr:     at require (internal/modules/cjs/helpers.js:16:16)
stderr:     at Object.<anonymous> (/Users/ptrdvrk/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/appmap-0.65.1/node_modules/@appland/appmap/src/cli.js:31:28)
stderr:     at Module._compile (internal/modules/cjs/loader.js:759:30)
stderr:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
stderr:     at Module.load (internal/modules/cjs/loader.js:628:32)
/Users/ptrdvrk/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
/Users/ptrdvrk/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
Tasks: TOP => appmap:swagger
(See full trace by running task with --trace)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with bundle exec rake appmap:swagger, then inspect node_modules/@appland/appmap/src/agentInstaller/javaAgentInstaller.js around line 160 and the CLI entry point mentioned in the trace. Done means the Swagger task loads and runs successfully under Node 12 without an unsupported syntax error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.