Skip to content

Fix syntax checking on 'cdylib' libraries. #186

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

Closed
wants to merge 1 commit into from

Conversation

theabolton
Copy link

Just a little change, to support the 'cdylib' library type. Thanks!

@jasonwilliams jasonwilliams added this to the v2.0.0 milestone May 30, 2017
ehuss added a commit to ehuss/sublime-rust that referenced this pull request May 31, 2017
Adapted from rust-lang#186, thanks @smbolton.
jasonwilliams pushed a commit that referenced this pull request Jul 8, 2017
* New Cargo build system.

* Fix wrapping of commands in GitHub flavored markdown.

* Minor fixes to unittests for Rust 1.16.

* Add support for "cargo check".

* Support clippy for on-save checking.

* Fix on-save syntax check running clippy multiple times.

* Add ability to configure cargo build features.

* Support setting environment variables.

This includes a dependency on shellenv to capture the user's environment from their login shell.

* Normalize paths when dealing with settings.

This fixes some problems running tests on Windows.

* Disable on-load message display for tests.

This was causing random breakage (particularly on Windows).

* Fix race condition in tests manifested on linux.

* Add support for custom build variants.

This includes some significant changes to how the current
package is selected.  It should work a little better if you
have multiple packages.

* Add support for a default path/package.

* Add "Automatic" build variant.

* Stop looking for JSON output during Cargo build once compile is finished.

This fixes issues with "cargo run" if your program outputs { at the start of a line.

* Better fix for checking when we should stop looking for JSON output.

The previous fix caused issues with Clippy.

* Remove debug print left behind.

* Minor updates for rust 1.17.

* Change message tests to check the region of the message.

* Fix error highlighting for nested macros.

* Fix clearing of error regions.

* Add rust_phantom_style and rust_region_style config settings.

Fixes #182.

* Honor show_errors_inline config setting for Cargo build.

* Fix links in messages that are surrounded by angled brackets.

* Consolidate all Cargo config commands into a single command.

Add commands to configure extra arguments and environment variables.

* Document the new build configure command.

Also document the `default_path` option.

* On-save syntax checking now uses configuration settings from the build
system.

* Finish documenting all settings, and include link to new build docs.

* Fix Cargo environment variable config command when selecting "all build
commands".

* Only print warning about sublime-project when saving setings.

* Fix target detection for cdylib.

Adapted from #186, thanks @smbolton.

* Update tests for new messages in rust 1.18.
@jasonwilliams
Copy link
Member

hi @smbolton there's a conflict now we've merged in the other branch, could you fix that up?
Jase

@ehuss
Copy link

ehuss commented Jul 8, 2017

I updated my branch to support cdylib, so it should be working now. (#165 contained the fix already)

urschrei pushed a commit to urschrei/sublime-rust that referenced this pull request Jan 30, 2018
* New Cargo build system.

* Fix wrapping of commands in GitHub flavored markdown.

* Minor fixes to unittests for Rust 1.16.

* Add support for "cargo check".

* Support clippy for on-save checking.

* Fix on-save syntax check running clippy multiple times.

* Add ability to configure cargo build features.

* Support setting environment variables.

This includes a dependency on shellenv to capture the user's environment from their login shell.

* Normalize paths when dealing with settings.

This fixes some problems running tests on Windows.

* Disable on-load message display for tests.

This was causing random breakage (particularly on Windows).

* Fix race condition in tests manifested on linux.

* Add support for custom build variants.

This includes some significant changes to how the current
package is selected.  It should work a little better if you
have multiple packages.

* Add support for a default path/package.

* Add "Automatic" build variant.

* Stop looking for JSON output during Cargo build once compile is finished.

This fixes issues with "cargo run" if your program outputs { at the start of a line.

* Better fix for checking when we should stop looking for JSON output.

The previous fix caused issues with Clippy.

* Remove debug print left behind.

* Minor updates for rust 1.17.

* Change message tests to check the region of the message.

* Fix error highlighting for nested macros.

* Fix clearing of error regions.

* Add rust_phantom_style and rust_region_style config settings.

Fixes rust-lang#182.

* Honor show_errors_inline config setting for Cargo build.

* Fix links in messages that are surrounded by angled brackets.

* Consolidate all Cargo config commands into a single command.

Add commands to configure extra arguments and environment variables.

* Document the new build configure command.

Also document the `default_path` option.

* On-save syntax checking now uses configuration settings from the build
system.

* Finish documenting all settings, and include link to new build docs.

* Fix Cargo environment variable config command when selecting "all build
commands".

* Only print warning about sublime-project when saving setings.

* Fix target detection for cdylib.

Adapted from rust-lang#186, thanks @smbolton.

* Update tests for new messages in rust 1.18.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants