Code Monkey home page Code Monkey logo

Comments (11)

haxney avatar haxney commented on July 17, 2024

What do you mean by "Can not type the code"? Does Emacs raise an error when you try to enter the } character? Does syntax highlighting stop working?

Please try it from a clean launch of Emacs with emacs -Q and loading only prelude and php-mode. Also, what is your Emacs version?

from php-mode.

ejmr avatar ejmr commented on July 17, 2024

Hi @saharabear

It can be difficult to track down bugs caused by a conflict between two packages. Definitely take the good advice from @haxney and run emacs -Q. After that try loaded only php-mode and see if you have the same problem. If it works fine, close Emacs and run emacs -Q again, and this time load prelude and php-mode. Then try to repeat the problem again.

If any error happens there may be output in the *Messages* buffer which could be useful to help pin-point the problem.

from php-mode.

saharabear avatar saharabear commented on July 17, 2024

Hi,

I have tried to use emacs -Q, then load the last version of php-mode, then everything works well.

then I tried to load php-mode and prelude-prelude.el, then everything works well.

but then I load all stack of prelude and php-mode, when I try to enter that codes, at last, when I input the last "})", emacs auto delete the first line, if I wrote " })->name(", I can not go on, because I want to write '-name("something")', when I type '("something")', then emacs auto delete this part. '})->'

My Emacs is 24.2.1, I have tested on ubuntu, centos, freebsd.

Nothing useful messages output in the Messages buffer.

I know this is a strange problem, any tips for me to debug the problem? or I can give some of you a shell to login to my system and find out the problem?

Thanks.

from php-mode.

saharabear avatar saharabear commented on July 17, 2024

additional information:

I find the code in prelude,
(setq-default indent-tabs-mode nil) ;; don't use tabs to indent
(setq-default tab-width 8) ;; but maintain correct appearance

I think that means use blank space instead of tab, I tried tab with python-mode, c-mode, all tabs auto convert to blank space, but can not auto convert in php-mode.

This auto convert works with php-mode-20121128, not works with php-mode-current.

sorry for my poor english and lisp skills, if it's not easy to find out the problem, you can give me some tips, then I could have a try to find out.

from php-mode.

ejmr avatar ejmr commented on July 17, 2024

Thanks for the information @saharabear

Prelude provides a lot of modules. Which ones are you using? I am going to try to duplicate the problem on my computer by using the same ones you are.

sorry for my poor english and lisp skills

No need to apologize. If users feel like they need Elisp skills to use php-mode then I am doing something wrong, heh. Also feel free to explain things in your native language if that would be easier, although there is nothing wrong with your English either.

from php-mode.

saharabear avatar saharabear commented on July 17, 2024

Thanks, Eric(@ejmr), I have sent you an email, hope the information could help you to duplicate the problem.

I use the following command: $curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh

to install prelude, then open php file, emacs auto install php-mode for me.

then I meet the issue.

Thanks.

from php-mode.

ejmr avatar ejmr commented on July 17, 2024

Thanks for the email @saharabear. I was able to duplicate the problem on your system. That is definitely a bizarre bug. I thought maybe it was a display error, but it is actually deleting characters.

I am going to try to duplicate the problem on my own computer because that will make it easier to debug, and I'll let you know if I have any success. In the mean time unfortunately all I can suggest is to revert back to the last version of php-mode you used which did not cause this bug.

from php-mode.

saharabear avatar saharabear commented on July 17, 2024

Thanks very much, now I switch to php-mode 20121128.

from php-mode.

ejmr avatar ejmr commented on July 17, 2024

Not sure what we did to fix this problem, but it's fixed at least, so time to close this issue.

from php-mode.

saharabear avatar saharabear commented on July 17, 2024

Now on opensuse 12.3, GNU Emacs 24.2.1 (x86_64-suse-linux-gnu, GTK+ Version 3.6.4) of 2013-02-21 on build16.

Not fixed.

from php-mode.

syohex avatar syohex commented on July 17, 2024

I cannot reproduce this issue.
Please reopen if you still have this issue.

from php-mode.

Related Issues (20)

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.