Macaulay2 / Macaulay2/M2

conflicts with imported packages

Open
#840 1 comment 0 reactions 0 assignees View on GitHub
Core
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

```
newPackage("Intersection",
Version => "1.1",
Headline => "making Foo",
Configuration => { "foo" => 42, "bar" => "x" },
PackageImports => { "Polyhedra" },
DebuggingMode => true
)
export "intersection"
intersection = method()
```
The assignment above fails because Polyhedra defines "intersection", too. A warning message should be issued when the symbol is exported here.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the shown newPackage("Intersection") example, importing Polyhedra and exporting intersection. Start by tracing how PackageImports and export are handled, then identify where imported symbols are compared with exported symbols. Done means the example emits a warning when the exported name conflicts with a name from an imported package.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.