Skip to content

Conversation

@jbartolotta-sfdc
Copy link
Contributor

Adds an entry for an out of memory error that can occur when scanning
large projects.

Adds an entry for an out of memory error that can occur when scanning
large projects.

### The `scanner:run` command output contains the message `'<file_name>' does not reside in a location that is included by your tsconfig.json 'include' attribute`.

The ESLint engine requires that any typescript files that are scanned must be included by the tsconfig. [More Information](https://github.com/typescript-eslint/typescript-eslint/releases/tag/v2.0.0)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The red highlighting is a github.com oddity because of the json comments above. You can view the end result here.

https://github.com/forcedotcom/sfdx-scanner/blob/d/jbartolotta/W-7802169/docs/_articles/en/troubleshooting.md


The scanner's node process runs with a default limit of 2GB of memory. This limit can be changed by configuring the `max-old-space-size` node option. The required memory will depend on the files included in the `--target` parameter. The following example increases the memory value to 4GB for a single invocation of the scanner.

```bash
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a unix example. I don't know the exact Windows syntax. I can add it if anyone knows what it would be.

@jbartolotta-sfdc jbartolotta-sfdc merged commit 209b1ec into dev Jul 9, 2020
@jbartolotta-sfdc jbartolotta-sfdc deleted the d/jbartolotta/W-7802169 branch July 13, 2020 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants