Ayaz Hafiz
e1aadbc6ef
Add clone comment
2022-10-02 21:41:10 -05:00
Ayaz Hafiz
a6cf21dcf9
Revert "Lints"
...
This reverts commit f7e85b5295a44217bde9b6b83d188d84ee863d0c.
2022-10-02 21:39:48 -05:00
Ayaz Hafiz
f3689b1146
Fmt
2022-10-02 21:38:04 -05:00
Ayaz Hafiz
852fd0a127
Lints
2022-10-02 21:38:04 -05:00
Ayaz Hafiz
0cc9ea4b05
Detect and report module names that don't match what they are used as
...
Prior to this commit, if you had a module structure like
```
| - A.roc
| - Dep
| - B.roc
```
where `B.roc` was defined as
```
interface B exposes [] imports []
```
and `A.roc` was defined as
```
interface A exposes [] imports [Dep.B]
```
The compiler would hang on you. The reason is that even though we expect
`B` to be named `Dep.B` relative to `A`, that would not be enforced.
With this patch, we now enforce such naming schemes - a module must have
the namespaced name it is referenced by. Currently, we determine the
expected namespaced name by looking at how transitive dependencies of the
root module reference the module. In the future, once we have a package
ecosystem and a solid idea of "package roots", we can use the "package
root" to determine how a module should be named.
Closes #4094
2022-10-02 21:38:03 -05:00
Ayaz Hafiz
a5ebd7f477
Comments and optimizations for builtins
2022-10-02 21:38:03 -05:00
Ayaz Hafiz
5d649666fa
Detect and report module import cycles
...
Closes #3557
2022-10-02 21:38:03 -05:00
Ayaz Hafiz
c67be21636
Check that module names correspond to the paths they are defined in
...
Closes #3440
Closes #4050
2022-10-02 21:38:02 -05:00
Ayaz Hafiz
3883867b5c
Properly format characters with escape sequences
...
Ran into this just now
2022-10-02 17:10:34 -05:00
Ayaz Hafiz
877714e9c0
Unused imports in gen-abilities
2022-09-30 14:24:06 -05:00
Ayaz Hafiz
c97cdc0753
Fix load tests
2022-09-30 13:40:35 -05:00
Ayaz Hafiz
cc125d62bc
Remove redundant reference
2022-09-30 13:40:35 -05:00
Ayaz Hafiz
f745debc73
Fix scope tests
2022-09-30 13:40:34 -05:00
Ayaz Hafiz
92aa0912ea
Report unused imports in modules
2022-09-30 13:40:34 -05:00
Ayaz Hafiz
5f117be306
Improve error message when shadowing builtin type
...
Closes #3109
2022-09-30 13:40:34 -05:00
Ayaz Hafiz
ae122a0aea
Improve style
2022-09-30 13:40:34 -05:00
Ayaz Hafiz
c521668d4c
Simplify how builtin types are added to a module
2022-09-30 13:40:33 -05:00
Ayaz Hafiz
2028dd5b0c
Add function to get exposed types of builtin module
2022-09-30 13:40:33 -05:00
Ayaz Hafiz
6832d4054f
Better name imported
symbols to apply
or hint
symbols
2022-09-30 13:40:33 -05:00
Anton-4
0aa590dfe7
Merge branch 'main' of github.com:roc-lang/roc into simplify_examples
2022-09-30 19:27:30 +02:00
Jan Van Bruggen
f6c981294a
Merge pull request #4126 from roc-lang/i4064
...
Str.splitFirst should not find match if needle is longer than haystack
2022-09-29 23:30:56 -06:00
Jan Van Bruggen
cd5747a15c
Run formatter even though it makes matchesAtHelp
uglier
...
Signed-off-by: Jan Van Bruggen <JanCVanB@pm.me>
2022-09-29 23:28:34 -06:00
Jan Van Bruggen
5d814b3ea5
Refactor matchesAtHelp
for clarity
...
Signed-off-by: Jan Van Bruggen <JanCVanB@pm.me>
2022-09-29 23:28:27 -06:00
Ayaz Hafiz
c9c2f61e3e
Add some docs to matchesAtHelp
2022-09-29 22:32:16 -05:00
Ayaz Hafiz
1d7dc65800
Str.splitFirst should not find match if needle is longer than haystack
...
Closes #4064
2022-09-28 13:14:36 -05:00
Anton-4
eaacb86ad9
Merge branch 'main' of github.com:roc-lang/roc into simplify_examples
2022-09-28 19:48:46 +02:00
Folkert
2e5f207283
Merge remote-tracking branch 'origin/main' into csv_decoding-server_example
2022-09-28 16:39:34 +02:00
Folkert
9106479d07
access out of bounds in string split
2022-09-28 15:17:07 +02:00
Folkert
f44a30cf48
fix off-by-one error in List.dropAt
2022-09-28 14:57:55 +02:00
Anton-4
735d4c13bb
Merge branch 'main' into simplify_examples
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-09-28 11:54:44 +02:00
Ayaz Hafiz
2a508721ed
Don't resolve builtin modules imported from platform interfaces as namespaced
2022-09-27 17:57:45 -05:00
dependabot[bot]
49dd5af13d
Bump insta from 1.19.0 to 1.20.0
...
Bumps [insta](https://github.com/mitsuhiko/insta ) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/mitsuhiko/insta/releases )
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitsuhiko/insta/compare/1.19.0...1.20.0 )
---
updated-dependencies:
- dependency-name: insta
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 07:14:24 +00:00
Folkert
8facec44d0
fix error in feature-gated code
2022-09-25 00:30:56 +02:00
Folkert
97f2ad26e2
keep app bytes in memory
2022-09-24 23:55:29 +02:00
Anton-4
1d9a751606
cli_run test fixes
2022-09-24 20:14:59 +02:00
Anton-4
076190a217
Merge branch 'main' of github.com:roc-lang/roc into simplify_examples
2022-09-24 16:55:37 +02:00
Anton-4
0ddc69e066
Merge branch 'main' of github.com:roc-lang/roc into simplify_examples
2022-09-24 16:49:50 +02:00
Folkert de Vries
fe0e306711
Merge pull request #4108 from roc-lang/file-problem-msg
...
Improve file problem msg
2022-09-24 15:52:25 +02:00
Anton-4
1bf355feb9
fmt
2022-09-24 14:55:37 +02:00
Anton-4
3b0293a87d
improved file problem msg
2022-09-24 14:41:06 +02:00
Folkert de Vries
87f005a477
Merge pull request #4107 from roc-lang/windows-surgical-linker-first-roc-file
...
Windows surgical linker first roc file
2022-09-24 14:28:03 +02:00
Folkert de Vries
10b8cd299d
Merge pull request #4099 from roc-lang/pe-host-to-app
...
windows surgical linker: call host functions from the app
2022-09-24 12:54:53 +02:00
Folkert
3131bd1a2f
Merge remote-tracking branch 'origin/pe-host-to-app' into windows-surgical-linker-first-roc-file
2022-09-23 20:17:42 +02:00
Folkert
f632e299cd
cross-compile C for windows with zig
2022-09-23 19:46:27 +02:00
Anton-4
d83f23928e
quotes to make error stand out
2022-09-23 18:35:54 +02:00
Folkert
6c4e225a4c
use unique temp dir
2022-09-23 17:13:15 +02:00
rezzaghi
8278d37f1d
fix format
2022-09-23 11:56:31 -03:00
rezzaghi
ce70fce3b2
Add path to error message when trying to read directory
2022-09-23 11:01:00 -03:00
Anton-4
ef9c77409f
Merge remote-tracking branch 'upstream/main' into swiftuidemo
2022-09-23 12:04:34 +02:00
Ayaz
06610b7a0d
Merge pull request #4092 from roc-lang/fix-builtin-importing
...
Import Encode/Decode modules, and their types, in all scopes
2022-09-23 04:25:06 -05:00