-
Notifications
You must be signed in to change notification settings - Fork 469
Mention which package was not found in the build state. #7696
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
Draft
nojaf
wants to merge
16
commits into
rescript-lang:master
Choose a base branch
from
nojaf:rewatch-root
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8be72cc
Mention which package was not found in the build state.
nojaf ad6e0c9
Add more meaningful error when rescript.json is not found.
nojaf cfcdcea
Pass correct path to root for clean
nojaf 7f1b6f5
Correct names in rescript.json
nojaf 29165b8
Do some more name corrections
nojaf fe18ccf
Moar changes
nojaf e549e13
Force bsc-jsx-module flag in file
nojaf 1353e65
Merge branch 'master' into rewatch-root
nojaf 92bd81c
Don't clean rescript repo runtime
nojaf 23011dc
Use root bsc flags
nojaf e8dfa8c
Merge branch 'master' into rewatch-root
nojaf 01d0904
Add missing dep
nojaf a84e500
Update ref usage
nojaf 6a12cc1
Try and fix problem where relative ast paths could be incorrect.
nojaf cf65c96
Another ref usage problem
nojaf 0cef7b4
Update snapshots for now
nojaf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
{ | ||
"name": "rescript", | ||
"dependencies": ["@tests/gentype-react-example"] | ||
"dependencies": [ | ||
"@tests/gentype-react-example", | ||
"@tests/rescript-react", | ||
"@tests/analysis", | ||
"@tests/generic-jsx-transform", | ||
"@tests/reanalyze-deadcode", | ||
"@tests/incremental-typechecking", | ||
"@tests/reanalyze-termination" | ||
], | ||
"jsx": { "version": 4 } | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "test-generic-jsx-transform", | ||
"name": "@tests/generic-jsx-transform", | ||
"sources": [ | ||
{ | ||
"dir": "src", | ||
|
4 changes: 4 additions & 0 deletions
4
tests/analysis_tests/tests-generic-jsx-transform/src/GenericJsxCompletion.res
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
@@config({ | ||
flags: ["-bs-jsx", "4", "-bs-jsx-module", "GenericJsx"], | ||
}) | ||
|
||
// <div | ||
// ^com | ||
|
||
|
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
tests/analysis_tests/tests-incremental-typechecking/rescript.json
This file contains hidden or 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "test-generic-jsx-transform", | ||
"name": "@tests/incremental-typechecking", | ||
"sources": [ | ||
{ | ||
"dir": "src", | ||
|
4 changes: 2 additions & 2 deletions
4
tests/analysis_tests/tests-incremental-typechecking/src/ConstructorCompletion__Json.res
This file contains hidden or 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
let x = Js.Json.Array() | ||
// ^com | ||
// let x = Js.Json.Array() | ||
// ^com |
This file contains hidden or 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
17 changes: 4 additions & 13 deletions
17
...sis_tests/tests-incremental-typechecking/src/expected/ConstructorCompletion__Json.res.txt
This file contains hidden or 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 |
---|---|---|
@@ -1,20 +1,11 @@ | ||
Complete src/ConstructorCompletion__Json.res 0:22 | ||
posCursor:[0:22] posNoWhite:[0:21] Found expr:[0:8->0:23] | ||
Complete src/ConstructorCompletion__Json.res 0:25 | ||
posCursor:[0:25] posNoWhite:[0:24] Found expr:[0:11->0:26] | ||
Pexp_construct Js | ||
Json | ||
Array:[0:8->0:21] [0:21->0:23] | ||
Array:[0:11->0:24] [0:24->0:26] | ||
Completable: Cexpression CTypeAtPos()->variantPayload::Array($0) | ||
Package opens Stdlib.place holder Pervasives.JsxModules.place holder | ||
Resolved opens 1 Stdlib | ||
ContextPath CTypeAtPos() | ||
[{ | ||
"label": "[]", | ||
"kind": 12, | ||
"tags": [], | ||
"detail": "t", | ||
"documentation": {"kind": "markdown", "value": " \nA type representing a JSON object.\n\n\n```rescript\n@unboxed\ntype t =\n | Boolean(bool)\n | @as(null) Null\n | String(string)\n | Number(float)\n | Object(dict<t>)\n | Array(array<t>)\n```"}, | ||
"sortText": "A", | ||
"insertText": "[$0]", | ||
"insertTextFormat": 2 | ||
}] | ||
[] | ||
|
17 changes: 4 additions & 13 deletions
17
...ysis_tests/tests-incremental-typechecking/src/expected/ConstructorCompletion__Own.res.txt
This file contains hidden or 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 |
---|---|---|
@@ -1,19 +1,10 @@ | ||
Complete src/ConstructorCompletion__Own.res 4:24 | ||
posCursor:[4:24] posNoWhite:[4:23] Found expr:[4:8->4:25] | ||
Complete src/ConstructorCompletion__Own.res 4:27 | ||
posCursor:[4:27] posNoWhite:[4:26] Found expr:[4:11->4:28] | ||
Pexp_construct WithVariant | ||
One:[4:8->4:23] [4:23->4:25] | ||
One:[4:11->4:26] [4:26->4:28] | ||
Completable: Cexpression CTypeAtPos()->variantPayload::One($0) | ||
Package opens Stdlib.place holder Pervasives.JsxModules.place holder | ||
Resolved opens 1 Stdlib | ||
ContextPath CTypeAtPos() | ||
[{ | ||
"label": "{}", | ||
"kind": 12, | ||
"tags": [], | ||
"detail": "{miss: bool}", | ||
"documentation": {"kind": "markdown", "value": "```rescript\n{miss: bool}\n```"}, | ||
"sortText": "A", | ||
"insertText": "{$0}", | ||
"insertTextFormat": 2 | ||
}] | ||
[] | ||
|
This file contains hidden or 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 hidden or 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
2 changes: 0 additions & 2 deletions
2
tests/analysis_tests/tests-reanalyze/deadcode/src/exception/ExportWithRename.res
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to bubble this up as a
Result
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To what end, I wonder? This is a configuration error or cli argument error. Feels fine to fail her in my opinion.
We should, of course, communicate why it failed.