Skip to content

Syntax checking is broken #241

Closed
Closed
@akatechis

Description

@akatechis

Sublime Text Version

Sublime Text 3 (Build 3143)

Rust Enhanced Version

2.7.0

Operating system

OS Name: Microsoft Windows 10 Pro
OS Build: 15063.850

In the console, I see the following message:

Syntax Check +137.676 Rust running: ['cargo', 'metadata', '--no-deps']
Exception in thread Syntax Check:
Traceback (most recent call last):
  File "./python3.3/threading.py", line 901, in _bootstrap_inner
  File "./python3.3/threading.py", line 858, in run
  File "rust.rust_thread in C:\Users\Alexandros\AppData\Roaming\Sublime Text 3\Installed Packages\Rust Enhanced.sublime-package", line 91, in _thread_run
  File "SyntaxCheckPlugin in C:\Users\Alexandros\AppData\Roaming\Sublime Text 3\Installed Packages\Rust Enhanced.sublime-package", line 108, in run
  File "SyntaxCheckPlugin in C:\Users\Alexandros\AppData\Roaming\Sublime Text 3\Installed Packages\Rust Enhanced.sublime-package", line 143, in get_rustc_messages
TypeError: get_command() got multiple values for argument 'initial_settings'

I tried uninstalling and reinstalling to see if there was some corrupt data or something that might be at fault, but it made no difference.

Activity

ehuss

ehuss commented on Jan 28, 2018

@ehuss

I suspect it has something to do with how Package Control updates the package. Have you tried restarting Sublime?

jasonwilliams

jasonwilliams commented on Jan 28, 2018

@jasonwilliams
Member

Im on Windows 10, it seems to be working ok for me

ehuss

ehuss commented on Jan 28, 2018

@ehuss

I'm able to reproduce this when upgrading from an older version of Rust Enhanced. I've opened wbond/package_control#1325 to see if I can get down to the underlying problem and figure out how to avoid it in the future.

For now, the workaround is to restart Sublime after updating Rust Enhanced.

ehuss

ehuss commented on Jul 30, 2018

@ehuss

Rust Enhanced should now work properly after being updated (#267).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ehuss@jasonwilliams@akatechis

        Issue actions

          Syntax checking is broken · Issue #241 · rust-lang/rust-enhanced