| Deutsch English Français Italiano |
|
<87seno4lla.fsf@nosuchdomain.example.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.mail.mutt
Subject: Re: [neomutt] can't source files
Date: Fri, 07 Mar 2025 12:44:33 -0800
Organization: None to speak of
Lines: 104
Message-ID: <87seno4lla.fsf@nosuchdomain.example.com>
References: <vpkmj9$ihu$3@ereborbbs.duckdns.org>
<87jz9dprk5.fsf@nosuchdomain.example.com>
<vqea03$326$1@ereborbbs.duckdns.org>
<87a59x5coy.fsf@nosuchdomain.example.com>
<vqepej$326$2@ereborbbs.duckdns.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 07 Mar 2025 21:44:34 +0100 (CET)
Injection-Info: dont-email.me; posting-host="fe233383e8bda590fd9814f8824f4908";
logging-data="3898784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VRG1gHO9e4zQ6N2TmxsCf"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:dwMvcwy1DwLGjDm50EIGRJZSGKg=
sha1:PWAtDJdIosAOiOfCOoxCZm61WsM=
Bytes: 5541
Kyonshi <gmkeros@gmail.com> writes:
> On 3/7/2025 11:59 AM, Keith Thompson wrote:
>> Kyonshi <gmkeros@gmail.com> writes:
>>> On 2/25/2025 11:50 PM, Keith Thompson wrote:
>>>> Kyonshi <gmkeros@gmail.com> writes:
>>>>> for some reason I am getting the message "Error in
>>>>> /home/kyonshi/.mutt/muttrc, line 9: source: file
>>>>> /home/kyonshi/.mutt/colorschemes/solarized-dark-256.neomuttrc could
>>>>> not be sourced" or something similar, whenever I try to put a theme
>>>>> into my muttrc-file.
>>>>>
>>>>> (full error from ~/.neomuttdebug0 here: https://justpaste.it/je8s9 )
>>>>>
>>>>> Anyone know what I might be doing wrong?
>>>>
>>>> You say "or something similar", but the log shows something very
>>>> different:
>>>>
>>>> Error in /home/kyonshi/.mutt/muttrc, line 9: source: file /home/kyonshi/.mutt/colorschemes could not be sourced
>>>>
>>>> When posting about an error, don't show us "something similar".
>>>> Copy-and-paste the exact error message. And if it refers to a line in a
>>>> file (line 9 in your .mutt/muttrc), show us that line, with some context
>>>> if it might matter.
>> Why haven't you shown us the line in your muttrc?
>>
>>>> If "/home/kyonshi/.mutt/colorschemes/solarized-dark-256.neomuttrc",
>>>> then "/home/kyonshi/.mutt/colorschemes" is a directory, which of
>>>> course can't be sourced.
>>>>
>>>> You have (at least) two problems: you're trying to source a
>>>> directory, and you apparently *think* you're trying to source a file
>>>> under that directory.
>>>
>>> So what can be sourced?
>> A file (not a directory) containing valid neomutt commands
>> Try "man neomuttrc" and search for "source".
>>
>>> I had assumed using the entry
>>> /home/kyonshi/.mutt/colorschemes/solarized-dark-256.neomuttrc would
>>> allow me to use the theme in question,
>> Yes, it probably would.
>>
>>> but neither this nor
>>> /home/kyonshi/.mutt/colorschemes/ seems to work.
>> If you tried to source *both* of them from the same file, then the
>> failure to source the directory would probably be a fatal error.
>> The error message on justpaste.it doesn't indicate that you tried to
>> source "/home/kyonshi/.mutt/colorschemes/solarized-dark-256.neomuttrc".
>> It indicates that you tried to source
>> "/home/kyonshi/.mutt/colorschemes", which is a directory.
>> Have you tried source'ing
>> "/home/kyonshi/.mutt/colorschemes/solarized-dark-256.neomuttrc"?
>> If so, what happened?
>>
>>> According to the neomutt website it should be
>>>
>>> "Usage
>>>
>>> Add the following code in your neomuttrc:
>>>
>>> source /path/to/neomutt/colorschemes "
>> Specifically, that's from
>> <https://neomutt.org/contrib/colorschemes>.
>> "/path/to/neomutt/colorschemes" isn't meant to be taken literally.
>> You need to replace it with the path to the file you want to source.
>> In your case, "/home/kyonshi/.mutt/colorschemes" is a directory.
>>
>>> but I assumed I was using this the correct way.
>> Well, you weren't, because, once again, you can't source a
>> directory.
>>
>
> /home/kyonshi/.mutt/colorschemes/solarized-dark-256.neomuttrc also
> creates this error.
>
> The file specifically says
> source ~/.mutt/colorschemes/solarized-dark-256.neomuttrc
> this is the only source entry in the muttrc.
>
> it gives me the error
> Error in /home/kyonshi/.mutt/muttrc, line 9: source: file
> /home/kyonshi/.mutt/colorschemes/solarized-dark-256.neomuttrc could
> not be sourced
If you want help, you need to provide all the relevant information
rather than waiting to be asked for it.
Does the file "/home/kyonshi/.mutt/colorschemes/solarized-dark-256.neomuttrc"
exist? Have you modified it? There's a file by that name in the
neomutt sources. It's 146 lines long with an sha1 checksum of
db3391792bd428d5a9705c444c514069b383c962; does that match your copy?
Save a copy of your muttrc file and reduce it to just the line that
causes the error. Confirm that the error still occurs. Show us the
entire content of the reduced muttrc file that exhibits the error.
Repeat the same process with solarized-dark-256.neomuttrc. If there's a
problem in the content of that file, narrow it down to the line that
causes the error.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */