question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ignoreUnimported` does not work with relative paths as of 1.20.0

See original GitHub issue

When using unimported version 1.20.0, it seems only absolute file paths are supported for the ignoreUnimported setting. I noticed this when, after updating, I was suddenly getting unimported errors for files that were previously being ignored. Running npx unimported -u only adds absolute paths to the config file, and changing them to relative paths causes them to stop working.

This is not only a breaking change with previous versions of .unimportedrs.json, but also causes issues when sharing config across team members.

Tested on Windows 10 with a Meteor project using Meteor version 2.7.1. I’m not sure if this replicates across other types of projects, or if it’s a meteor-specific issue.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:6
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
LandGodcommented, May 29, 2022

Ran again on windows with the update and it’s looking great. Thank you 😄

{
  "ignoreUnresolved": [],
  "ignoreUnused": [],
  "ignoreUnimported": [
    "dangling.js"
  ]
}
2reactions
smeijercommented, May 28, 2022

Ok, I’ve updated the GitHub action to also run test cases on Windows, which indeed failed miserably. Then I added some fixes, and now I have all green flags.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Relative paths in Python [duplicate] - Stack Overflow
I'm building a simple helper script for work that will copy a couple of template files in our code base to the current...
Read more >
"go to definition" can not work on relative import · Issue #44886
VSCode Version: 1.20.0 OS Version: macOS Sierra 10.12.6 Steps to Reproduce: As mentioned above, I have some files in folder auth.
Read more >
GetFullPathNameA function (fileapi.h) - Win32 apps
Relative paths passed to the GetFullPathName function are interpreted as relative to the process's current directory. The current directory ...
Read more >
2.8.1.1. Use Relative Paths - Intel
Use Relative Paths. Express file paths using relative path notation (../). For example, in the directory structure shown you can specify top.v as...
Read more >
Absolute, relative, UNC, and URL paths—ArcMap
Paths are used to browse to data and toolboxes. This topic delves into detail about paths, defining the types, and how ArcGIS manages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found