-
Notifications
You must be signed in to change notification settings - Fork 471
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 7 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,6 +1,13 @@ | ||
{ | ||
"name": "rescript", | ||
"bs-dependencies": [ | ||
"@tests/gentype-react-example" | ||
] | ||
"@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
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 | ||
|
||
|
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
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.
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": "@rescript/react", | ||
"name": "@tests/rescript-react", | ||
"jsx": { | ||
"version": 4, | ||
"mode": "classic" | ||
|
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
32 changes: 32 additions & 0 deletions
32
tests/gentype_tests/typescript-react-example/src/nested/NestedTuples.gen.tsx
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* TypeScript file generated from NestedTuples.res by genType. */ | ||
|
||
/* eslint-disable */ | ||
/* tslint:disable */ | ||
|
||
import * as NestedTuplesJS from './NestedTuples.res.js'; | ||
|
||
export type coord = [number, number, (undefined | number)]; | ||
|
||
export type coord2 = [number, number, (null | undefined | number)]; | ||
|
||
export type person = { readonly name: string; readonly age: number }; | ||
|
||
export type couple = [person, person]; | ||
|
||
export const testTuple: (param:[number, number]) => number = NestedTuplesJS.testTuple as any; | ||
|
||
export const origin: [number, number, (undefined | number)] = NestedTuplesJS.origin as any; | ||
|
||
export const computeArea: (param:[number, number, (undefined | number)]) => number = NestedTuplesJS.computeArea as any; | ||
|
||
export const computeAreaWithIdent: (param:coord) => number = NestedTuplesJS.computeAreaWithIdent as any; | ||
|
||
export const computeAreaNoConverters: (param:[number, number]) => number = NestedTuplesJS.computeAreaNoConverters as any; | ||
|
||
export const coord2d: <T1,T2,T3>(x:T1, y:T2) => [T1, T2, (undefined | T3)] = NestedTuplesJS.coord2d as any; | ||
|
||
export const getFirstName: (param:couple) => string = NestedTuplesJS.getFirstName as any; | ||
|
||
export const marry: (first:person, second:person) => couple = NestedTuplesJS.marry as any; | ||
|
||
export const changeSecondAge: (param:couple) => couple = NestedTuplesJS.changeSecondAge as any; |
67 changes: 67 additions & 0 deletions
67
tests/gentype_tests/typescript-react-example/src/nested/NestedTuples.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
135 changes: 135 additions & 0 deletions
135
tests/gentype_tests/typescript-react-example/src/nested/NestedTypes.gen.tsx
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 |
---|---|---|
@@ -0,0 +1,135 @@ | ||
/* TypeScript file generated from NestedTypes.res by genType. */ | ||
|
||
/* eslint-disable */ | ||
/* tslint:disable */ | ||
|
||
import * as NestedTypesJS from './NestedTypes.res.js'; | ||
|
||
import type {Json_t as Js_Json_t} from '../../src/shims/Js.shim'; | ||
|
||
import type {List_t as Belt_List_t} from '../../src/shims/Belt.shim'; | ||
|
||
import type {M_t__ as TypeNameSanitize_M_t__} from '../../src/TypeNameSanitize.gen'; | ||
|
||
import type {list} from '../../src/shims/RescriptPervasives.shim'; | ||
|
||
import type {t_ as TypeNameSanitize_t_} from '../../src/TypeNameSanitize.gen'; | ||
|
||
import type {t as Location_t} from '../../src/location/location.gen'; | ||
|
||
export type t = number; | ||
|
||
export type typeWithVars<x,y,z> = | ||
{ TAG: "A"; _0: x; _1: y } | ||
| { TAG: "B"; _0: z }; | ||
|
||
export type tree = { | ||
readonly label: string; | ||
readonly left?: tree; | ||
readonly right?: tree | ||
}; | ||
|
||
export type selfRecursive = { readonly self: selfRecursive }; | ||
|
||
export type mutuallyRecursiveA = { readonly b: mutuallyRecursiveB }; | ||
|
||
export type mutuallyRecursiveB = { readonly a: mutuallyRecursiveA }; | ||
|
||
export abstract class opaqueVariant { protected opaque!: any }; /* simulate opaque types */ | ||
|
||
export type twice<a> = [a, a]; | ||
|
||
export type genTypeMispelled = number; | ||
|
||
export type dictString = {[id: string]: string}; | ||
|
||
export type nullOrString = (null | string); | ||
|
||
export type nullOrString2 = (null | string); | ||
|
||
export type nullOrString3 = (null | string); | ||
|
||
export type nullOrString4 = (null | string); | ||
|
||
export type nullableOrString = (null | undefined | string); | ||
|
||
export type nullableOrString2 = (null | undefined | string); | ||
|
||
export type nullableOrString3 = (null | undefined | string); | ||
|
||
export type nullableOrString4 = (null | undefined | string); | ||
|
||
export type undefinedOrString = (undefined | string); | ||
|
||
export type undefinedOrString2 = (undefined | string); | ||
|
||
export type undefinedOrString3 = (undefined | string); | ||
|
||
export type undefinedOrString4 = (undefined | string); | ||
|
||
export type record = { readonly i: number; readonly s: string }; | ||
|
||
export type decorator<a,b> = (_1:a) => b; | ||
|
||
export type marshalFields = { | ||
readonly _rec: string; | ||
readonly _switch: string; | ||
readonly switch: string; | ||
readonly __: string; | ||
readonly ___: string; | ||
readonly foo__: string; | ||
readonly _foo__: string; | ||
readonly _Uppercase: string; | ||
readonly _Uppercase__: string | ||
}; | ||
|
||
export type marshalMutableField = { _match: number }; | ||
|
||
export type ocaml_array<a> = a[]; | ||
|
||
export type someRecord = { readonly id: number }; | ||
|
||
export type instantiateTypeParameter = ocaml_array<someRecord>; | ||
|
||
export type vector<a> = [a, a]; | ||
export type Vector<a> = vector<a>; | ||
|
||
export type date = Date; | ||
|
||
export type ObjectId_t = number; | ||
|
||
export type tPrimed = [TypeNameSanitize_t_, TypeNameSanitize_M_t__]; | ||
|
||
export const someIntList: list<number> = NestedTypesJS.someIntList as any; | ||
|
||
export const map: <T1,T2>(_1:Belt_List_t<T1>, _2:((_1:T1) => T2)) => Belt_List_t<T2> = NestedTypesJS.map as any; | ||
|
||
export const swap: (tree:tree) => tree = NestedTypesJS.swap as any; | ||
|
||
export const selfRecursiveConverter: (param:selfRecursive) => selfRecursive = NestedTypesJS.selfRecursiveConverter as any; | ||
|
||
export const mutuallyRecursiveConverter: (param:mutuallyRecursiveA) => mutuallyRecursiveB = NestedTypesJS.mutuallyRecursiveConverter as any; | ||
|
||
export const testFunctionOnOptionsAsArgument: <T1,a>(a:(undefined | a), foo:((_1:(undefined | a)) => T1)) => T1 = NestedTypesJS.testFunctionOnOptionsAsArgument as any; | ||
|
||
export const stringT: string = NestedTypesJS.stringT as any; | ||
|
||
export const jsStringT: string = NestedTypesJS.jsStringT as any; | ||
|
||
export const jsString2T: string = NestedTypesJS.jsString2T as any; | ||
|
||
export const jsonStringify: (_1:Js_Json_t) => string = NestedTypesJS.jsonStringify as any; | ||
|
||
export const testConvertNull: (x:(null | record)) => (null | record) = NestedTypesJS.testConvertNull as any; | ||
|
||
export const testConvertLocation: (x:Location_t) => Location_t = NestedTypesJS.testConvertLocation as any; | ||
|
||
export const testMarshalFields: marshalFields = NestedTypesJS.testMarshalFields as any; | ||
|
||
export const setMatch: (x:marshalMutableField) => void = NestedTypesJS.setMatch as any; | ||
|
||
export const testInstantiateTypeParameter: (x:instantiateTypeParameter) => instantiateTypeParameter = NestedTypesJS.testInstantiateTypeParameter as any; | ||
|
||
export const currentTime: Date = NestedTypesJS.currentTime as any; | ||
|
||
export const optFunction: (undefined | (() => number)) = NestedTypesJS.optFunction as any; |
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.