Commit graph

28390 commits

Author SHA1 Message Date
Agus Zubiaga
f69bc2e46f
Merge branch 'main' into inline-imports 2024-04-23 18:57:20 -03:00
Agus Zubiaga
7efc7a4a3e
Canonicalize ingested files directly instead of creating AST nodes 2024-04-23 18:55:41 -03:00
Anton-4
02333fe455
Merge pull request #6668 from roc-lang/basic-cli-0-9-1-upgrade
upgrade to basic-cli 0.9.1
2024-04-23 21:26:48 +02:00
Anton-4
5700ca712f
Merge pull request #6666 from roc-lang/basic-cli-0-9-1
basic-cli release fixes
2024-04-23 20:28:34 +02:00
Anton-4
f4c2a7f862
back to normal CI 2024-04-23 19:41:24 +02:00
Anton-4
3c899d80e7
Merge pull request #6667 from roc-lang/macos-13-zlib
fix missing zlib on macos-13
2024-04-23 19:21:49 +02:00
Anton-4
29e59dfec9
upgrade to basic-cli 0.9.1 2024-04-23 19:06:33 +02:00
Anton-4
05ab4fc67d
fix missing zlib on macos-13
zlib suddenly is no longer included in the macos 13 github action runner image...

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-04-23 17:10:00 +02:00
Anton-4
b084c18e63
use correct src files 2024-04-23 16:42:45 +02:00
Anton-4
c5c0fe9453
debugging
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-04-23 16:02:59 +02:00
Anton-4
880be09d77
Merge pull request #6662 from roc-lang/issue-6661
Support additional trailing `!`
2024-04-23 13:42:21 +02:00
Anton-4
8902f3e9e3
fix typo
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-04-23 12:57:04 +02:00
Anton-4
7b594fc112
basic-cli-091-release 2024-04-23 12:47:39 +02:00
Anton-4
4ef7e254f0
Merge pull request #6665 from JackoCoolio/fix-nix-build
Fix lang-server nix package build crash
2024-04-23 11:57:11 +02:00
Jackson Wambolt
442121bfc7
Fix lang-server nix package build crash 2024-04-22 21:25:46 -05:00
Agus Zubiaga
a832de79d7
Remove unused import in virtual-dom Html.Internal.Client 2024-04-22 19:56:30 -03:00
Agus Zubiaga
6006669702
Report unused imports after canonicalizing platform requires ann 2024-04-22 19:53:19 -03:00
Agus Zubiaga
d952d5576a
Handle explicit builtin imports with empty exposing lists
Also includes related style suggestions by Ayaz on #6658
2024-04-22 18:29:48 -03:00
Agus Zubiaga
66bf955a6e
can/def match => if..let 2024-04-22 17:51:51 -03:00
Agus Zubiaga
d17eb8d340
Remove #[inline] ann for can::Env::module_exists_but_not_imported 2024-04-22 17:47:02 -03:00
Agus Zubiaga
4476277a56
Merge branch 'main' into inline-imports 2024-04-22 17:45:25 -03:00
Luke Boswell
84cd4233be
clippy fix 2024-04-22 18:55:34 +10:00
Luke Boswell
aa5dc09900
support for more trailing ! 2024-04-22 18:38:51 +10:00
Luke Boswell
32c4083364
add new tests for trailing ! 2024-04-22 18:38:26 +10:00
Luke Boswell
e4713ce2c5
Merge pull request #6657 from roc-lang/issue-6074
Fix parsing lists in tag patterns
2024-04-22 12:11:31 +10:00
Ayaz
fe462d77de
Merge pull request #6660 from roc-lang/ayaz/cleanup-language-server
Rename language_server and some minor cleanup
2024-04-21 19:06:30 -05:00
Ayaz Hafiz
2763bc57cb
Some minor cleanup in language_server 2024-04-21 18:19:59 -05:00
Ayaz Hafiz
88c4a3af4e
Rename lang_srv to language_server 2024-04-21 18:03:56 -05:00
Richard Feldman
0d44ebb46e
Merge pull request #6659 from roc-lang/add-new-sponsors
Add new individual sponsors
2024-04-21 15:18:38 -04:00
Richard Feldman
e9a4335cc2
Add @AngeloChecked to sponsors - thank you so much! 💜 2024-04-21 15:17:41 -04:00
Richard Feldman
839cf0ca45
Add @noverby to sponsors - thank you so much! 💜 2024-04-21 15:17:22 -04:00
Richard Feldman
2c480dda54
Fix some missing HTML tags 2024-04-21 15:16:59 -04:00
Agus Zubiaga
5112e064e5
Add module_path to can env instead of threading it through 2024-04-21 10:30:34 -03:00
Agus Zubiaga
e5789158e5
Remove todo on ingested file handling 2024-04-21 10:13:26 -03:00
Agus Zubiaga
1b3c16e517
Handle import ValueDef in lang_srv tokens 2024-04-21 09:39:39 -03:00
Luke Boswell
d69d2ee940
replace removed comment 2024-04-21 13:45:04 +10:00
Luke Boswell
9ad6d9248c
converge loc_pattern_help_help and loc_parse_tag_pattern_arg 2024-04-21 13:32:38 +10:00
Luke Boswell
6844df6c37
fix parsing lists in tag patterns 2024-04-21 13:27:50 +10:00
Agus Zubiaga
7ebfc6d06d
Support both inline and header imports
Load will now convert header imports to inline import defs, so that
we can support both temporarily.
2024-04-20 19:04:09 -03:00
Luke Boswell
4cf256c6b7
Merge pull request #6654 from joshuawarner32/proposed_check_indent_fix
Remove unnecessary arg to check_indent
2024-04-21 07:49:17 +10:00
Luke Boswell
397055c0c6
Merge pull request #6655 from joshuawarner32/fix-fuzz-build
Fix syntax fuzzer cargo config
2024-04-21 07:48:05 +10:00
Joshua Warner
a24daeaa57
Fix syntax fuzzer cargo config 2024-04-20 11:21:36 -07:00
Agus Zubiaga
7a53484479
Report an error when import shadows a symbol in scope 2024-04-20 12:38:17 -03:00
Agus Zubiaga
979aff8bf7
Explicit builtin import warning
We will now show a warning if a builtin is imported explicitly,
since this is unncessary.

We will not show the warning if they expose functions from the builtin:

	import Dict exposing [isEmpty]

However, we will show a special warning if they expose types from it:

	import Dict exposing [Dict, isEmpty]
2024-04-20 12:35:46 -03:00
Agus Zubiaga
3217e5a3f0
Allow dots in import module names
We found some issues with the private submodules part of the proposal [1],
and we decided to keep module directories for now.

[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit#heading=h.x84bh32l37em
2024-04-20 12:33:02 -03:00
Agus Zubiaga
b56f029a09
Fix unqualified unused import false positive
If we exposed a symbol in an import and used it both unqualified
and qualified, we'd produce an unused warning false positive.

This happened because we were using a single bit flag to determine
whether a value was used qualified or unqualified.
2024-04-20 12:18:52 -03:00
Agus Zubiaga
1f347f6ca1
Fix package module resolution in inline imports
We were still passing `ModuleIds` from `load` to `can`, but now
that imports can appear in any scope, we don't know which package
an unqualified module name belongs to from the top level.

We now pass `PackageModuleIds` instead  and keep a Map of `ModuleName` to
`ModuleId` in `Scope`.

This also allow us to import multiple modules with the same name from different
packages as long as a unique alias is provided.
2024-04-20 12:16:37 -03:00
Agus Zubiaga
842a256907
Implement import aliases
Allows a module to be imported with an alias:

    import JsonDecode as JD

Import aliases must be unique and they cannot have the same name
as an imported module.
2024-04-20 12:07:01 -03:00
Agus Zubiaga
d5a38a26db
Merge branch 'main' into inline-imports 2024-04-20 12:01:11 -03:00
Anton-4
a6f47fb50f
Merge pull request #6653 from roc-lang/dependabot/cargo/rustls-0.21.11
Bump rustls from 0.21.7 to 0.21.11
2024-04-20 14:51:43 +02:00