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

Error while editing smarty templates (with javascript) #59

Closed
intinig opened this issue Apr 10, 2013 · 15 comments
Closed

Error while editing smarty templates (with javascript) #59

intinig opened this issue Apr 10, 2013 · 15 comments
Labels

Comments

@intinig
Copy link

intinig commented Apr 10, 2013

I get this error "web-mode-scan-region: Invalid function: web-mode-with-silent-modifications" whenever I try to edit one of the smarty templates in a project of mine.

Running web-mode on emacs 24.3.50.1

@fxbois
Copy link
Owner

fxbois commented Apr 10, 2013

@intinig can you put your example on gist.github.com please

@fxbois
Copy link
Owner

fxbois commented Apr 10, 2013

@intinig does the last commit triggers the same error ?

@NetMage
Copy link

NetMage commented Apr 10, 2013

FYI, I got this error when I first added web-mode but once I byte-compiled the web-mode.el file it seemed to go away.

@fxbois fxbois closed this as completed Apr 10, 2013
@fxbois fxbois reopened this Apr 10, 2013
@intinig
Copy link
Author

intinig commented Apr 11, 2013

@fxbois https://gist.github.com/5361590

I tried the last commit but I still get that error.

@fxbois
Copy link
Owner

fxbois commented Apr 11, 2013

@intinig are you sure you have the last commited version ? do you byte-compile it ?

What is the langage you use in your example ... I ve never seen {1 } tags

@intinig
Copy link
Author

intinig commented Apr 11, 2013

I am at e93db, that is marked as the last commit on github :)

I am byte compiling it, and that templating language is smarty (http://www.smarty.net)

Let me know if I can help you somehow!

@fxbois
Copy link
Owner

fxbois commented Apr 11, 2013

what is {1 ?

@intinig
Copy link
Author

intinig commented Apr 11, 2013

That's a downcase L :), it's a custom tag defined in a smarty_plugin uses by prestashop.

@fxbois
Copy link
Owner

fxbois commented Apr 11, 2013

and do you have the error with other template engine (ie. php file)

@intinig
Copy link
Author

intinig commented Apr 11, 2013

Yes. Same error. I'll try running emacs with just web-mode loaded to see if this comes from some kind of code clash. I doubt it, but let's check :)

@intinig
Copy link
Author

intinig commented Apr 11, 2013

Here's an interesting tidbit: clean emacs, I drop web-mode.el inside .emacs.d, and run byte-compile-file on it. I get this error

Compiling file /Users/intinig/.emacs.d/web-mode.el at Thu Apr 11 10:38:18 2013

In end of data:
web-mode.el:5100:1:Warning: the function `web-mode-with-silent-modifications'
    is not known to be defined.

@fxbois
Copy link
Owner

fxbois commented Apr 11, 2013

so strange ... I ll look at it tonight.

And when you don't compile it you also have an error, isn't it ?

@intinig
Copy link
Author

intinig commented Apr 11, 2013

No, I just tried, and placing web-mode.el inside a clean emacs, and loading it with

(load "~/.emacs.d/web-mode.el")

and turning it on on a .tpl file gives me no error.

@fxbois
Copy link
Owner

fxbois commented Apr 11, 2013

is it better with the last commit ?

@intinig
Copy link
Author

intinig commented Apr 12, 2013

Seems fixed :) I'll investigate more but for now it works

@fxbois fxbois closed this as completed Apr 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants