Skip to content
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

ee-rg get: cat: /tmp/ee-rg.tmp: No such file or directory #19

Open
yibie opened this issue Oct 10, 2024 · 23 comments
Open

ee-rg get: cat: /tmp/ee-rg.tmp: No such file or directory #19

yibie opened this issue Oct 10, 2024 · 23 comments
Assignees

Comments

@yibie
Copy link

yibie commented Oct 10, 2024

Every command with "ee-...", error message shows up like this:

ee-rg get: cat: /tmp/ee-rg.tmp: No such file or directory

My env:

MacBook Pro M1 Pro, macOS 15, emacs 30.0.91.

@eval-exec
Copy link
Owner

eval-exec commented Oct 11, 2024

Could you enable ee-debug-message to t, what's the ee related log message in *Message* buffer?

@eval-exec eval-exec self-assigned this Oct 11, 2024
@yibie
Copy link
Author

yibie commented Oct 11, 2024

ee-yazi opening: cat: /tmp/ee-yazi.tmp: No such file or directory
ee-find-file: cat: /tmp/ee-yazi.tmp: No such file or directory
Use M-x make-directory RET RET to create the directory and its parents

@eval-exec
Copy link
Owner

what's your eee--load-file-path variable?

@yibie
Copy link
Author

yibie commented Oct 18, 2024

/Users/username/.emacs.d/elpaca/builds/eee/eee.elc

@eval-exec
Copy link
Owner

eval-exec commented Oct 18, 2024 via email

@yibie
Copy link
Author

yibie commented Oct 18, 2024

/Users/username/.emacs.d/elpaca/builds/eee/eee-rg.sh

@eval-exec
Copy link
Owner

can you execute /Users/username/.emacs.d/elpaca/builds/eee/eee-rg.sh in your teriminal?
after execution, is there some files has ee-* prefix in /tmp/ dir?

@eval-exec
Copy link
Owner

also, please update eee.el's source code.

@yibie
Copy link
Author

yibie commented Oct 18, 2024

I can execute the sh script in my terminal, and it work well.
After execution, three no ee-* preix files in /tm/ dir.

@yibie
Copy link
Author

yibie commented Oct 18, 2024

I had updated eee.el, now execute ee-rg, shows log:

wezterm --config enable_wayland=false --config enable_tab_bar=false --config initial_cols=180 --config initial_rows=50 --config window_decorations=\"NONE\" -e bash -c 'cd /Users/username/ && /Users/username.emacs.d/elpaca/builds/eee/eee-yazi.sh  > /tmp/ee-stdout-ee-yazi.tmp'
ee-rg: cd /Users/username/ && /Users/username/.emacs.d/elpaca/builds/eee/eee-rg.sh  > /tmp/ee-stdout-ee-rg.tmp

Looks like the command had been executed. But I check the /tmp/ dir, no ee-* files in there still.

@eval-exec
Copy link
Owner

eval-exec commented Oct 18, 2024 via email

@yibie
Copy link
Author

yibie commented Oct 18, 2024

zsh: permission denied: /Users/chenyibin/.emacs.d/
zsh: no such file or directory: elpaca/builds/eee/eee-rg.sh

@eval-exec
Copy link
Owner

eval-exec commented Oct 18, 2024 via email

@eval-exec
Copy link
Owner

eval-exec commented Oct 18, 2024 via email

@yibie
Copy link
Author

yibie commented Oct 18, 2024

I just forgot to change the path to my actual path, so I encountered an error. After changing it, rg was able to start normally in terminal.

@eval-exec
Copy link
Owner

I just forgot to change the path to my actual path, so I encountered an error. After changing it, rg was able to start normally in terminal.

Then ee-rg works?

@yibie
Copy link
Author

yibie commented Oct 19, 2024

No, just show the message like before. WezTerm didn't start.

@eval-exec
Copy link
Owner

eval-exec commented Oct 19, 2024 via email

@yibie
Copy link
Author

yibie commented Oct 20, 2024

After reset the PATH of wezterm, execute ee-rg, then wezterm start, and works normally, but there is another problem:

The system windows doesn't focus on wezterm.

@eval-exec
Copy link
Owner

eval-exec commented Oct 20, 2024 via email

@eval-exec
Copy link
Owner

I'm living in KDE plasma6, the related setting is:
image

@yibie
Copy link
Author

yibie commented Oct 20, 2024

Thank you, I'm using macOS, the problem isn't relate to you, it's all macOS fault. Let me figure it out.

@dezzw
Copy link

dezzw commented Dec 9, 2024

My current workaround is using Hammerspoon to watch the WezTerm. When WezTerm launches, it automatically focuses the WezTerm.

hs.application.watcher.new(function(appName, eventType)
    if eventType == hs.application.watcher.launched and appName == "wezterm-gui" then
        local app = hs.application.get(appName)
        if app then app:activate() end
    end
end):start()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants