{"id":2316,"date":"2022-08-30T15:23:51","date_gmt":"2022-08-30T15:23:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/problem-about-sublimetext2-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:23:51","modified_gmt":"2022-08-30T15:23:51","slug":"problem-about-sublimetext2-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-sublimetext2-collection-of-common-programming-errors\/","title":{"rendered":"problem about sublimetext2-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/33757a69573ff1e18f84f71ddb0e916b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJon Lachonis<br \/>\nsublimetext2<br \/>\nI recently had a dreaded hard drive crash and had to reinstall my dev software. My problem is with sublime text 2. I had previously installed it using the guide here:http:\/\/clintberry.com\/2012\/sublime-text-2-php-symfony-development\/And replicated the instructions, but wordpress auto complete is simply not working. Any ideas?<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/srJ4L.png?s=32&amp;g=1\" \/><br \/>\nHolene<br \/>\npython gnuplot sublimetext2 importerror<br \/>\nI&#8217;m trying to use Gnuplot in a Python script I&#8217;m writing in Sublime Text. Whenever I build, I get the error messageTraceback (most recent call last): File &#8220;&#8230;&#8221; line 4, in &lt;module&gt;import Gnuplot ImportError: No module named GnuplotIf I do the exact same code lines directly in Terminal, I have no problem importing and using Gnuplot. The import error seems to be common, just with other modules. Usually the fix is related to PYTHONPATH. However, Gnuplot is on my computer located in \/Library\/F<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/105e3c4651f43eac2575dd958cf5fbcd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChris Crown<br \/>\ntext syntax-highlighting whitespace sublimetext2<br \/>\nIs there a way to highlight special whitespace characters like nbsp in Sublime Text 2? Several times I copied text from word users to my code and it crashed because I couldn&#8217;t see these &#8220;illegal&#8221; whitespace characters&#8230;Thanks! Chris<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6e527bccc2e1bf80dba6687411a36ee4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMarmiK<br \/>\nplugins windows-7 sublimetext2 sftp<br \/>\nSublimeText2 crashed when using SFTP to save on Windows 7Note: Other function work well.I have also tried uninstall it and install it again twice, but not working.thank you!<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/85f50c23bb5e9dfb061af5032bfe8e65?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCraig Ringer<br \/>\narchitecture 32bit-64bit uninstall crash-reports sublimetext2<br \/>\nI tried to re-open sublime after force quitting it. I followed instructions to return sublime to an earlier state but I had no data folder, so in an attempt to uninstall, I deleted and permanently removed everything with sublime in it. Is there any way I can uninstall sublime besides via the instructions on the &#8220;revert&#8221; page? Or change my python versioning so that sublime starts working?I also looked up other &#8220;no suitable image found&#8221; errors, and it seems like the architecture might be a problem<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0eb5bf6995005de4e15ed6c0042f7f0b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nfreemanoid<br \/>\nlinux crash sublimetext2 fedora glibc<br \/>\nSublime suddenly began to fall always after start.*** glibc detected *** sublime: free(): invalid pointer: 0x42197460 ***full: https:\/\/gist.github.com\/4321825I have already tried to delete config and rerun sublime and reinstall it but it hadn&#8217;t any effect.glibc version:Version : 2.15 Release : 58.fc17fedora 17, x32Sublime Text 2 Build 2217I also tried all version from here http:\/\/repo.cloudhike.com\/sublime2_dev\/fedora\/17\/i386\/RPMS\/ but it have had the same effect.<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/439db9ac83f4ea14a904390900ec6634?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRandomblue<br \/>\njavascript character-encoding sublimetext2<br \/>\nI have checked that ? is valid for a JavaScript variable name. Also, when I try writing var ? = Math.PI in the Chrome console, all is fine.However, when I include the line var ? = Math.PI inside a .js file written with Sublime Text 2 on a Mac, Chrome complains:Uncaught SyntaxError: Unexpected token ILLEGALI have tried the encodings UTF-8, UTF-16 LE and UTF-16 BE, but none work. When I execute the line console.log(&#8216;?&#8217;), written inside Sublime Text 2 with UTF-8, Chrome prints:\u00cf?How can I use the J<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e394522ac0b1eab744841546d958c6aa?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAngus Bremner<br \/>\njavascript jquery regex sublimetext2 live<br \/>\nI am doing an upgrade to the latest jQuery and I have a large number of js files that I need to update. Mostly the conversion of the live() event to on() (there are hundreds)In Sublime text, I am wondering how to use the find and replace with regex to achieve the following.Find (using regex to select the class name):$(&#8216;.class-name&#8217;).live(&#8216;click&#8217;Replace with:$(&#8216;#content&#8217;).on(&#8216;click&#8217;, &#8216;.class-name&#8217;Edit: My attempt looks something like this, although I know it&#8217;s not quite right&#8230;find:$(&#8216;(.*?)&#8217;).li<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3787def319e502a67eda19f621b57f02?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPaul Hiemstra<br \/>\nr coding-style sublimetext sublimetext2<br \/>\nI am trying to extend SublimeLinter with a linter for R. SublimeLinter provides automatic linting in Sublime Text 2 for a lot of languages. The goal is that the linter runs in the background and highlights lines with coding errors or bad coding style. Currently, I am using the lint function in the svTools package and it&#8217;s working. The results, however, are not every satisfying. The linter catches to many ) in a line or to many } but it doesn&#8217;t detect the use of undefined variables, no coding sty<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b6678a430a805dd78366d6e135b49f2d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCubic<br \/>\nruby syntax-highlighting sublimetext2 irb<br \/>\nI am using Sublime Text 2 as a text editor, with SublimeREPL to get a Ruby REPL. The problem is that irb likes to give output like:irb(main):008:0&gt; hello NameError: undefined local variable or method `hello&#8217; for main:Objectfrom (irb):8from \/usr\/bin\/irb:12:in `&lt;main&gt;&#8217;which messes up syntax highlighting (because of the extra &#8216; at the end). The only &#8220;solution&#8221; I could come up with was to cause another error so the &#8216;s match (or turn off syntax highlighting altogether, which would defeat the<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2ea618718d619897e7821d16d31d4948?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmatthewjselby<br \/>\nxml regex sublimetext2 syntax-highlighting definition<br \/>\nI am trying to write a custom syntax definition for SublimeText 2. I made the regex and tested it (using SublimeText2&#8217;s regex find), and the regex works for what i want it to, however, once I put it into the .tmLanguage file I get the following error:Error in regex: undefined group option in regexHere is the regex:\\b([Aa]|[Tt]he|[Aa]n)\\b(?(?![ (),&#8217;.a-zA-Z]*\\b([Aa]|[Tt]he|[Aa]n)\\b)([ (),a-zA-Z]*[0-9]{2,3})|(,,,))And here is my XML .tmLanguage file&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt; &lt;<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/07123541fba3343f9ddb5876595b99a7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlex<br \/>\nbuild sdl sublimetext2<br \/>\nTrying to lead the build system on Sublime to my SDL directory but won&#8217;t compile { &#8220;cmd&#8221;: [&#8220;g++&#8221;, &#8220;${file}&#8221;, &#8220;-o&#8221;, &#8220;${file_path}\/${file_base_name}&#8221;, &#8220;-L\/usr\/include\/SDL&#8221;, &#8220;-lSDLmain&#8221;, &#8220;-lSDL&#8221;, &#8220;-lSDL_ttf&#8221;, &#8220;-lSDL_image&#8221;], &#8220;file_regex&#8221;: &#8220;^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$&#8221;, &#8220;working_dir&#8221;: &#8220;${file_path}&#8221;, &#8220;selector&#8221;: &#8220;source.c, source.c++&#8221;,&#8221;variants&#8221;: [{&#8220;name&#8221;: &#8220;Run&#8221;,&#8221;cmd&#8221;: [&#8220;bash&#8221;, &#8220;-c&#8221;, &#8220;g++ &#8216;${file}&#8217; -o &#8216;${file_path}\/${file_base_name}&#8217; &amp;&amp; &#8216;${file_path}\/${file_base_name}'&#8221;]} ] }Keep<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/476e67c92121154e7910301e56cdfc4c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMattDMo<br \/>\nsublimetext2 jasmine karma-runner iterm2<br \/>\nI&#8217;m using Karma test runner and Jasmine specs. When spec failed I have a log like:Chrome 28.0 (Mac) Groups and Filters FilterService Fetch filters should turn on loading state while fetching FAILED Expected undefined to be true. Error: Expected undefined to be true.at null.&lt;anonymous&gt; (\/Users\/vvasin\/Projects\/myproject\/tests\/unit\/spec\/settings\/filtersSpec.js:220:44) Expected undefined to be false. Error: Expected undefined to be false.at null.&lt;anonymous&gt; (\/Users\/vvasin\/Projects\/myproj<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/08b5068eb26127f91cea554cbc21bede?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBass Jobsen<br \/>\ncss twitter-bootstrap less sublimetext2 twitter-bootstrap-3<br \/>\nI am using twitter bootstrap v 3.0 RC1 and I installed node and npm to compile less to css when I save the less file.I include the bootstrap.css file into my html head, when I save the bootstrap.less, it compiles it into css like you would expect.I created another .less file, (theme.less) within the same bootstrap\/less directory where bootstrap.less resides with all the imports, thinking it would include those styles too, but it keeps giving me the following error when I try to compile the theme<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f9568ad84345ebe6652f59e3b55eaa37?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWill Moore<br \/>\nsublimetext2 sublimelinter<br \/>\nI&#8217;ve had SublimeLinter working fine with javascript files on my MacBook 10.6 for a while, but now I only see a single error when I save js files. E.g for a file that has a comment on the first line:&#8217;undefined&#8217; is not a function (evaluating &#8216;function (name) { emitter.on(name, listener); }.bind(this)&#8217;) 1:\/\/I see the same error regardless of what I have in the js file or what project the file is in.I&#8217;ve tried Removing and Re-installing SublimeLinter, but I still get the same error.<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/89841cf57849bbe957c155d3d68252f6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJason<br \/>\nnode.js sublimetext2 gruntjs<br \/>\nWhen I run grunt from the command line, it works fine, but if I create a Sublime Text 2 build it &#8220;seems&#8221; to run fine except that anywhere process.env.SOME_VARIABLE is used it comes back as undefined.Basically, from ST2 the following:dest = process.env.CATALINA_HOME + &#8220;\/webapps\/MyApp\/&#8221;returns&#8221;undefined\/webapps\/MyApp&#8221;All of my files get copied to a new &#8220;undefined&#8221; directory in the project path rather than the Tomcat directory where it&#8217;s supposed to be deployed to.Is there any way to get Sublime Te<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/srJ4L.png?s=32&amp;g=1\" \/><br \/>\nHolene<br \/>\npython module sublimetext2<br \/>\nI&#8217;m using Sublime Text2 to write some script in Python, where I in the end want to plot some values with Gnuplot. After struggling with getting ST2 to find the Gnuplot module (solution: http:\/\/stackoverflow.com\/a\/9919953\/315168), I get this error message upon build:gnuplot&gt; set terminal aqua^line 0: unknown or ambiguous terminal type; type just &#8216;set terminal&#8217; for a listI have the AquaTerm installed, but just as with the Gnuplot module, ST2 seems to not communicate with much of my system. Aqua<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b08c507ee4bd3d7736e8842d0a27fc85?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser981027<br \/>\nphp sublimetext2 csstidy<br \/>\nI use sublimetext2 with installed tidycss package for web development. When I have a local server running with zwamp in the back tidy-css only throws a lot of php errors.Now from what I know, this problem is connected to zwamp , since when I quit zwamp and try again tidycss works as normal.Anyone who could help me identify this problem and solve it ?My guess is that it has something to do with how zwamp works, because if I use WAMPServer or XAMPP the problem does not occur.Since it is not a subl<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/190cd0341d7a6d2d64ecae7d5a317622?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nVick1211<br \/>\njava intellij-idea sublimetext2<br \/>\nI&#8217;m trying to use Sublime text and I have changed my compiling settings to also display the output form the java program. However, I can not run it in Sublime Text 2, while IntelliJ displays it fine, as does DrJava and Eclipse.My error is:&#8212;&#8212;&#8212;&#8211;OUTPUT&#8212;&#8212;&#8212;&#8211; This program will calculate the average for the given number of student&#8217;s marks How many students are in the class? Exception in thread &#8220;main&#8221; java.lang.NumberFormatException: nullat java.lang.Integer.parseInt(Unknown Source)at java<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2014-01-05 10:09:27. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Jon Lachonis sublimetext2 I recently had a dreaded hard drive crash and had to reinstall my dev software. My problem is with sublime text 2. I had previously installed it using the guide here:http:\/\/clintberry.com\/2012\/sublime-text-2-php-symfony-development\/And replicated the instructions, but wordpress auto complete is simply not working. Any ideas? Holene python gnuplot sublimetext2 importerror I&#8217;m trying to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2316","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2316"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2316\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}