Code Monkey home page Code Monkey logo

Comments (2)

michaliskambi avatar michaliskambi commented on June 1, 2024

The "position 1137" means that it's the 1137th character since the beginning of the file (counting newlines as 1 or 2 characters, depending whether the file uses Unix line endings or DOS/Windows line endings). It can be navigated to using Emacs "M-x goto-char ..." command. In Notepad++, it seems you can use Ctrl + G with "Offset" (http://superuser.com/questions/895025/how-to-know-cursor-position-index-in-an-editor ) or use this trick with selection: http://superuser.com/questions/895025/how-to-know-cursor-position-index-in-an-editor .

I know, it's not a proper solution, not every text editor has a feature "goto character position". We should just show the line and column number, like all normal programs:) I'll fix it in a couple of days.

from view3dscene.

michaliskambi avatar michaliskambi commented on June 1, 2024

Fixed:) view3dscene (and all other programs using Castle Game Engine) will not show nice line/column numbers in the error messages, like

view3dscene: VRML/X3D warning: Error when reading, will skip the rest of VRML/X3D file: Error at line 12 column 4: ...

The fix is in castle-engine, castle-engine/castle-engine@fd797c6 , if you're interested:) The underlying stream wrapper keeps the count of current line and column now. The X3D lexer passes this information, in case of errors/warnings. There's a number of autotests to make sure it works correctly always:)

To test the result, you can get view3dscene from snapshots: http://michalis.ii.uni.wroc.pl/castle-engine-snapshots/

Or you can of course get Castle Game Engine and view3dscene from the latest GitHub sources, and compile them yourself:)

from view3dscene.

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.