Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Plugin fails when .rubocop.yml inherits from another file #30

Closed
zinkkrysty opened this issue Jan 21, 2016 · 2 comments
Closed

Plugin fails when .rubocop.yml inherits from another file #30

zinkkrysty opened this issue Jan 21, 2016 · 2 comments
Labels

Comments

@zinkkrysty
Copy link

This happens if the option "Copy rubocop.yml to temporary directory" is active.

linter-haml error Error: No such file or directory @ rb_sysopen - /var/folders/l1/c7gt0c8x1lsgn49kthq1fmyc0000gn/T/AtomLinter116021-27770-5yvtrn/.rubocop_todo.yml

Here's how the .rubocop.yml file looks like:

---
inherit_from: .rubocop_todo.yml

Style/DotPosition:
  EnforcedStyle: trailing

Style/MultilineOperationIndentation:
  EnforcedStyle: indented

Lint/EndAlignment:
  AlignWith: variable

Lint/HandleExceptions:
  Exclude:
    - 'bin/*'
@zinkkrysty zinkkrysty changed the title Plugin fails when "Copy rubocop.yml to temporary directory" is active Plugin fails when .rubocop.yml inherits from another file Jan 21, 2016
@knightq
Copy link

knightq commented Aug 25, 2016

That's right, and here is the error message:

~/.atom/packages/linter-haml/lib/linter.coffee:145 Error: No such file or directory @ rb_sysopen - /tmp/AtomLinter116725-50040-169fqn9.a5xfos9k9/.rubocop_todo.yml(…)
(anonymous function) @ ~/.atom/packages/linter-haml/lib/linter.coffee:145

@Arcanemagus
Copy link
Member

I think I'm going to disable on the fly linting on this package until a more robust method can be found, the current attempts at copying files around can't deal with the myriad of edge cases like this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants