Skip to content

Commit

Permalink
Fix for Jira bug I7-2097
Browse files Browse the repository at this point in the history
  • Loading branch information
ganelson committed May 15, 2022
1 parent 20147da commit 91a4a95
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 26 deletions.
12 changes: 5 additions & 7 deletions inform7/Tests/Test Problems/_Results_Ideal/PM_BogusExtension.txt
@@ -1,11 +1,9 @@
Inform 7.10.1 build 6Q21 has started.
Inform 7 v10.1.0 has started.
I've now read your source text, which is 6 words long.
I've also read Basic Inform by Graham Nelson, which is 7645 words long.
I've also read Basic Inform by Graham Nelson, which is 7691 words long.
I've also read English Language by Graham Nelson, which is 2328 words long.
I've also read Standard Rules by Graham Nelson, which is 32123 words long.
I've also read Standard Rules by Graham Nelson, which is 32164 words long.
Problem__ PM_BogusExtension
>--> I can't find the extension requested by: 'Include Bogus Extension by Mr
Nobody' (source text, line 1). You can get hold of extensions which people
have made public at the Inform website, www.inform7.com, or by using the
Public Library in the Extensions panel.
Inform 7 has finished: 12 centiseconds used.
Nobody' (source text, line 1).
Inform 7 has finished.
16 changes: 6 additions & 10 deletions inform7/Tests/Test Problems/_Results_Ideal/PM_ExtVersionTooLow.txt
@@ -1,18 +1,14 @@
Inform 7.10.1 build 6Q21 has started.
Inform 7 v10.1.0 has started.
I've now read your source text, which is 23 words long.
I've also read Basic Inform by Graham Nelson, which is 7645 words long.
I've also read Basic Inform by Graham Nelson, which is 7691 words long.
I've also read English Language by Graham Nelson, which is 2328 words long.
I've also read Standard Rules by Graham Nelson, which is 32123 words long.
I've also read Standard Rules by Graham Nelson, which is 32164 words long.
Problem__ PM_ExtVersionTooLow
>--> I can't find the right version of the extension requested by 'Include
version 3/070628 of ExtVersionTooLow Extension by Araminta Intest' (source
text, line 1) - I can only find version 2. You can get hold of extensions
which people have made public at the Inform website, www.inform7.com, or by
using the Public Library in the Extensions panel.
text, line 1) - I can only find version 2.
Problem__ PM_ExtVersionTooLow
>--> I can't find the right version of the extension requested by 'Include
version 2.7 of ExtNoVersion Extension by Araminta Intest' (source text, line 3)
- I can only find an unnumbered version. You can get hold of extensions
which people have made public at the Inform website, www.inform7.com, or by
using the Public Library in the Extensions panel.
Inform 7 has finished: 13 centiseconds used.
- I can only find an unnumbered version.
Inform 7 has finished.
10 changes: 2 additions & 8 deletions inform7/core-module/Chapter 2/Problems With Source Text.w
Expand Up @@ -306,10 +306,7 @@ void SourceProblems::issue_problems_arising(inbuild_copy *C) {
Problems::quote_source(1, current_sentence);
StandardProblems::handmade_problem(Task::syntax_tree(), _p_(PM_BogusExtension));
Problems::issue_problem_segment(
"I can't find the extension requested by: %1. %P"
"You can get hold of extensions which people have made public at "
"the Inform website, www.inform7.com, or by using the Public "
"Library in the Extensions panel.");
"I can't find the extension requested by: %1.");
Problems::issue_problem_end();
break;
case ExtVersionTooLow_SYNERROR:
Expand All @@ -319,10 +316,7 @@ void SourceProblems::issue_problems_arising(inbuild_copy *C) {
StandardProblems::handmade_problem(Task::syntax_tree(), _p_(PM_ExtVersionTooLow));
Problems::issue_problem_segment(
"I can't find the right version of the extension requested by %1 - "
"I can only find %2. %P"
"You can get hold of extensions which people have made public at "
"the Inform website, www.inform7.com, or by using the Public "
"Library in the Extensions panel.");
"I can only find %2.");
Problems::issue_problem_end();
break;
case ExtVersionMalformed_SYNERROR:
Expand Down
2 changes: 1 addition & 1 deletion resources/Documentation/Writing with Inform.txt
Expand Up @@ -17398,7 +17398,7 @@ If the file has already been included, then the sentence is simply ignored. This
^^{materials folder: project-specific extensions}
^^{inform7.com+web+}

To recap: Inform builds projects from both the source text typed by the author and from Extensions; one of these, the Standard Rules, is always included; others are added as authors please. About 20 are "built-in" to Inform, meaning that they are stored inside the application and always available. Others must be "installed", and each Inform user will have a folder somewhere on his computer which contains these. Users typically obtain these from the Public Library feature in the application, but they can also download them directly from inform7.com and then use an Install Extension menu option in the application. Either way, the application then squirrels the file away, and it becomes available to any projects that that user may be working on.
To recap: Inform builds projects from both the source text typed by the author and from Extensions; one of these, the Standard Rules, is always included; others are added as authors please. About 20 are "built-in" to Inform, meaning that they are stored inside the application and always available. Others must be "installed", and each Inform user will have a folder somewhere on his computer which contains these. Users typically obtain these from the Public Library feature in the Inform application, but can also download them directly from the extension writer's website and then use an Install Extension menu option in the application. Either way, the application then squirrels the file away, and it becomes available to any projects that that user may be working on.

It is also possible to have extensions available to just one project. These must be stored in the Extensions subfolder of the project's ".materials" folder, but otherwise are arranged the same as installed extensions - there's an outer folder for each author's name, and extensions are named with a ".i7x" extension within. For example:

Expand Down

0 comments on commit 91a4a95

Please sign in to comment.