-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on selection #20
Comments
This happens to me too! It makes your (amazing) plugin unusable. |
@ryanmtaylor if you comment out what's inside the get_type(view) function in Elm Language Support.py it will stop crashing. I've been using it like that for the past few days and it seems to work fine. It looks like all that function does is find the type signature of the word under the cursor. |
@corcillo totally! I read your comment and added a comment and It works perfectly now. |
Hi guys, sorry I haven't commented on this yet. I have a 3 day weekend On Fri, Jun 19, 2015 at 8:09 AM, Ryan M Taylor notifications@github.com
|
I ran into this as well. Is there an update on the status? |
When I got Sublime 3 I didn't need to edit any source code. |
Sorry for the delay. I looked into it today and figured out the problem. I'll push an update to fix it. |
This should be fixed in the newest version. |
I just installed the elm language support package via sublime 2 package control. Sublime kept crashing when I would highlight the elm code in sublime, and I traced it back to the language support plugin code, specifically in Elm Language Support.py's get_type(view) function.
I was getting this stack trace on the error:
Traceback (most recent call last):
File "./sublime_plugin.py", line 200, in on_selection_modified
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 199, in
File "./Elm Language Support.py", line 346, in on_selection_modified
File "./Elm Language Support.py", line 312, in get_type
File "./Elm Language Support.py", line 253, in modules_in_scope
File "./Elm Language Support.py", line 260, in current_module_name
IndexError: list index out of range
Here is a screenshot of some code that when highlighted caused the crash:
Any thoughts? I temporarily stopped the crashes by commenting out the get_type function, which I'm assuming will cause problems in the future.
The text was updated successfully, but these errors were encountered: