Tim Hutt

Results 711 comments of Tim Hutt

It would be nice if foreign keys were still allowed but not enforced. That way you don't need to alter your code, tools would still work with it (e.g. GUIs...

Yeah I don't think it will be sadly - this extension seems to be not maintained, at least currently. Bit of a shame given how good it is, but people...

Ah yeah a newer version worked. I was using an older version of OCaml because a project told me to use 4.08 or something, but I checked again and it...

Oh sorry, I don't know why I thought it had worked. It actually didn't. :-/ ``` ❯ opam install ocaml-lsp-server The following actions will be performed: ↘ downgrade omd 2.0.0~alpha3...

The error is the same: ``` Error: /home/mycompany.com: Permission denied -> required by _build/default/ocaml-lsp-server/bin/.main.eobjs/build_info_data.ml-gen -> required by _build/default/ocaml-lsp-server/bin/.main.eobjs/native/build_info__Build_info_data.cmx -> required by _build/default/ocaml-lsp-server/bin/main.exe -> required by _build/install/default/bin/ocamllsp -> required by _build/default/ocaml-lsp-server.install...

I `strace`d it and it turns out there is some thing scanning all parent directories: ``` 262848 stat("/home/company.com/timothy.hutt/.cabal/bin/js_of_ocaml", 0x7ffcff76a530) = -1 ENOENT (No such file or directory) 262848 openat(AT_FDCWD, "/home/company.com/timothy.hutt/.opam/default/.opam-switch/build",...

You don't need `Field` to reproduce this: ``` from pydantic import BaseModel class Config(BaseModel): options: "list[str]" config = Config(options=[]) config.options += ["hello"] ```

Rust does it internally for all the `NonZero` types using #[rustc_layout_scalar_valid_range_start(1)] There is also `rustc_layout_scalar_valid_range_end()`. However these can only be used internally (or maybe on nightly). So the only way...

Ok I have implemented this, essentially all you have to do is change `app.ts:22` to this: ```typescript const result = ts.parseJsonConfigFileContent( parseJsonResult.config, ts.sys, basePath, undefined, undefined, undefined, [ { extension:...