mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Update
This commit is contained in:
parent
70ead37ade
commit
289b1ea35a
3 changed files with 9 additions and 0 deletions
|
@ -16,6 +16,7 @@ roc_reporting = { path = "../reporting" }
|
||||||
roc_solve_problem = { path = "../compiler/solve_problem" }
|
roc_solve_problem = { path = "../compiler/solve_problem" }
|
||||||
roc_target = { path = "../compiler/roc_target" }
|
roc_target = { path = "../compiler/roc_target" }
|
||||||
roc_types = { path = "../compiler/types" }
|
roc_types = { path = "../compiler/types" }
|
||||||
|
roc_packaging = {path = "../packaging"}
|
||||||
|
|
||||||
bumpalo = { version = "3.8.0", features = ["collections"] }
|
bumpalo = { version = "3.8.0", features = ["collections"] }
|
||||||
|
|
||||||
|
|
|
@ -147,6 +147,12 @@ pub(crate) mod diag {
|
||||||
LoadingProblem::IncorrectModuleName(_) => {
|
LoadingProblem::IncorrectModuleName(_) => {
|
||||||
msg = format!("Incorrect module name");
|
msg = format!("Incorrect module name");
|
||||||
}
|
}
|
||||||
|
LoadingProblem::CouldNotFindCacheDir => {
|
||||||
|
msg = format!(
|
||||||
|
"Could not find Roc cache directory {}",
|
||||||
|
roc_packaging::cache::roc_cache_dir().display()
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Some(Diagnostic {
|
Some(Diagnostic {
|
||||||
|
|
|
@ -2,6 +2,7 @@ use std::collections::HashMap;
|
||||||
|
|
||||||
use bumpalo::Bump;
|
use bumpalo::Bump;
|
||||||
use roc_load::{LoadedModule, LoadingProblem};
|
use roc_load::{LoadedModule, LoadingProblem};
|
||||||
|
use roc_packaging::cache::{self, RocCacheDir};
|
||||||
use roc_region::all::{LineInfo, Region};
|
use roc_region::all::{LineInfo, Region};
|
||||||
use roc_reporting::report::RocDocAllocator;
|
use roc_reporting::report::RocDocAllocator;
|
||||||
use roc_types::subs::Variable;
|
use roc_types::subs::Variable;
|
||||||
|
@ -76,6 +77,7 @@ impl Document {
|
||||||
Default::default(),
|
Default::default(),
|
||||||
roc_target::TargetInfo::default_x86_64(),
|
roc_target::TargetInfo::default_x86_64(),
|
||||||
roc_reporting::report::RenderTarget::Generic,
|
roc_reporting::report::RenderTarget::Generic,
|
||||||
|
RocCacheDir::Persistent(cache::roc_cache_dir().as_path()),
|
||||||
roc_reporting::report::DEFAULT_PALETTE,
|
roc_reporting::report::DEFAULT_PALETTE,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue