-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange error message when installing older package #3307
Comments
OK, if I then restart, I get an error:
Not sure yet what the issue is.... EDIT: this part of the problem went away when #3301 was merged. |
I think the |
@d-torrance Thanks! I just "rebased and merged" that pull request. |
Without knowing more about the package, I have no idea why this error might be occurring. Did you do |
Yes, |
I plan on changing that. I just merged in some of @d-torrance 's fixes, so I'll see where this stands now. |
After the PR merges today, this |
In Utah, I kept seeing the same error, except for some random methods defined in The solution in that case was to install |
In this case, removing @mahrud I don't yet understand the problem you raise. That seems like a bug in |
I don't know. |
Here's how to reproduce the issue I described above, in #3307 (comment):
firstFunction Thing := String => n -> "This is a thing!"
newPackage(
"MyPackage",
Headline => "my package",
PackageExports => { "FirstPackage" }
)
TEST ///
assert(firstFunction "foo" === "This is a thing!")
///
beginDocumentation()
doc ///
Node
Key
MyPackage
Description
Example
firstFunction "foo"
///
loadPackage("FirstPackage", FileName => "./FirstPackage.m2")
loadPackage("MyPackage", FileName => "./MyPackage.m2")
check "MyPackage" -- works fine
installPackage "MyPackage" -- fails with error:
-- i1 : firstFunction "foo"
-- stdio:1:8:(3): error: no method found for applying firstFunction to:
-- argument : "foo" (of class String) Of course, the solution is to install the local copy of Is this a bug in |
This will be fixed by #3382 (see the test added in https://github.com/Macaulay2/M2/pull/3382/files#diff-2df36823cf821a86a3be8aa10690024a20e0b24e6e533b7b99e9e07ee58922ac). |
I am trying to resurrect some older packages to place into M2. The package format for this package is likely no longer correct (I'm not sure of this yet). But I get the following when trying to install:
There is no
adjustComputation
method in this package.I'm not yet sure what the problem is.
Along the way, I am getting a few other error messages I don't understand. When I switch to 1.24.01-dirty.... (pretty much the current development branch) from version 1.23, and try to start M2, I get the following error message. I had removed the local end encap directories in the Application Support Macaulay2 directory. Perhaps this should be another issue, not sure yet.
After removing the
local
andencap
subdirectories, it starts fine. @d-torrance did the structure of the directory change from 1.23 to 1.24?Anyway, after doing this, I get the following:
@d-torrance @DanGrayson @mahrud Any ideas what the problem is? I'll keep looking at it, but at the least, we probably need better error messages.
The text was updated successfully, but these errors were encountered: