-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"FAILED TO FIND A FILE TO PARSE!" #23
Comments
Which os are you using?
…On Tue, Feb 14, 2023, 11:55 AM dkokron ***@***.***> wrote:
Fresh build and install on an Ubuntu-22.04.1 system.
I added the following to my .bashrc
source /usr/local/etc/advanced-shell-history/config
export ASH_CFG_SYSTEM_QUERY_FILE
source /usr/local/lib/advanced_shell_history/sh/bash
source ~/.bashrc
Advanced Shell History enabled: session 1
ash_query -Q
FAILED TO FIND A FILE TO PARSE!
This snippet from src/queries.cpp is looking for files in /etc/ash/queries
and $HOME/.ash/queries
/**
- Loads the configured files looking for saved queries.
*/
void Queries::lazy_load() {
// Prevent multiple loads, but allow loads for on-demand use.
static bool loaded = false;
if (loaded) return;
loaded = true;
LOG(DEBUG) << "Loading query files for saved queries.";
// Load these files, in this order.
query::files.push_back("/etc/ash/queries");
query::files.push_back(string(getenv("HOME")) + "/.ash/queries");
// Initialize the input file.
yyin = 0;
if (yywrap()) {
cout << "FAILED TO FIND A FILE TO PARSE!" << endl;
exit(1);
}
Neither of those queries files exist on my machine. Did I miss something
in the build or installation steps?
—
Reply to this email directly, view it on GitHub
<#23>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBEHHG4CMGGLZ7HRUAAUNDWXPBIPANCNFSM6AAAAAAU332DAQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Ubuntu-22.04.1
On Thu, Feb 16, 2023 at 8:41 PM Carl Anderson ***@***.***>
wrote:
… Which os are you using?
On Tue, Feb 14, 2023, 11:55 AM dkokron ***@***.***> wrote:
> Fresh build and install on an Ubuntu-22.04.1 system.
>
> I added the following to my .bashrc
>
> source /usr/local/etc/advanced-shell-history/config
> export ASH_CFG_SYSTEM_QUERY_FILE
> source /usr/local/lib/advanced_shell_history/sh/bash
>
> source ~/.bashrc
> Advanced Shell History enabled: session 1
>
> ash_query -Q
> FAILED TO FIND A FILE TO PARSE!
>
> This snippet from src/queries.cpp is looking for files in
/etc/ash/queries
> and $HOME/.ash/queries
> /**
>
> - Loads the configured files looking for saved queries.
> */
> void Queries::lazy_load() {
> // Prevent multiple loads, but allow loads for on-demand use.
> static bool loaded = false;
> if (loaded) return;
> loaded = true;
>
> LOG(DEBUG) << "Loading query files for saved queries.";
>
> // Load these files, in this order.
> query::files.push_back("/etc/ash/queries");
> query::files.push_back(string(getenv("HOME")) + "/.ash/queries");
>
> // Initialize the input file.
> yyin = 0;
> if (yywrap()) {
> cout << "FAILED TO FIND A FILE TO PARSE!" << endl;
> exit(1);
> }
>
> Neither of those queries files exist on my machine. Did I miss something
> in the build or installation steps?
>
> —
> Reply to this email directly, view it on GitHub
> <#23>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABBEHHG4CMGGLZ7HRUAAUNDWXPBIPANCNFSM6AAAAAAU332DAQ
>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACODV2FHYICSHVPKBSDCWVDWX3QMDANCNFSM6AAAAAAU332DAQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I enabled DEBUG logging in /usr/local/etc/advanced-shell-history/config and see
So I copied the file from the repo
Now I see
|
Fresh build and install on an Ubuntu-22.04.1 system.
I added the following to my .bashrc
source /usr/local/etc/advanced-shell-history/config
export ASH_CFG_SYSTEM_QUERY_FILE
source /usr/local/lib/advanced_shell_history/sh/bash
This snippet from src/queries.cpp is looking for files in /etc/ash/queries and $HOME/.ash/queries
/**
*/
void Queries::lazy_load() {
// Prevent multiple loads, but allow loads for on-demand use.
static bool loaded = false;
if (loaded) return;
loaded = true;
LOG(DEBUG) << "Loading query files for saved queries.";
// Load these files, in this order.
query::files.push_back("/etc/ash/queries");
query::files.push_back(string(getenv("HOME")) + "/.ash/queries");
// Initialize the input file.
yyin = 0;
if (yywrap()) {
cout << "FAILED TO FIND A FILE TO PARSE!" << endl;
exit(1);
}
Neither of those queries files exist on my machine. Did I miss something in the build or installation steps?
The text was updated successfully, but these errors were encountered: