Macaulay2 / Macaulay2/M2

give error message when installing method fails

Open
#927 1 comment 0 reactions 1 assignee View on GitHub

@DanGrayson is already working on this.

Since Feb 9, 2019.

Interpreter
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

This package

newPackage ("Foo", Headline => "foo", DebuggingMode => true)
LieAlgebra = new Type of HashTable
basis(ZZ,ZZ,LieAlgebra) := List => (x) -> opts -> {}
export "LieAlgebra"
beginDocumentation()
document {
     Key => {
	     (basis,ZZ,ZZ,LieAlgebra),
	  },
     Headline => "make a basis",
     }

gives this error

Foo.m2:6:1:(3):[7]: error: documentation key for 'basis(ZZ,ZZ,LieAlgebra)' encountered, but no method installed

There actually is a line of code that should install the method function, but the function provided accepts two arguments instead of three, so the method didn't get installed. An error should have been flagged at that point, earlier.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.