| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@varungandhi-src This broke our integration: $ yarn global add @sourcegraph/scip-python $ NODE_OPTIONS="--max_old_space_size=8192" scip-python index /usr/bin/env: ‘node --enable-source-maps’: No such file or directory /usr/bin/env: use -[v]S to pass options in shebang lines Shouldn't this be /usr/bin/env -S <...>? What's the intended way to invoke this? |
Sorry, something went wrong.
|
Hmm, I thought I tested that locally. Double-checking; will cut a new release with a fix. |
Sorry, something went wrong.
`env` on different systems behaves differently. On macOS, `env ABC XYZ` will invoke ABC with argument XYZ. On some Linux variants, you need `env -S ABC XYZ` for that. On Alpine, the `-S` flag is not supported, and there is seemingly no way of passing arguments. So this patch undoes the accidental breakage in #179 and uses the `getSourceMapsSupport` API. Technically, both `process.setSourceMapsEnabled` and `module.setSourceMapsSupport` are experimental functions, so to be safe, we do a dynamic existence check before calling them for portability across Node versions.
|
@efritz this should be fixed in the 0.6.2 release. I checked using Docker. Let me know if you're still hitting issues. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
We need to pass --enable-source-maps when launching node,
because Node will not use source maps (even if present) by default.
Additionally, let's avoid the divergence in settings across development
and production.