-
Notifications
You must be signed in to change notification settings - Fork 323
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
Importing a nonexistent module/type using from
syntax does not yield any errors
#5936
Comments
It's even more suspicious if you run the following code:
It yields:
So yeah, it does report that the module was not found at usage site. But I can see I have an import that did not fail. Now I'm confused - I successfully imported this module, it should be here. If the module name does not have a weird name, I have no clue that it actually didn't exist instead. Note that if I'd run the import without the
Then I get:
So it correctly points out that it was unable to import the module and now I know why it is later not found. With cc: @hubertp you may be interested in this, as you know the imports resolution well |
Yes, it's been like that forever. |
Pavel Marek reports a new STANDUP for today (2023-04-27): Progress: - Looking into the IRs in import expressions and into
|
Pavel Marek reports a new STANDUP for today (2023-04-28): Progress: - Hacking
|
Pavel Marek reports a new STANDUP for today (2023-05-02): Progress: - Doing daily bookclub, reporting some issues.
|
Shouldn't
yield a warning? Something |
If the imported module does not exist, there should be a warning about it (explicitly telling that it does not exist). Warning is better than error, as it is less error-prone - more projects will work. If this happens and the graph still works, for the user it give a way more "stable" feeling than crashing with an error. I know this is not how IDEs work, but Enso is not an IDE and we should be as error-prone as possible. |
Pavel Marek reports a new 🔴 DELAY for today (2023-05-03): Summary: There is 8 days delay in implementation of the Importing a nonexistent module/type using Requires deeper investigation and testing of our import/export system. Delay Cause: The issue is broader than expected at the beginning. |
Pavel Marek reports a new STANDUP for today (2023-05-03): Progress: - Investigating why benchmarking job takes 8 hours
|
Pavel Marek reports a new STANDUP for yesterday (2023-05-05): Progress: - Added new compiler step that ensures that symbols from
|
Pavel Marek reports a new STANDUP for today (2023-05-08): Progress: - Adding some logging to understand better what is going on.
|
Pavel Marek reports a new STANDUP for yesterday (2023-05-09): Progress: - Adding and fixing more import/export tests It should be finished by 2023-05-11. |
Pavel Marek reports a new STANDUP for today (2023-05-10): Progress: - Import resolver can import all constructors from a type
|
Pavel Marek reports a new STANDUP for yesterday (2023-05-11): Progress: - Triaging
|
Pavel Marek reports a new 🔴 DELAY for yesterday (2023-05-11): Summary: There is 7 days delay in implementation of the Importing a nonexistent module/type using My local tests are already passing. I am done with adding more functionality to the import resolver, but I still need to fix all the other tests and be able to compile the whole std lib. I also expect that the PR review will take some time, as it touches a lot of lines of code. Delay Cause: The issue grew up in complexity and I need more time to fix it. |
Pavel Marek reports a new STANDUP for today (2023-05-12): Progress: - Wrote rest of the import/export tests.
|
Pavel Marek reports a new STANDUP for today (2023-05-15): Progress: - Triaging session with Pawel
|
Pavel Marek reports a new STANDUP for yesterday (2023-05-16): Progress: - Bumping into ambiguity resolution errors during std lib compilation.
|
Pavel Marek reports a new STANDUP for today (2023-05-17): Progress: - With Jaroslav, concluded that the current PR got out of hand - we need to simplify and integrate.
|
Pavel Marek reports a new STANDUP for today (2023-05-18): Progress: - Another triaging session with Pawel
|
Pavel Marek reports a new STANDUP for the provided date (2023-05-04): Progress: Looking at IRs of stdlib and figuring out the incosistencies in ImportResolver. It should be finished by 2023-05-18. |
Repro
Run the following code:
Expected Behaviour
Import resolution should fail and tell me that
Something_That_Does_Not_Exist
does not exist.Actual Behaviour
Instead the code runs OK and prints
423
on output.The text was updated successfully, but these errors were encountered: