# \#toml

**URL:** https://discourse.julialang.org/tag/toml/691.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Toml sources path is OS dependant](https://discourse.julialang.org/t/toml-sources-path-is-os-dependant/134920)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 3\
**Last updated:** [January 9, 2026, 8:37pm UTC](https://discourse.julialang.org/t/toml-sources-path-is-os-dependant/134920 "2026-01-09T20:37:41Z")

</div>

I had sources path defined in Project.toml as follows: \[sources\] App = {path = "../App.jl"} Once environment is activated and instantiated on Windows, the path auto-converts to “\\\\” version. This is fine for Windows, b…

---

## [Precompilation error. 'LoadError: UndefVarError: \`@printf\` not defined'](https://discourse.julialang.org/t/precompilation-error-loaderror-undefvarerror-printf-not-defined/107043)

<div class="topic-metadata">

**Author:** [@Purvaash](https://discourse.julialang.org/u/Purvaash)\
**Replies:** 4\
**Last updated:** [September 6, 2024, 12:56pm UTC](https://discourse.julialang.org/t/precompilation-error-loaderror-undefvarerror-printf-not-defined/107043 "2024-09-06T12:56:22Z")

</div>

Hi, I am new to Julia and Julia Discourse. I am facing the following error. I am trying to set up an environment that I found in a Git repository. The steps I followed are: git clone 23tn / 23tn-julia · GitLab Opened …

---

## [How to use \`TOML.print\` to print a \`Dict\` with keys as different \`MyStruct\` objects?](https://discourse.julialang.org/t/how-to-use-toml-print-to-print-a-dict-with-keys-as-different-mystruct-objects/100804)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 3\
**Last updated:** [June 25, 2023, 10:41pm UTC](https://discourse.julialang.org/t/how-to-use-toml-print-to-print-a-dict-with-keys-as-different-mystruct-objects/100804 "2023-06-25T22:41:49Z")

</div>

I’m currently working with a dictionary whose keys are instances of a custom struct named MyStruct. Here is the definition: struct MyStruct a::Int b::String end I need to use the TOML.print function to print th…

---

## [Link Project.toml files (or make /test/Prokect.toml depend on main package one)](https://discourse.julialang.org/t/link-project-toml-files-or-make-test-prokect-toml-depend-on-main-package-one/93223)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [January 21, 2023, 12:00am UTC](https://discourse.julialang.org/t/link-project-toml-files-or-make-test-prokect-toml-depend-on-main-package-one/93223 "2023-01-21T00:00:33Z")

</div>

I have a julia project that has a Project.toml file setting its dependencies. It also have a set of tests, for which I have a Project.toml file setting some additional dependencies that are needed for the tests only (lik…

---

## [Error: expected equal sign after key](https://discourse.julialang.org/t/error-expected-equal-sign-after-key/91786)

<div class="topic-metadata">

**Author:** [@MarawanEmara](https://discourse.julialang.org/u/MarawanEmara)\
**Replies:** 1\
**Last updated:** [December 17, 2022, 6:01pm UTC](https://discourse.julialang.org/t/error-expected-equal-sign-after-key/91786 "2022-12-17T18:01:31Z")

</div>

Hello. I am attempting to run /test/tutorial.jl from GitHub - LouisBouvier/WarcraftShortestPaths.jl. I have done everything including the decompression of the data and activating the environment using Pkg.activate(“.”),…

---

## [TOML: using to\_toml option may produce incorrect TOML](https://discourse.julialang.org/t/toml-using-to-toml-option-may-produce-incorrect-toml/86157)

<div class="topic-metadata">

**Author:** [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Replies:** 1\
**Last updated:** [August 23, 2022, 3:52am UTC](https://discourse.julialang.org/t/toml-using-to-toml-option-may-produce-incorrect-toml/86157 "2022-08-23T03:52:01Z")

</div>

This is a simplified example to illustrate the issue I’m seeing with using the TOML writer with the to\_toml option for writing a custom type. It seems that when using the to\_toml option, TOML print doesn’t print the co…

---

## [Metaprogramming with Structure: Converting Dictionary to Structure](https://discourse.julialang.org/t/metaprogramming-with-structure-converting-dictionary-to-structure/63861)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 14\
**Last updated:** [July 11, 2021, 10:40pm UTC](https://discourse.julialang.org/t/metaprogramming-with-structure-converting-dictionary-to-structure/63861 "2021-07-11T22:40:46Z")

</div>

Dear Julian colleagues, I am reading the options of my model from TOML file into Structure. With the following steps: The TOML writes into a Dict: Than I am writing a code to parse Dict into Structure The code works…

---

## [Why Pkg.jl uses TOML?](https://discourse.julialang.org/t/why-pkg-jl-uses-toml/63411)

<div class="topic-metadata">

**Author:** [@philipGaudreau](https://discourse.julialang.org/u/philipGaudreau)\
**Replies:** 6\
**Last updated:** [June 28, 2021, 11:11am UTC](https://discourse.julialang.org/t/why-pkg-jl-uses-toml/63411 "2021-06-28T11:11:58Z")

</div>

Everything is in the title. It says in the docs: toml files are not only used by the package manager; they are also used by Julia’s code loading, and determine e.g. what using Example should do. What were the reason…

---

## [How to convert TOML file into a Structure and vice versa?](https://discourse.julialang.org/t/how-to-convert-toml-file-into-a-structure-and-vice-versa/61265)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 1\
**Last updated:** [May 16, 2021, 11:22pm UTC](https://discourse.julialang.org/t/how-to-convert-toml-file-into-a-structure-and-vice-versa/61265 "2021-05-16T23:22:14Z")

</div>

Hi I have a large SoilWater-ToolBox model and I have got all the input , Parameters, as a mutable struct. In order to create a package I will need to read the parameters outside the model as recommended in previous post …
