Giter Site home page Giter Site logo

Comments (5)

jasonrclark avatar jasonrclark commented on July 28, 2024 1

Hi @rajkumar18, thanks for the detailed report and the code to reproduce the problem!

So the root cause of your application failing is in the index method. The para and first link line in that method both need a , at the end of them--the whole thing is one call to para, with the links as parameter.

So index should look like this:

def index
		para "Books I've read: ",
		link("by Mark Twain", :click =>"/twain"),
		link("by Kurt Vonnegut", :click => "/kv")
	end

(I also noticed in testing that the line with url 'kv'... should be url '/kv'... or the link to work properly (note the slash inside the string).

The error message you got was not very helpful. I totally didn't understand why it was failing until I debugged for several minutes! I'll see if I can make that error message clearer for the future, but in the meantime adding those commas and fixing that forward slash should get your app running.

from shoes4.

jasonrclark avatar jasonrclark commented on July 28, 2024 1

@rajkumar18 Ah, that's a great question. That was actually a bug in Shoes itself that you tripped across. It was supposed to just log a warning, but a bug at that point threw an exception which fouled up the main UI loop.

Anyone making a similar syntax mistake from here forward should get a message instead of what you saw after #1570 gets released (hopefully soon!)

from shoes4.

rajkumarGosavi avatar rajkumarGosavi commented on July 28, 2024

Thank you for your reply. I will make changes asap. Also is the following code was taken from the book available on the official site. So is there any other resource I can follow?

from shoes4.

jasonrclark avatar jasonrclark commented on July 28, 2024

Is the link you followed from the official site (http://shoesrb.com) pointed to http://evc-cit.info/cit020/nks.pdf? Looking at page 31 in that doc I see this, which includes the commas as needed:

image

The official site is the best answer I have for resources, but I'm looking to give it a refresh soon and will see if there are other things out there that could be linked to.

from shoes4.

rajkumarGosavi avatar rajkumarGosavi commented on July 28, 2024

Thank you. I realize it was a syntax mistake.
One question is, why did shoes didn't warned or terminated the program while executing?
Instead it completely messed up the GUI.

from shoes4.

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.