Giter Club home page Giter Club logo

luapress_sections's People

Contributors

sensestage avatar

Stargazers

 avatar

Watchers

 avatar  avatar

luapress_sections's Issues

/usr/bin/lua5.1: /usr/local/share/lua/5.1/luapress/util.lua:162: attempt to call a nil value

Hi, thanks for creating this plugin. I don't expect any support on this after all these years, so don't sweat it. Here are some issues I came across trying to get it this to work. I have very limited lua skills but I tried my best:

I got stuck here:

/usr/bin/lua5.1: /usr/local/share/lua/5.1/luapress/util.lua:162: attempt to call a nil value
stack traceback:
	/usr/local/share/lua/5.1/luapress/util.lua:162: in function '_process_plugins'
	/usr/local/share/lua/5.1/luapress/util.lua:223: in function '_process_content'
	/usr/local/share/lua/5.1/luapress/util.lua:312: in function 'load_markdowns'
	/usr/local/share/lua/5.1/luapress.lua:216: in function 'build'
	...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:210: in function 'build'
	...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:237: in main chunk
	[C]: ?

i changed the plugin name from "Luapress_sections-master" to "sections" and got a different error:

/usr/bin/lua5.1: ...rocks-5.1/luapress/4.1.2-0/plugins/sections/init.lua:171: attempt to call upvalue 'markdown' (a table value)
stack traceback:
	...rocks-5.1/luapress/4.1.2-0/plugins/sections/init.lua:171: in function '_load_markdowns'
	...rocks-5.1/luapress/4.1.2-0/plugins/sections/init.lua:235: in function 'plugin'
	/usr/local/share/lua/5.1/luapress/util.lua:169: in function '_process_plugins'
	/usr/local/share/lua/5.1/luapress/util.lua:223: in function '_process_content'
	/usr/local/share/lua/5.1/luapress/util.lua:312: in function 'load_markdowns'
	/usr/local/share/lua/5.1/luapress.lua:216: in function 'build'
	...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:210: in function 'build'
	...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:237: in main chunk

I don't know if it I fixed or merely bypassed this issue, but i change the init.lua line 171:

-- item.content = markdown(s)            
item.content = markdown[s]

then I got here and got stuck again.

/usr/bin/lua5.1: /usr/local/share/lua/5.1/luapress/template.lua:74: attempt to concatenate local 'code' (a nil value)
stack traceback:
	/usr/local/share/lua/5.1/luapress/template.lua:74: in function 'process'
	/usr/local/share/lua/5.1/luapress/template.lua:117: in function 'process'
	/usr/local/share/lua/5.1/luapress/util.lua:87: in function 'write_html'
	...rocks-5.1/luapress/4.1.2-0/plugins/sections/init.lua:254: in function 'plugin'
	/usr/local/share/lua/5.1/luapress/util.lua:169: in function '_process_plugins'
	/usr/local/share/lua/5.1/luapress/util.lua:223: in function '_process_content'
	/usr/local/share/lua/5.1/luapress/util.lua:312: in function 'load_markdowns'
	/usr/local/share/lua/5.1/luapress.lua:216: in function 'build'
	...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:210: in function 'build'
	...lib/luarocks/rocks-5.1/luapress/4.1.2-0/bin/luapress:237: in main chun

thanks for listening :)

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.