Stream: helpdesk (published)

Topic: GTK not loading on 1.8.5


view this post on Zulip Notification Bot (May 09 2023 at 20:03):

A message was moved here from #helpdesk (published) > Why is this not typestable? by Sukera.

view this post on Zulip Sukera (May 09 2023 at 20:03):

what error do you get?

view this post on Zulip Sukera (May 09 2023 at 20:03):

have you tried ]resolve and ]instantiate afterwards?

view this post on Zulip Sukera (May 09 2023 at 20:05):

Project.toml doesn't store any versions of a particular instantiation, only the package UUIDs (which identify which package is a dependency) and the compat bounds (which state which versions of a given package a project is compatible with)

view this post on Zulip Sukera (May 09 2023 at 20:05):

or simply ]up?

view this post on Zulip Phil Tomson (May 09 2023 at 20:06):

Oh, sorry, ended up in the wrong channel or something, I haven't been on here in ages...
It was a compile error of some sort. I was able to get them loaded by manually adding, I'll try the ]resolve and ]instantiate.

view this post on Zulip Phil Tomson (May 09 2023 at 20:09):

Would it be ]activate . followed by ]resolve and then `]instantiate'?

view this post on Zulip Sukera (May 09 2023 at 20:17):

yes, you'll have to activate the environment of the project

view this post on Zulip Sukera (May 09 2023 at 20:17):

don't just add all the dependencies to your main/default environment :)

view this post on Zulip Phil Tomson (May 09 2023 at 20:26):

Yeah, when I try that I get a bunch of errors like:
RROR: The following 2 direct dependencies failed to precompile:

Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]

Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to /home/phil/.julia/compiled/v1.8/Images/jl_TRVB3o.
ERROR: LoadError: ArgumentError: Package CompilerSupportLibraries_jll does not have Pkg in its dependencies:

view this post on Zulip Sukera (May 10 2023 at 07:07):

can you share the Project.toml and Manifest.toml for that? This shouldn't happen :thinking:

view this post on Zulip Phil Tomson (May 10 2023 at 17:28):

I'm pretty sure it has something to do with a difference in the Project.toml and Manifest.toml since an earlier version of Julia (IIRC 1.6.3 worked for this project.). I removed them and regenerated them and that seemed to work.

view this post on Zulip Mason Protter (May 10 2023 at 17:33):

Yeah, there's no gaurentees that a manifest can be re-used between julia versions

view this post on Zulip Mason Protter (May 10 2023 at 17:33):

Nowadays we even warn people if they use a manifest that was generated on a different version for this reason

view this post on Zulip Phil Tomson (May 10 2023 at 17:35):

So do you save the toml files in github (or whatever your version control is)
or do you just regen them every time you move to a new version of Julia?

view this post on Zulip Mason Protter (May 10 2023 at 17:36):

I only save the Project.toml file to github

view this post on Zulip Mason Protter (May 10 2023 at 17:36):

The Manifest is only for exact reproducibility, and in that case you want to use it with the same julia version anyways

view this post on Zulip Phil Tomson (May 10 2023 at 17:37):

ah, ok. That's what I did wrong, then.

view this post on Zulip Phil Tomson (May 10 2023 at 17:38):

I'd developed this this package on 1.6, IIRC ( a couple of years ago).

view this post on Zulip Sukera (May 11 2023 at 05:05):

it depends on what the project is for - if you develop an application, saving the Manifest.toml certainly makes sense for reproducibility. For regular packages though, I usually stick to just having Project.toml


Last updated: Oct 02 2023 at 04:34 UTC