Giter Site home page Giter Site logo

Comments (11)

ruanpienaar avatar ruanpienaar commented on August 10, 2024

Also getting this issue:

plugin init time: 0.647114
loading bindings
loading pointer bindings
found 1 files for base name Spacegray.sublime-theme
Errors parsing theme:
Unknown attribute value
theme loaded
app ready
pre session restore time: 0.824381
using gpu buffer for window
using gamma: 2 (err: 6.9282)
wrote startup cache, added files: 2 orphaned files: 0 total files: 63 cache hits: 61
startup time: 0.934793 (package setup was not run)
Traceback (most recent call last):
  File "./sublime_plugin.py", line 175, in on_load
  File "./sublime_plugin.py", line 154, in run_timed_function
  File "./sublime_plugin.py", line 174, in <lambda>
  File "./sublimerl_completion.py", line 232, in on_load
  File "./sublimerl_core.py", line 224, in __init__
  File "./sublimerl_core.py", line 259, in set_app_name
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 67, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
Traceback (most recent call last):
  File "./sublime_plugin.py", line 175, in on_load
  File "./sublime_plugin.py", line 154, in run_timed_function
  File "./sublime_plugin.py", line 174, in <lambda>
  File "./sublimerl_completion.py", line 232, in on_load
  File "./sublimerl_core.py", line 224, in __init__
  File "./sublimerl_core.py", line 259, in set_app_name
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 67, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
loaded 844 snippets
no command for selector: noop:
Package Control: Skipping automatic upgrade, last run at 2014-10-23 11:31:23, next run at 2014-10-23 12:31:23 or after

from sublimerl.

ostinelli avatar ostinelli commented on August 10, 2024

@ruanpienaar can you provide me with the file you're trying to save? Are you using ST2 or ST3?

from sublimerl.

ruanpienaar avatar ruanpienaar commented on August 10, 2024

version: Sublime Text 2 Build 2221.
the above is from the ST2 console when ST 2 starts.

from sublimerl.

ostinelli avatar ostinelli commented on August 10, 2024

I'll still need some kind of file to reproduce this. :)

from sublimerl.

ruanpienaar avatar ruanpienaar commented on August 10, 2024

-module(m).

from sublimerl.

ruanpienaar avatar ruanpienaar commented on August 10, 2024

i think i can reproduce how i get this issue. give me a min

from sublimerl.

ruanpienaar avatar ruanpienaar commented on August 10, 2024

-package remove SublimErl
-package install SublimErl.
-configure SublimErl settings *( Edit SublimErl.sublime-settings, in ST2 )

pre session restore time: 0.814455
using gpu buffer for window
using gamma: 2 (err: 6.9282)
startup cache, total files: 62 cache hits: 62
startup time: 0.895213 (package setup was not run)
Traceback (most recent call last):
  File "./sublime_plugin.py", line 175, in on_load
  File "./sublime_plugin.py", line 154, in run_timed_function
  File "./sublime_plugin.py", line 174, in <lambda>
  File "./sublimerl_completion.py", line 232, in on_load
  File "./sublimerl_core.py", line 224, in __init__
  File "./sublimerl_core.py", line 259, in set_app_name
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 67, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
loaded 844 snippets
Package Control: Skipping automatic upgrade, last run at 2014-10-23 13:46:00, next run at 2014-10-23 14:46:00 or after

When i remove the configuration it produce the error.

SublimErl.sublime-settings:

{
    /*
     * SublimErl tries to detect automatically the paths for erl, escript, rebar and dialyzer.
     * If it doesn't succeed or you prefer to manually configure these, you can do so by inputting the paths here.
     *
     * "erl_path": "/usr/local/bin/erl",
     * "escript_path": "/usr/local/bin/escript",
     * "rebar_path": "/usr/local/bin/rebar",
     * "dialyzer_path": "/usr/local/bin/dialyzer"
     */



     // Skip Erlang libs that match the regex
    "completion_skip_erlang_libs": [
        "^[cC]os[A-Z].+",
        ".*orber.*",
        "^oe_.+",
        "^megaco_.+",
        ".*wx.*"
    ]
}

Setting file produces error:

{
    /*
     * SublimErl tries to detect automatically the paths for erl, escript, rebar and dialyzer.
     * If it doesn't succeed or you prefer to manually configure these, you can do so by inputting the paths here.
     *
     * "erl_path": "/usr/local/bin/erl",
     * "escript_path": "/usr/local/bin/escript",
     * "rebar_path": "/usr/local/bin/rebar",
     * "dialyzer_path": "/usr/local/bin/dialyzer"
     */

     "erl_path": "/erlang/bin/erl",
     "escript_path": "/erlang/bin/escript",
     "rebar_path": "/usr/local/bin/rebar",
     "dialyzer_path": "/erlang/bin/dialyzer",

     // Skip Erlang libs that match the regex
    "completion_skip_erlang_libs": [
        "^[cC]os[A-Z].+",
        ".*orber.*",
        "^oe_.+",
        "^megaco_.+",
        ".*wx.*"
    ]
}

from sublimerl.

ruanpienaar avatar ruanpienaar commented on August 10, 2024

No Folders added to project. Just 1 file m.erl.

from sublimerl.

ruanpienaar avatar ruanpienaar commented on August 10, 2024

No error when i add a Folder to Project, that has a rebar-compatible dir structure.

i guess set_app_name in sublimerl_core.py has a issue with no 'src'

from sublimerl.

ostinelli avatar ostinelli commented on August 10, 2024

Having trouble in following you. Does all of this just boil down to the necessity of having a src directory?

from sublimerl.

ruanpienaar avatar ruanpienaar commented on August 10, 2024

@ostinelli Yes. it seems sublimerl_core.py set_app_name , can't deal with no src

from sublimerl.

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.