Re: Disabling unused import warning locally

2019-11-08 Thread andrea
Great, thank you

Re: Disabling unused import warning locally

2019-11-07 Thread cdome
Fix went in. {. warning[UnusedImport]:off .}` works now, but it needs to be active at the end of module as this is where the check is happening

Re: Disabling unused import warning locally

2019-11-06 Thread Levlan
Never mind. I just moved the extracted folder to C:main directory and run again finish.exe. Happy nimming to all of you.

Re: Disabling unused import warning locally

2019-11-06 Thread yglukhov
Another way is to fix the unused warning, so that it pops up whenever no symbols are used from the imported module **and** the imported module has no global code with side effects (and it should be a recursive check).

Re: Disabling unused import warning locally

2019-11-05 Thread cdome
I am having this problem too. Push/Pop doesn' work if there is an import in between then. There is PR by myself that I need to finish to make it work: [https://github.com/nim-lang/Nim/issues/11826](https://github.com/nim-lang/Nim/issues/11826).

Re: Disabling unused import warning locally

2019-11-05 Thread Araq
1. I hope we can make your push/pop snippet work. It should work. 2. I would use the following code in all of your `t*.nim` files: when defined(nimHasUsed): {.used.} Run

Disabling unused import warning locally

2019-11-05 Thread andrea
I frequently write test suites in different files. Then I have a main test file which imports all suites. One example from emmy _ looks like this: import tstructures, tpairs, toperations, ttableops, tmodular, tfractions, tpolynomials, tlinear