GithubHelp home page GithubHelp logo

Comments (4)

msiniscalchi avatar msiniscalchi commented on July 16, 2024

Thanks.. One more todo item :-(
On Jul 13, 2012 1:44 PM, "badge" <
[email protected]>
wrote:

I've been rooting around in the LaTeXTools package (wanting to implement
TeXCount.pl), and discovered that, on Windows, when a non-.tex file is in
the open view, the View PDF and Jump to PDF commands fail to warn the user
as expected. Instead, the following is printed to the console:

Traceback (most recent call last):
File ".\sublime_plugin.py", line 339, in run_
File ".\viewPDF.py", line 15, in run
AttributeError: 'View' object has no attribute 'fileName'

Sadly my lack of knowledge of Windows (usually on *nix!) and Python
(usually in Perl!) make me unable to work out what's going on.


Reply to this email directly or view it on GitHub:
#51

from latextools.

badge avatar badge commented on July 16, 2024

Got it!

sublime.error_message("%s is not a TeX source file: cannot view." % (os.path.basename(view.fileName()),))

should read

sublime.error_message("%s is not a TeX source file: cannot view." % (os.path.basename(view.file_name()),))

Check on OS X, working fine (it was also failing on OS X before).

from latextools.

msiniscalchi avatar msiniscalchi commented on July 16, 2024

Ha! Great catch! It's a ST1-ism that I failed to convert. Will do.

from latextools.

msiniscalchi avatar msiniscalchi commented on July 16, 2024

Just fixed. Closing, and thanks!

from latextools.

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.