Search the existing issues before logging a new one.
Some search tips:
- Don't restrict your search to only open issues. An issue with a title similar to yours may have been closed as a duplicate of one with a less-findable title.
- Check for synonyms.
- Search for the title of the issue you're about to log. This sounds obvious but 80% of the time this is sufficient to find a duplicate when one exists.
- Read more than the first page of results. Many bugs here use the same words so relevancy sorting is not particularly strong.
- If you have a crash, search for the first few topmost function names shown in the call stack.
When logging a bug, please be sure to include the following:
- What version of Brisk you're using (run
Brisk --v
) - If at all possible, an isolated way to reproduce the behavior
- The behavior you expect to see, and the actual behavior
In general, things we find useful when reviewing suggestions are:
- A description of the problem you're trying to solve
- An overview of the suggested solution
- Examples of how the suggestion would work in various places
- Code examples showing e.g. "this would be an error, this wouldn't"
- Code examples showing the generated wasm (if applicable)
- If relevant, precedent in other languages can be useful for establishing context and expected behavior
When making a new issue name it using the following spec:
- if it is related to the standard libary name it as such
stdlib(<module>): <topic>
- if it is related a fix
fix(<stage>): <topic>
- if it is related a new feature
feat(<stage>): <topic>
- if it is related to the runtime
runtime(<stage>): <topic>
- A bug or feature you want to work on!
- A GitHub account.
- A copy of the Brisk code. See the next steps for instructions.
- Node, which runs JavaScript locally. Current or LTS will both work.
- An editor. VS Code is the best place to start for Brisk.
- Install node using the version you downloaded from nodejs.org.
- Open a terminal.
- Make a fork—your own copy—of Brisk on your GitHub account, then make a clone—a local copy—on your computer. (Here are some step-by-step instructions).
- Install the gulp command line tool:
yarn global add gulp-cli
- Change to the TypeScript folder you made:
cd Brisk
- Install dependencies:
yarn
- Make sure everything builds and tests pass:
yarn build
- Open the Brisk folder in your editor.
- Follow the directions below to add and debug a test.
Run yarn build
to build a version of the compiler/language service that reflects changes you've made. You can then run yarn run
or yarn start
to build and run in place of brisk
in your project.
Brisk is currently accepting contributions in the form of bug fixes. A bug must have an issue tracking it in the issue tracker that has been approved (labelled "help wanted" or in the "Backlog milestone") by the Brisk team. Your pull request should include a link to the bug that you are fixing. If you've submitted a PR for a bug, please post a comment in the bug to avoid duplication of effort.
Features (things that add new or improved functionality to Brisk) may be accepted, but will need to first be approved (labelled "help wanted" or in the "Backlog" milestone) by a Brisk project maintainer in the suggestion issue. Features with language design impact, or that are adequately satisfied with external tools, will not be accepted.
Your pull request should:
- Include a description of what your change intends to do
- Be based on reasonably recent commit in the main branch
- Include adequate tests
- At least one test should fail in the absence of your non-test code changes. If your PR does not match this criteria, please specify why
- Tests should include reasonable permutations of the target fix/change
- Include baseline changes with your change
- To avoid line ending issues, set
autocrlf = input
andwhitespace = cr-at-eol
in your git configuration
To run all tests, invoke the yarn test
:
yarn start-tests
To add a new test case, add a .ts
file in ./tests/test
with code that shows the bug is now fixed, or your new feature now works.