Git Product home page Git Product logo

Comments (20)

duweizhuo avatar duweizhuo commented on September 24, 2024 1

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

Hello @averter

I'm sorry for this. I never had the need to use tramp for apdl coding :-). Let's see:
First of all file:/// is working for me locally on Ubuntu with EWW.
It seems that file: is also working under Linux and with a locally installed Ansys help. :-)

Just pushed it on Github. Could you please update the mode on Melpa and check, if it is working for you now?
Or are you using melpa stable?

from apdl-mode.

averter avatar averter commented on September 24, 2024

Thanks for your quick reply. I am not using melpa-stable, however, after refreshing I can only find the previous commit, i.e. 4ed7d6e
Temporarily I've changed the files apdl-mode.el and apdl-process.el myself but I still get the same problem. I suspect that tramp and eww don't get along well!

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

Please wait a bit longer it takes up to 2 hours for Melpa to compile all the latest commits.

from apdl-mode.

averter avatar averter commented on September 24, 2024

I've upgraded it now and made some extra tests. The error message is slightly different url-file: File does not exist: file:/ssh:myname@myremote:/ansys_inc/v140/commonfiles/help/en-us/help/ans_cmd/Hlp_C_FINISH.html, so with only one trailing forward slash. I've tried to do eww-open-file and use tramp syntax for the file /ssh:myname@myremote:/ansys_inc/v140/commonfiles/help/en-us/help/ans_cmd/Hlp_C_FINISH.html but the error is the same and by default it puts exactly three trailing forward slashes. Unfortunately, I can't find any example online of someone trying to open an html file located on a remote server using eww or w3m. I suspect that tramp and eww don't work well together.

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

One could ask on emacs.help..

Is it possible for you to access the online help of Ansys in a browser on your machine?

Can you access this html file Hlp_C_FINISH.html with tramp in Emacs without using EWW?

from apdl-mode.

averter avatar averter commented on September 24, 2024

No, I cannot access the online help of Ansys (don't want to create an online account), and yes, I can edit the html file with tramp in emacs, so I have access to the file/it exists.

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

I tried now to read a file with EWW remotely with TRAMP and I can't reach it either.

So I've asked in gmane.emacs.help for ideas. In the worst case I'll report this as a EWW bug.

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

Michael Albinus (the tramp guy :-) already hinted at a workaround:
(eww-open-file (file-local-copy "/ssh:wawa:/tmp/Hlp_C_FINISH.html"))
As long as EWW is not supporting remote files you could copy a temporary file on your machine.

What do you think of this workaround? We could write a small apdl-mode wraper around such calls..

from apdl-mode.

averter avatar averter commented on September 24, 2024

I'm surprised that eww doesn't support such functionality. It's an interesting solution. The only shortcoming is that it's probably slower than accessing it directly on the remote or via the online help system. Yes, let's try and see how it goes.
I think this feature is relevant because ansys can be very demanding computationally, and it will often be installed on remote servers. Don't you agree?

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

I'm surprised that eww doesn't support such functionality.

Well, eww is rather young and if only few have such a use case..

It's an interesting solution.

Unfortunately Michael also pointed out that with this the links wont work!

The only shortcoming is that it's probably slower than accessing it directly on the remote or via the online help system. Yes, let's try and see how it goes.

I can tell you that for me working under a company VPN using the online help was not usable, it is so slow! I don't think making a local copy of the small html files will be noticable.

What I did is to install just the Ansys help package (1.7 GB vor v201 though) locally, you can download it on the Ansys portal if you have a company account. Or download the respective directory structure from your server.
You just need to configure the apdl-help-path I think..

I think this feature is relevant because ansys can be very demanding computationally, and it will often be installed on remote servers. Don't you agree?

I totally agree and I even consider C-c C-b as THE core feature of APDL-Mode for most (WorkBench) users nowadays.

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

For your information @averter

We might be lucky, Lars Magne Ingebrigtsen (the EWW and Gnus guy :-) is judging the behaviour of EWW as a bug. So I submitted a bug report: (debbugs-gnu-bugs 40425)

And the chances are good that someone will improve EWW in this respect. :-)

from apdl-mode.

averter avatar averter commented on September 24, 2024

Many thanks for the update @dieter-wilhelm. So at the end this issue ends up classed as a bug from eww - I'll be looking forward to a new version. Should I close this issue or do you want me to leave it open? Thanks again for your support.

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

You are very welcome and thanks for your feedback! I suggest to leave it open as long as this bug is not resolved, even if it isn't a bug in A-M, maybe it can be useful as a warning for others...

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

By the way of your FINISH command, I realised today that the abbreviation facility was broken in A-M.
Now you can type `1 and SPACE or C-j again (backquote and one, as for the first line before another processor :-). Have fun with Emacs!

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

I'm closing this issue because Lars Ingebrigtsen, together with Michael Albinus, fixed this today in the master branch of Emacs. (I checked it for the ssh method of Tramp.)

I hope that Corwin Brust will soon build the next binary snapshots of Emacs-29 for Windows (Emacs-28 will be the next release).

Currently the snapshots are put here: http://alpha.gnu.org/gnu/emacs/pretest/windows/

from apdl-mode.

yangdawei avatar yangdawei commented on September 24, 2024

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

这是来自QQ邮箱的假期自动回复邮件。您好,我已收到您的邮件。

Could you please translate this into English? :-)

Thank you

from apdl-mode.

yangdawei avatar yangdawei commented on September 24, 2024

from apdl-mode.

dieter-wilhelm avatar dieter-wilhelm commented on September 24, 2024

Thanks for duweizhuo. It's auto-reply email with a meanlingless greeting. And wish Dielter and his apdl-mode project good luck. 杨大伟 哈尔滨工业大学交通科学与工程学院桥梁工程系 电话

I'm sorry, I forgot that you are subscribed to this project. I understand now this message, thanks.

from apdl-mode.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.