GitbookIO / gitbook

The open source frontend for GitBook doc sites
https://www.gitbook.com
GNU General Public License v3.0
27.19k stars 3.87k forks source link

expected variable end (In file '02.2.md') #1198

Closed snowdream closed 7 months ago

snowdream commented 8 years ago

OS: Win7 Gitbook : 1.0.1 Nodejs: v5.4.0

When i try to run the command gitbook build under the book,"build-web-application-with-golang", i got errors as follows.

$ gitbook build
info: loading book configuration....OK
info: load plugin gitbook-plugin-highlight ....OK
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: >> 4 plugins loaded
info: Parsing multilingual book, with 6 languages
info: Preparing language book en
info: Preparing language book fr
info: Preparing language book zh
info: Preparing language book ja
info: Preparing language book pt-br
info: Preparing language book de
info: loading book configuration....OK
info: load plugin gitbook-plugin-highlight ....OK
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: >> 4 plugins loaded
info: loading book configuration....OK
info: load plugin gitbook-plugin-highlight ....OK
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: >> 4 plugins loaded
info: loading book configuration....OK
info: load plugin gitbook-plugin-highlight ....OK
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: >> 4 plugins loaded
info: loading book configuration....OK
info: load plugin gitbook-plugin-highlight ....OK
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: >> 4 plugins loaded
info: loading book configuration....OK
info: load plugin gitbook-plugin-highlight ....OK
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: >> 4 plugins loaded
info: loading book configuration....OK
info: load plugin gitbook-plugin-highlight ....OK
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: >> 4 plugins loaded
info: start generation with website generator
info: clean website generator
info: OK
info: start generation with website generator
info: clean website generatorOK

Template render error: (D:\workspace\snowdream\gitbook\gitbook\build-web-application-with-golang\en\02.2.md) [Line 282, Column 25]
  expected variable end (In file '02.2.md')
SamyPesse commented 8 years ago

Is your book on GitHub? If yes, can you paste me the link so that I can see the content of 02.2.md.

snowdream commented 8 years ago

@SamyPesse https://github.com/Gitbook-Unofficial/build-web-application-with-golang/blob/master/en/02.2.md

SamyPesse commented 8 years ago

What is the output of:

gitbook current
snowdream commented 8 years ago

@SamyPesse

$ gitbook current

Command current doesn't exist, run 'gitbook help' to list commands.
SamyPesse commented 8 years ago

Ok, it changed in the latest version of gitbook-cli, run:

gitbook versions:print
snowdream commented 8 years ago
$ gitbook versions:print
GitBook version is 2.6.6
Wohlie commented 8 years ago

Hi, I have the same Problem with 2.6.7.

Add *{{var sku}}` at the end ofSUMMARY.md` to reproduce.

Is there currently any way to escape the variable sequence? I currently use the Unicode char U+200B between the {{ to fix the problem.

t3573393 commented 8 years ago

i also meet this problems just like the error : expected variable end in the output, the text like this: Database.find(withSubstring("select"), any); (1)

nagim commented 8 years ago

Hi,

I enclose the problematic parts in the {% raw %} {% endraw %} in my codeblocks.

Cheers, Imre

ljharb commented 7 months ago

@addisonschultz can you link to a PR or commit that fixed this?

addisonschultz commented 7 months ago

Hi @ljharb - This version of GitBook has been deprecated for the last few years, and hasn't been under active development for a while. You can read more about that here: https://github.com/GitbookIO/gitbook/tree/legacy?tab=readme-ov-file

This repository is now home to the rendering engine of the most up-to-date version of GitBook. Further development of this version will continue to be found in this repository!

ljharb commented 7 months ago

ok, and is this problem addressed in that?

addisonschultz commented 7 months ago

This version of GitBook is deprecated, so unfortunately this and other issues will not be fixed moving forward