diff --git a/.eslintrc.yaml b/.eslintrc.yaml
new file mode 100644
index 000000000..c34fe2339
--- /dev/null
+++ b/.eslintrc.yaml
@@ -0,0 +1,40 @@
+overrides:
+ - files:
+ - "src/octoprint/static/js/app/**"
+ env:
+ browser: true
+ jquery: true
+ parserOptions:
+ ecmaVersion: 5
+ rules:
+ es5/no-arrow-functions: error
+ es5/no-binary-and-octal-literals: error
+ es5/no-block-scoping: error
+ es5/no-classes: error
+ es5/no-computed-properties: error
+ es5/no-default-parameters: error
+ es5/no-destructuring: error
+ es5/no-exponentiation-operator: error
+ es5/no-for-of: error
+ es5/no-generators: error
+ es5/no-modules: error
+ es5/no-object-super: error
+ es5/no-rest-parameters: error
+ es5/no-shorthand-properties: error
+ es5/no-spread: error
+ es5/no-template-literals: error
+ es5/no-typeof-symbol: error
+ es5/no-unicode-code-point-escape: error
+ es5/no-unicode-regex: error
+ - files:
+ - "tests/cypress/**"
+ env:
+ node: true
+ es6: true
+ cypress/globals: true
+ extends:
+ - "plugin:cypress/recommended"
+
+plugins:
+ - eslint-plugin-es5
+ - cypress
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
index 0f76418a2..000000000
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,135 +0,0 @@
----
-name: Bug report
-about: Create a report to help improve OctoPrint
-
----
-
-
-
-#### What were you doing?
-
-
-
-1. Go to '...'
-2. Click on '....'
-3. Scroll down to '....'
-4. See error
-
-
-
-#### What did you expect to happen?
-
-#### What happened instead?
-
-#### Did the same happen when running OctoPrint in safe mode?
-
-
-
-#### Version of OctoPrint
-
-
-
-#### Operating System running OctoPrint
-
-
-
-#### Printer model & used firmware incl. version
-
-
-
-#### Browser and version of browser, operating system running browser
-
-
-
-#### Link to octoprint.log
-
-
-
-#### Link to contents of terminal tab or serial.log
-
-
-
-#### Link to contents of Javascript console in the browser
-
-
-
-#### Screenshot(s)/video(s) showing the problem:
-
-
-
-I have read the FAQ.
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 000000000..7b78ced9a
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,130 @@
+name: ๐ Report a bug
+description: Create a bug report to help improve OctoPrint
+body:
+ - type: markdown
+ attributes:
+ value: >
+ **Thank you for wanting to report a bug in OctoPrint!**
+
+
+ If this is the first time you are doing this, please take a few moments to read
+ through the [Contribution Guidelines](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md).
+ Also check out [the FAQ](https://faq.octoprint.org) if your
+ problem is maybe already covered there.
+
+
+ You are about to report a bug in **OctoPrint**. Do not proceed if your issues
+ occurs with OctoPi, any third party OctoPrint plugins, unofficial or outdated
+ OctoPrint versions. If you are unsure of the difference between OctoPrint and
+ OctoPi, [read this FAQ entry](https://faq.octoprint.org/octoprint-vs-octopi).
+
+
+ Do also not seek support here ("I need help with ...", "I have a
+ question ...", "Can someone walk me through ..."), that belongs into the
+ [community forum at community.octoprint.org](https://community.octoprint.org) or on the [Discord server](https://discord.octoprint.org).
+
+
+ And finally, make sure any bug you want to report is still present with the **current**
+ OctoPrint version and that it does not vanish when you start OctoPrint
+ in [safe mode](https://docs.octoprint.org/en/master/features/safemode.html) either.
+
+
+ Thank you for your collaboration!
+ - type: textarea
+ attributes:
+ label: The problem
+ description: >-
+ Describe the issue you are experiencing here. Tell us what you were trying to do
+ step by step, and what happened that you did not expect.
+
+ Provide a clear and concise description of what the problem is and include as many
+ details as possible.
+ placeholder: |
+ 1. ...
+ 2. ...
+ 3. ...
+ validations:
+ required: true
+ - type: dropdown
+ attributes:
+ label: Did the issue persist even in safe mode?
+ description: >-
+ Testing in safe mode is required to make sure the issue you are reporting is not
+ caused by a third party plugin. Please see [here](https://docs.octoprint.org/en/master/features/safemode.html)
+ on how to run OctoPrint in safe mode.
+ options:
+ - Yes, it did persist
+ - No, it did not persist (it's an issue with one of your installed plugins, don't report here)
+ - I cannot test this issue in safe mode (state why below)
+ validations:
+ required: true
+ - type: input
+ attributes:
+ label: If you could not test in safe mode, please state why
+ description: >-
+ Issues caused by a third party plugin are a major cause of bugs reported here, so we really need to
+ rule out that a plugin is at fault here. [Safe mode](https://docs.octoprint.org/en/master/features/safemode.html) is an easy way to do that. Only skip safe mode
+ if your particular problem *absolutely requires* third party plugins to be enabled. "It would take
+ too long" is **not** a reason to skip testing in safe mode, neither is "I do not know how to
+ enable it" as you can find info on that [here](https://docs.octoprint.org/en/master/features/safemode.html).
+
+ If you really *cannot* test in safe mode, leave a short explanation as to why.
+ - type: markdown
+ attributes:
+ value: |
+ ## Environment
+ - type: input
+ attributes:
+ label: Version of OctoPrint
+ description: Can be found in the lower left corner of the web interface.
+ validations:
+ required: true
+ - type: input
+ attributes:
+ label: Operating system running OctoPrint
+ description: >-
+ OctoPi, Linux, Windows, MacOS, something else? With version please? OctoPi's
+ version can be found in `/etc/octopi_version` or in the lower left corner of the
+ web interface.
+ validations:
+ required: true
+ - type: input
+ attributes:
+ label: Printer model & used firmware incl. version
+ description: If applicable, always include if unsure
+ - type: input
+ attributes:
+ label: Browser and version of browser, operating system running browser
+ description: If applicable, always include if unsure
+ - type: markdown
+ attributes:
+ value: |
+ ## Logs and other files needed for analysis
+ - type: markdown
+ attributes:
+ value: >-
+ Please also be sure to upload the following files below:
+
+ * Systeminfo Bundle: See [here](https://community.octoprint.org/t/what-is-a-systeminfo-bundle-and-how-can-i-obtain-one/29887) if you don't know where to find that. Just attach down below as-is. Note that you'll need at least OctoPrint 1.6.0 for this to be available - we no longer accept bug reports created for older versions than this.
+ * If you are reporting an issue that involves communicating with you printer, **be sure to enable `serial.log` before reproducing and creating the Systeminfo Bundle**!
+ * Your browser's JavaScript console, if you are reporting a problem with the
+ user interface. See [here](https://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers) on where to find that.
+ * If possible, screenshots or videos showing the problem, especially if you
+ are reporting a problem with the user interface!
+ * GCODE files with which to reproduce, if you are reporting an issue with
+ GCODE file analysis or printing behaviour.
+
+ Please be aware that unless at least Systeminfo Bundle is included, your bug report
+ will not be processed and closed after a while.
+ - type: checkboxes
+ attributes:
+ label: Checklist of files to include below
+ options:
+ - label: Systeminfo Bundle (always include!)
+ required: true
+ - label: Contents of the JavaScript browser console (always include in cases of issues with the user interface)
+ - label: Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
+ - label: GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)
+ - type: textarea
+ attributes:
+ label: Additional information & file uploads
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index eb9fb4bd9..ed748bff5 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -1,4 +1,7 @@
contact_links:
- - name: Have questions or need support?
+ - name: ๐ค Have questions or need support?
url: https://community.octoprint.org
- about: Please get in touch on the OctoPrint Community Forum!
+ about: Please get in touch on the OctoPrint Community Forums!
+ - name: ๐ธ Want to donate?
+ url: https://support.octoprint.org
+ about: Please take a look at the various options to support OctoPrint's development financially!
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
deleted file mode 100644
index cd4966224..000000000
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-name: Feature request
-about: Suggest an idea for this project
-title: '[Request]'
-
----
-
-
-
-**Is your feature request related to a problem? Please describe.**
-A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
-
-**Describe the solution you'd like**
-A clear and concise description of what you want to happen.
-
-**Describe alternatives you've considered**
-A clear and concise description of any alternative solutions or features you've considered.
-
-**Additional context**
-Add any other context or screenshots about the feature request here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 000000000..aea43bdef
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,34 @@
+name: โจ Request a feature
+description: Request a new feature to implement in OctoPrint
+title: "[Request]"
+body:
+ - type: markdown
+ attributes:
+ value: >
+ **Thank you for wanting to request a feature in OctoPrint!**
+
+
+ Before you go ahead with your request, please first consider if it wouldn't be
+ better suited for a plugin. As a general rule of thumb, any feature that is only
+ of interest to a small sub group should be moved into a plugin. Only such features
+ that are of interest to a majority of OctoPrint's users will be implemented as
+ part of the core itself.
+
+ - type: textarea
+ attributes:
+ label: Is your feature request related to a problem? Please describe.
+ description: A clear and concise description of what the problem is. Eg, "I'm always frustrated when [...]".
+ - type: textarea
+ attributes:
+ label: Describe the solution you'd like
+ description: A clear and concise description of what you want to happen. Explain why it needs to be included in OctoPrint's core and can't become a plugin.
+ validations:
+ required: true
+ - type: textarea
+ attributes:
+ label: Describe alternatives you've considered
+ description: A clear and concise description of any alternative solutions or features you've considered.
+ - type: textarea
+ attributes:
+ label: Additional context
+ description: Add any other context or screenshots about the feature request here.
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0e0ecd233..7f6f9689f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,9 +2,8 @@ name: Build
on:
push:
pull_request:
- types: [opened, sychronize, reopened]
release:
- types: [published, prereleased]
+ types: [published]
workflow_dispatch:
jobs:
@@ -31,8 +30,8 @@ jobs:
name: dist
path: dist
- lint-black:
- name: ๐งน black
+ pre-commit:
+ name: ๐งน Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -43,63 +42,15 @@ jobs:
- name: ๐ Set up dev dependencies
run: |
pip install -e .[develop]
- - name: ๐ Run black
+ - name: ๐ Run pre-commit
run: |
- pre-commit run --hook-stage manual black --all-files --show-diff-on-failure
-
- lint-prettier:
- name: ๐งน prettier
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: ๐ Set up Python 3.7
- uses: actions/setup-python@v1
- with:
- python-version: 3.7
- - name: ๐ Set up dev dependencies
- run: |
- pip install -e .[develop]
- - name: ๐ Run prettier
- run: |
- pre-commit run --hook-stage manual prettier --all-files --show-diff-on-failure
-
- lint-isort:
- name: ๐งน isort
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: ๐ Set up Python 3.7
- uses: actions/setup-python@v1
- with:
- python-version: 3.7
- - name: ๐ Set up dev dependencies
- run: |
- pip install -e .[develop]
- - name: ๐ Run isort
- run: |
- pre-commit run --hook-stage manual isort --all-files --show-diff-on-failure
-
- lint-flake8:
- name: ๐งน Flake8
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: ๐ Set up Python 3.7
- uses: actions/setup-python@v1
- with:
- python-version: 3.7
- - name: ๐ Set up dev dependencies
- run: |
- pip install -e .[develop]
- - name: ๐ Run flake8
- run: |
- pre-commit run --hook-stage manual flake8 --all-files
+ pre-commit run --all-files --show-diff-on-failure
test-unit:
name: ๐งช Unit tests
strategy:
matrix:
- python: ["2.7", "3.7", "3.8"]
+ python: ["2.7", "3.7", "3.8", "3.9"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -119,7 +70,7 @@ jobs:
needs: build
strategy:
matrix:
- python: ["2.7", "3.7", "3.8"]
+ python: ["2.7", "3.7", "3.8", "3.9"]
installable: ["wheel", "sdist"]
runs-on: ubuntu-latest
steps:
@@ -192,10 +143,7 @@ jobs:
name: ๐ฆ Publish on TestPyPI
if: github.event_name == 'release'
needs:
- - lint-black
- - lint-prettier
- - lint-isort
- - lint-flake8
+ - pre-commit
- test-unit
- test-install
- test-e2e
diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml
index 0ba8b6f44..fb59a7d97 100644
--- a/.github/workflows/issue_automation.yml
+++ b/.github/workflows/issue_automation.yml
@@ -63,7 +63,7 @@ jobs:
})
}
- - uses: OctoPrint/actions/issue-validation@main
- if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'edited')
- with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
+ #- uses: OctoPrint/actions/issue-validation@main
+ # if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'edited')
+ # with:
+ # repo-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/linkify_bundles.yml b/.github/workflows/linkify_bundles.yml
new file mode 100644
index 000000000..9e0553891
--- /dev/null
+++ b/.github/workflows/linkify_bundles.yml
@@ -0,0 +1,54 @@
+name: "Linkify systeminfo bundles"
+on:
+ issue_comment:
+ types: [created, edited]
+
+jobs:
+ linkifyBundles:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/github-script@v2
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ script: |
+ let comment = context.payload.comment.body;
+
+ const botMarker = "";
+ const botWasHere = comment.indexOf(botMarker);
+ if (botWasHere !== -1) {
+ comment = comment.substring(0, botWasHere);
+ };
+
+ const bundleRegex = /\[(octoprint-systeminfo-\d{14}\.zip)\]\(([^)]+)\)/g;
+
+ const bundles = [];
+ const seen = [];
+ const matches = comment.matchAll(bundleRegex);
+ for (const match of matches) {
+ if (!seen.includes(match[1])) {
+ bundles.push({filename: match[1], link: match[2], match: match[0]});
+ seen.push(match[1]);
+ }
+ };
+
+ if (bundles.length > 0) {
+ let text = comment + botMarker + "\n\n---\n\n\nBundles:\n\n";
+ bundles.forEach((bundle) => {
+ text += " * [" + bundle.filename + "](https://bundleviewer.octoprint.org/?url=" + encodeURIComponent(bundle.link) + ")\n"
+ });
+ text += "\n*edited by @github-actions to add bundle viewer links*\n";
+
+ github.issues.updateComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ comment_id: context.payload.comment.id,
+ body: text
+ });
+ } else if (botWasHere !== -1) {
+ github.issues.updateComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ comment_id: context.payload.comment.id,
+ body: comment
+ });
+ }
diff --git a/.github/workflows/nightly_merge.yml b/.github/workflows/nightly_merge.yml
new file mode 100644
index 000000000..4d54ff64c
--- /dev/null
+++ b/.github/workflows/nightly_merge.yml
@@ -0,0 +1,33 @@
+name: "Nightly merge"
+
+on:
+ schedule:
+ - cron: "0 0 * * *"
+ workflow_dispatch:
+
+jobs:
+ nightly-merge:
+ runs-on: ubuntu-latest
+ steps:
+ - name: โฌ Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: ๐ Merge master into maintenance
+ uses: robotology/gh-action-nightly-merge@v1.3.2
+ with:
+ stable_branch: "master"
+ development_branch: "maintenance"
+ allow_ff: false
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ #- name: ๐ Merge maintenance into devel
+ # uses: robotology/gh-action-nightly-merge@v1.3.2
+ # with:
+ # stable_branch: "maintenance"
+ # development_branch: "devel"
+ # allow_ff: false
+ # env:
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml
index 578737033..ba2dc5875 100644
--- a/.github/workflows/test_install.yml
+++ b/.github/workflows/test_install.yml
@@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
- python: ["2.7", "3.7", "3.8"]
+ python: ["2.7", "3.7", "3.8", "3.9"]
branch: ["master"]
runs-on: ${{ matrix.os }}
steps:
@@ -49,7 +49,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
- python: ["2.7", "3.7", "3.8"]
+ python: ["2.7", "3.7", "3.8", "3.9"]
runs-on: ${{ matrix.os }}
steps:
- name: ๐ Determine latest release
diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml
index a3a8fea9d..1a86bb0c6 100644
--- a/.github/workflows/trigger_docker.yml
+++ b/.github/workflows/trigger_docker.yml
@@ -12,7 +12,7 @@ on:
jobs:
dispatch_releases:
runs-on: ubuntu-latest
- if: github.event_name != 'push'
+ if: github.repository == 'OctoPrint/OctoPrint' && github.event_name != 'push'
steps:
- name: ๐ Repository Dispatch
uses: peter-evans/repository-dispatch@v1
@@ -24,7 +24,7 @@ jobs:
dispatch_canary:
runs-on: ubuntu-latest
- if: github.event_name == 'push' && github.ref == 'refs/heads/maintenance'
+ if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/maintenance'
steps:
- name: ๐ Repository Dispatch
uses: peter-evans/repository-dispatch@v1
@@ -36,7 +36,7 @@ jobs:
dispatch_bleeding:
runs-on: ubuntu-latest
- if: github.event_name == 'push' && github.ref == 'refs/heads/devel'
+ if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/devel'
steps:
- name: ๐ Repository Dispatch
uses: peter-evans/repository-dispatch@v1
diff --git a/.github/workflows/trigger_docs.yml b/.github/workflows/trigger_docs.yml
index 6a4fc565c..492d5ef5b 100644
--- a/.github/workflows/trigger_docs.yml
+++ b/.github/workflows/trigger_docs.yml
@@ -9,6 +9,7 @@ on:
jobs:
trigger:
runs-on: ubuntu-latest
+ if: github.repository == 'OctoPrint/OctoPrint'
steps:
- name: ๐ Repository Dispatch
uses: peter-evans/repository-dispatch@v1
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ea54569cb..26e4d5b16 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -11,18 +11,15 @@ repos:
- id: check-toml
- id: check-merge-conflict
- id: fix-encoding-pragma
+ - repo: https://github.com/asottile/pyupgrade
+ rev: v2.10.0
+ hooks:
+ - id: pyupgrade
- repo: https://github.com/OctoPrint/codemods
rev: devel
hooks:
- - id: codemod_dict_to_literal
- args: ["--ignore", "src/octoprint/vendor"]
- stages: ["manual"]
- - id: codemod_set_to_literal
- args: ["--ignore", "src/octoprint/vendor"]
- stages: ["manual"]
- id: codemod_not_in
args: ["--ignore", "src/octoprint/vendor"]
- stages: ["manual"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.5.4
hooks:
@@ -42,3 +39,13 @@ repos:
rev: v2.1.2
hooks:
- id: prettier
+ - repo: https://github.com/pre-commit/mirrors-eslint
+ rev: v7.19.0
+ hooks:
+ - id: eslint
+ additional_dependencies:
+ - eslint@7.19.0
+ - eslint-plugin-es5@v1.3.0
+ - eslint-plugin-cypress@2.11.2
+ files: \.js$
+ exclude: ^(src/octoprint/vendor/|tests/static/js/lib|tests/util/_files|docs/|scripts/|translations/)
diff --git a/.versioneer-lookup b/.versioneer-lookup
index c88373677..bef2e0e8e 100644
--- a/.versioneer-lookup
+++ b/.versioneer-lookup
@@ -18,21 +18,21 @@ prerelease
HEAD
\(detached.*
-# maintenance is currently the branch for preparation of maintenance release 1.5.0
+# maintenance is currently the branch for preparation of maintenance release 1.6.0
# so are any fix/... and improve/... branches
-maintenance 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
-fix/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
-improve/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
+maintenance 1.6.0 b7a45b79bf86339f0b28177ac1eaebb56d00ea37 pep440-dev
+fix/.* 1.6.0 b7a45b79bf86339f0b28177ac1eaebb56d00ea37 pep440-dev
+improve/.* 1.6.0 b7a45b79bf86339f0b28177ac1eaebb56d00ea37 pep440-dev
# staging/bugfix is the branch for preparation of the 1.5.4 bugfix release
# so are any bug/... branches
staging/bugfix 1.5.4 5860942967618e424901412e6c41abc103cf64c2 pep440-dev
bug/.* 1.5.4 5860942967618e424901412e6c41abc103cf64c2 pep440-dev
-# staging/maintenance is currently the branch for preparation of 1.5.0rc4
+# staging/maintenance is currently the branch for preparation of 1.6.0rc4
# so is regressionfix/...
-staging/maintenance 1.5.0rc4 5e7ea35239908f9ed91895751d8a8202aa76ed4b pep440-dev
-regressionfix/.* 1.5.0rc4 5e7ea35239908f9ed91895751d8a8202aa76ed4b pep440-dev
+staging/maintenance 1.6.0rc4 7054a726bb3dc363a98ec6944b24e07879bb389b pep440-dev
+regressionfix/.* 1.6.0rc4 7054a726bb3dc363a98ec6944b24e07879bb389b pep440-dev
# staging/devel is currently inactive (but has the 1.4.1rc4 namespace)
staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
diff --git a/AUTHORS.md b/AUTHORS.md
index 87aeb9db3..7aecc1391 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -131,6 +131,16 @@ date of first contribution):
* [Manuel McLure](https://github.com/ManuelMcLure)
* ["j7126"](https://github.com/j7126)
* ["coliss86"](https://github.com/coliss86)
+ * ["MichaIng"](https://github.com/MichaIng)
+ * ["jasonbcox"](https://github.com/jasonbcox)
+ * ["shadycuz"](https://github.com/shadycuz)
+ * [David Rifkind](https://github.com/drifkind)
+ * [Nils Hofmann](https://github.com/Master92)
+ * [Miroslav ล edivรฝ](https://github.com/eumiro)
+ * [Costas Basdekis](https://github.com/costas-basdekis)
+ * [Joe Martella](https://github.com/martellaj)
+ * [Scott Lahteine](https://github.com/thinkyhead)
+ * [Karthikeyan Singaravelan](https://github.com/tirkarthi)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 68c62a498..51c1e7d19 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -60,7 +60,7 @@ into one ticket: One ticket per bug, request, brainstorming thread please.
## How to file a bug report
If you encounter an issue with OctoPrint, you are welcome to
-[submit a bug report](https://github.com/foosel/OctoPrint/issues/new).
+[submit a bug report](https://github.com/OctoPrint/OctoPrint/issues/new?template=bug_report.yml).
Before you do that for the first time though please take a moment to read the
following section *completely* and also follow the instructions in the
@@ -118,7 +118,7 @@ following section *completely* and also follow the instructions in the
it is the same as your's, it actually behaves the same as your's. E.g. if someone gives steps
to reproduce his bug that looks like your's, reproduce the bug like that if possible,
and only add a "me too" if you actually can reproduce the same
- issue. Also **provide all information** as [described below](#what-should-i-include-in-a-bug-report)
+ issue. Also **provide all information like Systeminfo Bundle, additional logs & versions, different reproduction steps**
and whatever was additionally requested over the course of the ticket
even if you "only" add to an existing ticket. The more information available regarding a bug, the higher
the chances of reproducing and solving it. But "me too" on an actually unrelated ticket
@@ -126,7 +126,7 @@ following section *completely* and also follow the instructions in the
there's now also a [red herring](https://en.wikipedia.org/wiki/Red_herring) interfering - so please be
very diligent here!
-If in doubt about any of the above - get in touch on the [community forum](https://community.octoprint.org)
+If in doubt about any of the above - get in touch on the [community forums](https://community.octoprint.org)
instead of opening a ticket here. If you are actually running into a bug, we'll figure it out together
there.
@@ -180,9 +180,10 @@ don't know what you did to get it to happen in the first place.
Ideally provide exact steps to follow in order to reproduce your problem:
-->
-1. ...
-2. ...
-3. ...
+1. Go to '...'
+2. Click on '....'
+3. Scroll down to '....'
+4. See error
-#### Operating System running OctoPrint
-
-
-
#### Printer model & used firmware incl. version
-#### Link to octoprint.log
+#### System Info Bundle
-#### Link to contents of terminal tab or serial.log
-
-
-
#### Link to contents of Javascript console in the browser
@@ -269,9 +250,12 @@ If applicable. Always include if unsure or reporting UI issues.
I have read the FAQ.
```
-Copy-paste this template **completely** (or use the version that gets pre-filled
-into the "new issue" form). Do not skip any lines or the bot *will* complain! Provide
-all requested information or your ticket will be closed.
+Provide the same kind and amount of information also when you are just adding on to an
+existing ticket!
+
+### Where can I find the System Info Bundle?
+
+Please refer to [this FAQ entry](https://community.octoprint.org/t/what-is-a-systeminfo-bundle-and-how-can-i-obtain-one/29887).
### Where can I find which version and branch I'm on?
@@ -427,6 +411,9 @@ See [the corresponding chapter in the documentation](https://docs.octoprint.org/
* 2020-08-10: Update versioning scheme and PR instructions
* 2020-09-23: Move branch & versioning into development docs
* 2020-10-07: Introduce `pre-commit`
+ * 2021-02-04: Issue forms! \o/
+ * 2021-03-04: Correct issue forms link
+ * 2021-04-27: Systeminfo Bundles! \o/
## Footnotes
* [1] - If you are wondering why, the problem is that anything that you add
diff --git a/SUPPORTERS.md b/SUPPORTERS.md
index 46d0e9a1d..58b6bb381 100644
--- a/SUPPORTERS.md
+++ b/SUPPORTERS.md
@@ -6,10 +6,11 @@ thanks to everyone who contributed!
## Patrons & Sponsors
+ * 3D-TECH
* 3DPrinterOS
- * Andrew Moorby
* Arnljot Arntsen
* Ash King
+ * Ashley Merrick
* BigTreeTech
* Boris Hussein
* Brad Jackson
@@ -17,11 +18,15 @@ thanks to everyone who contributed!
* BuildBee
* Christian Petropolis
* Christian Wolf
+ * Christoph Sigrist
* Creality3D
* D Brian Kimmel
+ * Dana Voigt
* DeltaMaker 3D Printers
* Dennis Breining
+ * Dennis Christilaw
* Diana C Rodriguez
+ * Douglas Floyd
* Eric Betts
* Ernesto Martinez
* Franziska Kunsmann
@@ -29,11 +34,9 @@ thanks to everyone who contributed!
* Greg Holloway
* Hog Duske
* Hopewell Medical Acupuncture Center
- * jean-claude migneault
- * Jefferson Hunt
* Jeremy Cole
- * Joe Pasqua
* Joshua Wills
+ * Julian Melo
* Justin Kaufman
* Kaile Riser
* Kale Stedman
@@ -44,14 +47,15 @@ thanks to everyone who contributed!
* Kyle Menigoz
* LA 3D Printer Repair
* Lee Dohm
- * Loyal Moses
* Makespace Madrid
* Mark Walker
* Michael Aumock
- * Michael Begala
* Miles Flavel
* Mosaic Manufacturing
+ * Nat Friedman
* Neil R. Goldberg
+ * Norman Jaffe
+ * Ory Weaver
* Patrick Glyrรฉ
* Pete Barnwell
* Prof Yuh Wen Chen
@@ -69,6 +73,9 @@ thanks to everyone who contributed!
* Stefan Krister
* Steve Thompson
* Sven Mueller
+ * TH3D
+ * The Spaghetti Detective
+ * Ulderico Cirello
* Ulrich Kempken
-and 2225 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
+and 2341 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
diff --git a/THIRDPARTYLICENSES.md b/THIRDPARTYLICENSES.md
index f3c0cb7f9..80556b1cb 100644
--- a/THIRDPARTYLICENSES.md
+++ b/THIRDPARTYLICENSES.md
@@ -4,6 +4,7 @@
* [AVLTree](https://gist.github.com/viking/2424106) (modified): GPL, LGPL (dual licensed)
* [Babel JavaScript Support](https://github.com/mitsuhiko/babel/blob/master/contrib/babel.js): BSD
+ * [@babel/polyfill](https://babeljs.io/docs/en/babel-polyfill/): MIT
* [Bootstrap](http://getbootstrap.com/): Apache License 2.0
* [Bootstrap Modal](http://jschr.github.io/bootstrap-modal/): Apache License 2.0
* [Bootstrap Slider Knockout Binding](https://github.com/cosminstefanxp/bootstrap-slider-knockout-binding): MIT
diff --git a/docs/_static/mermaid.min.js b/docs/_static/mermaid.min.js
new file mode 100644
index 000000000..12d77d0a6
--- /dev/null
+++ b/docs/_static/mermaid.min.js
@@ -0,0 +1 @@
+!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mermaid=e():t.mermaid=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=383)}([function(t,e,n){"use strict";n.r(e);var r=function(t,e){return t >1)+f+t+w+C.slice(T);break;default:t=C+f+t+w}return s(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),w.toString=function(){return t+""},w}return{format:h,formatPrefix:function(t,e){var n=h(((t=Hs(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor($s(e)/3))),i=Math.pow(10,-r),a=ec[8+r/3];return function(t){return n(i*t)+a}}}};function rc(t){return qs=nc(t),Xs=qs.format,Zs=qs.formatPrefix,qs}rc({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var ic=function(t){return Math.max(0,-$s(Math.abs(t)))},ac=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($s(e)/3)))-$s(Math.abs(t)))},oc=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,$s(e)-$s(t))+1},sc=function(){return new cc};function cc(){this.reset()}cc.prototype={constructor:cc,reset:function(){this.s=this.t=0},add:function(t){lc(uc,t,this.t),lc(this,uc.s,this.s),this.s?this.t+=uc.t:this.s=uc.t},valueOf:function(){return this.s}};var uc=new cc;function lc(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var hc=Math.PI,fc=hc/2,dc=hc/4,pc=2*hc,yc=180/hc,gc=hc/180,vc=Math.abs,mc=Math.atan,bc=Math.atan2,xc=Math.cos,_c=Math.ceil,kc=Math.exp,wc=(Math.floor,Math.log),Ec=Math.pow,Tc=Math.sin,Cc=Math.sign||function(t){return t>0?1:t<0?-1:0},Sc=Math.sqrt,Ac=Math.tan;function Mc(t){return t>1?0:t<-1?hc:Math.acos(t)}function Oc(t){return t>1?fc:t<-1?-fc:Math.asin(t)}function Dc(t){return(t=Tc(t/2))*t}function Nc(){}function Bc(t,e){t&&Pc.hasOwnProperty(t.type)&&Pc[t.type](t,e)}var Lc={Feature:function(t,e){Bc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=xc(e=(e*=gc)/2+dc),o=Tc(e),s=Uc*o,c=zc*a+s*xc(i),u=s*r*Tc(i);Wc.add(bc(u,c)),Yc=t,zc=a,Uc=o}var Jc=function(t){return Hc.reset(),$c(t,Vc),2*Hc};function Kc(t){return[bc(t[1],t[0]),Oc(t[2])]}function Qc(t){var e=t[0],n=t[1],r=xc(n);return[r*xc(e),r*Tc(e),Tc(n)]}function tu(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eu(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function nu(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ru(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function iu(t){var e=Sc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var au,ou,su,cu,uu,lu,hu,fu,du,pu,yu=sc(),gu={point:vu,lineStart:bu,lineEnd:xu,polygonStart:function(){gu.point=_u,gu.lineStart=ku,gu.lineEnd=wu,yu.reset(),Vc.polygonStart()},polygonEnd:function(){Vc.polygonEnd(),gu.point=vu,gu.lineStart=bu,gu.lineEnd=xu,Wc<0?(au=-(su=180),ou=-(cu=90)):yu>1e-6?cu=90:yu<-1e-6&&(ou=-90),pu[0]=au,pu[1]=su},sphere:function(){au=-(su=180),ou=-(cu=90)}};function vu(t,e){du.push(pu=[au=t,su=t]),e >>1;u[y] {{ _('There are no application keys registered yet.') }}cu&&(cu=e)),u?t0?r=S(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=S(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function sy(){var t=iy(Jp,Jp);return t.copy=function(){return ny(t,sy())},Rp.apply(t,arguments),oy(t)}function cy(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Up.call(e,Xp),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return cy(t).unknown(e)},t=arguments.length?Up.call(t,Xp):[0,1],oy(n)}var uy=function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;fc)break;y.push(h)}}else y=C(f,d,Math.min(d-f,p)).map(n);return r?y.reverse():y},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=Xs(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=_[i in Vg?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return(b.x=k(n,b),b.X=k(r,b),b.c=k(e,b),x.x=k(n,x),x.X=k(r,x),x.c=k(e,x),{format:function(t){var e=k(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}})}var zg,Ug,$g,Wg,Hg,Vg={"-":"",_:" ",0:"0"},Gg=/^\s*\d+/,qg=/^%/,Xg=/[\\^$*+?|[\]().{}]/g;function Zg(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(ah&&A.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:A})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(w[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(w[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(C=this.productions_[w[1]][1],M.$=i[i.length-C],M._$={first_line:a[a.length-(C||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(C||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(C||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,w[1],i,a].concat(d))))return E;C&&(n=n.slice(0,-1*C*2),i=i.slice(0,-1*C),a=a.slice(0,-1*C)),n.push(this.productions_[w[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a{{ _('Registered application keys') }}
{{ _('Manually generate an application key') }}