forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
manage
technote and file futures (chapel-lang#24722)
Fixes some incorrect code in the `manage.rst` technote and adds 3 futures for bugs captured in chapel-lang#24721 Tested new futures locally [Reviewed by @dlongnecke-cray]
- Loading branch information
Showing
14 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$CHPL_HOME/modules/internal/ChapelContext.chpl:37: internal error: UTI-MIS-1041 chpl version 2.1.0 pre-release (aafdad217f) | ||
Note: This source location is a guess. | ||
|
||
Internal errors indicate a bug in the Chapel compiler, | ||
and we're sorry for the hassle. We would appreciate your reporting this bug -- | ||
please see https://chapel-lang.org/bugs.html for instructions. In the meantime, | ||
the filename + line number above may be useful in working around the issue. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var a = 1; | ||
manage a {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bug: this should have a good error message, not an internal error | ||
#24721 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
manageNonAggregate.chpl:2: error: cannot use a non-context manager in a 'manage' statement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
missingNew.chpl:14: warning: unnecessary type construction call | ||
missingNew.chpl:1: note: 'myManager' has no generic fields | ||
missingNew.chpl:14: note: remove the '()' | ||
note: this warning will become an error in the future |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
record myManager: contextManager { | ||
var x: int = 0; | ||
|
||
proc ref enterContext() ref: int { | ||
writeln('x is: ', x); | ||
return x; | ||
} | ||
|
||
proc exitContext(in err: owned Error?) { | ||
if err then halt(err!.message()); | ||
writeln('x is: ', x); | ||
} | ||
} | ||
manage myManager() as x { | ||
x = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bug: this should either be an error or default initialize 'x' | ||
#24721 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
x is: 0 | ||
x is: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This test does not initialize data, any good file cause sporadic issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
missingNewNoParen.chpl:14: internal error: COD-CG--XPR-1674 chpl version 2.1.0 pre-release (aafdad217f) | ||
Note: This source location is a guess. | ||
|
||
Internal errors indicate a bug in the Chapel compiler, | ||
and we're sorry for the hassle. We would appreciate your reporting this bug -- | ||
please see https://chapel-lang.org/bugs.html for instructions. In the meantime, | ||
the filename + line number above may be useful in working around the issue. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
record myManager: contextManager { | ||
var x: int = 0; | ||
|
||
proc ref enterContext() ref: int { | ||
writeln('x is: ', x); | ||
return x; | ||
} | ||
|
||
proc exitContext(in err: owned Error?) { | ||
if err then halt(err!.message()); | ||
writeln('x is: ', x); | ||
} | ||
} | ||
manage myManager as x { | ||
x = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bug: this should have a good error message, not an internal error | ||
#24721 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
missingNewNoParen.chpl:14: error: cannot use a type in a 'manage' statement |