Skip to content
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

nimrod serve only answers the first request #804

Closed
reactormonk opened this issue Jan 9, 2014 · 8 comments
Closed

nimrod serve only answers the first request #804

reactormonk opened this issue Jan 9, 2014 · 8 comments
Assignees
Labels

Comments

@reactormonk
Copy link
Contributor

To reproduce:

Start the server with

cd $NIMROD_DIR/tests/caas
nimrod serve --server.type:stdin idetools_api.nim

Which echos approx.

config/nimrod.cfg(36, 2) Hint: added path: '/home/tass//.babel/pkgs/babel-0.1.0' [Path]
config/nimrod.cfg(36, 2) Hint: added path: '/home/tass//.babel/pkgs/' [Path]
Hint: used config file '/home/tass/dev/nimrod/Nimrod/config/nimrod.cfg' [Conf]

Then copy/paste (with the newline)

c --verbosity:0 --hints:on

Which should echo

tests/caas/idetools_api.nim(84, 4) Hint: 'notAModule' is declared but not used [XDeclaredButNotUsed]
tests/caas/idetools_api.nim(15, 6) Hint: 'SOME_SEQUENCE' is declared but not used [XDeclaredButNotUsed]
tests/caas/idetools_api.nim(22, 5) Hint: 'idetools_api.adder(a: int, b: int): int' is declared but not used [XDeclaredButNotUsed]
tests/caas/idetools_api.nim(9, 5) Hint: 'idetools_api.test_iterators(filename: string)' is declared but not used [XDeclaredButNotUsed]
tests/caas/idetools_api.nim(3, 5) Hint: 'idetools_api.test_enums()' is declared but not used [XDeclaredButNotUsed]
tests/caas/idetools_api.nim(18, 2) Hint: 'TPerson' is declared but not used [XDeclaredButNotUsed]

But an additional (after the first finished) doesn't return anything.

c --verbosity:0 --hints:on

^CSIGINT: Interrupted by Ctrl-C.
@zah
Copy link
Member

zah commented Jan 23, 2014

This is by design. You didn't modify the source files in any way, so nothing needs to be done?

@ghost ghost assigned zah Jan 23, 2014
@Varriount
Copy link
Contributor

If this is by design, then it has a flaw - any other command sent (such as check, or an idetools command) is also ignored.

@zah
Copy link
Member

zah commented Jan 23, 2014

If you want to run "nimrod check", you must either write a new version of the file to disk (which will cause recompilation) or use the --trackDirty command-line option. If "nimrod check" doesn't answer anything, this means that the last compiled version is still up-to-date and it doesn't have any errors. And don't get me wrong - there are known bugs in the serve mode that make it unreliable for continuous compilation, but not doing unnecessary work is part of the spec.

@zah
Copy link
Member

zah commented Jan 23, 2014

Commands like "--def" should always answer something on the other hand.

@reactormonk
Copy link
Contributor Author

It doesn't matter what you call. Take idetools --suggest --track:idetools_api.nim,1,1 instead.

@dom96
Copy link
Contributor

dom96 commented Jan 25, 2014

I tested this a long time ago now, but @reactormonk is right. IIRC calling any of the idetools twice results in no output the second time. If this is by the design then it is wrong.

@reactormonk
Copy link
Contributor Author

Seems to work now, can anyone confirm?

@Araq
Copy link
Member

Araq commented Jan 28, 2015

I'm closing this since it works in nimsuggest, at least, which is the future anyway.

@Araq Araq closed this as completed Jan 28, 2015
Clyybber pushed a commit to Clyybber/Nim that referenced this issue Sep 16, 2023
…4.4.3 (nim-lang#804)

Bumps
[JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action)
from 4.4.2 to 4.4.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jamesives/github-pages-deploy-action/releases">JamesIves/github-pages-deploy-action's
releases</a>.</em></p>
<blockquote>
<h2>v4.4.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Bump <code>@​types/node</code> from 18.8.0 to 18.8.4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1239">JamesIves/github-pages-deploy-action#1239</a></li>
<li>Bump webfactory/ssh-agent from 0.5.4 to 0.7.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1252">JamesIves/github-pages-deploy-action#1252</a></li>
<li>Bump <code>@​types/node</code> from 18.8.4 to 18.11.9 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1262">JamesIves/github-pages-deploy-action#1262</a></li>
<li>Bump eslint-plugin-jest from 27.0.4 to 27.1.5 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1268">JamesIves/github-pages-deploy-action#1268</a></li>
<li>Bump <code>@​types/node</code> from 18.11.9 to 18.11.10 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1276">JamesIves/github-pages-deploy-action#1276</a></li>
<li>Bump <code>@​types/node</code> from 18.11.10 to 18.11.13 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1283">JamesIves/github-pages-deploy-action#1283</a></li>
<li>Bump eslint-config-prettier from 8.5.0 to 8.6.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1293">JamesIves/github-pages-deploy-action#1293</a></li>
<li>Bump json5 from 2.1.1 to 2.2.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1294">JamesIves/github-pages-deploy-action#1294</a></li>
<li>Bump minimatch from 3.0.4 to 3.1.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1270">JamesIves/github-pages-deploy-action#1270</a></li>
<li>Bump decode-uri-component from 0.2.0 to 0.2.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1277">JamesIves/github-pages-deploy-action#1277</a></li>
<li>Bump typescript from 4.8.4 to 4.9.4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1281">JamesIves/github-pages-deploy-action#1281</a></li>
<li>Bump eslint-plugin-jest from 27.1.5 to 27.2.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1296">JamesIves/github-pages-deploy-action#1296</a></li>
<li>Bump rimraf from 3.0.2 to 4.1.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1307">JamesIves/github-pages-deploy-action#1307</a></li>
<li>Bump typescript from 4.9.4 to 4.9.5 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1311">JamesIves/github-pages-deploy-action#1311</a></li>
<li>Bump codecov/codecov-action from 3.1.1 to 3.1.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1353">JamesIves/github-pages-deploy-action#1353</a></li>
<li>Bump <code>@​types/node</code> from 18.11.13 to 18.16.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1361">JamesIves/github-pages-deploy-action#1361</a></li>
<li>Bump codecov/codecov-action from 3.1.2 to 3.1.4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1372">JamesIves/github-pages-deploy-action#1372</a></li>
<li>Bump <code>@​actions/io</code> from 1.1.2 to 1.1.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1339">JamesIves/github-pages-deploy-action#1339</a></li>
<li>Bump prettier from 2.7.1 to 2.8.8 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1357">JamesIves/github-pages-deploy-action#1357</a></li>
<li>Bump <code>@​types/node</code> from 18.16.3 to 20.2.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1380">JamesIves/github-pages-deploy-action#1380</a></li>
<li>Bump webfactory/ssh-agent from 0.7.0 to 0.8.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1348">JamesIves/github-pages-deploy-action#1348</a></li>
<li>Bump eslint-config-prettier from 8.6.0 to 8.8.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1342">JamesIves/github-pages-deploy-action#1342</a></li>
<li>Bump <code>@​types/node</code> from 20.2.3 to 20.2.4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1381">JamesIves/github-pages-deploy-action#1381</a></li>
<li>Bump <code>@​types/node</code> from 20.2.4 to 20.2.5 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1383">JamesIves/github-pages-deploy-action#1383</a></li>
<li>Bump <code>@​types/node</code> from 20.2.5 to 20.3.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1385">JamesIves/github-pages-deploy-action#1385</a></li>
<li>Bump eslint-plugin-jest from 27.2.1 to 27.2.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1386">JamesIves/github-pages-deploy-action#1386</a></li>
<li>Bump <code>@​types/node</code> from 20.3.1 to 20.3.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1387">JamesIves/github-pages-deploy-action#1387</a></li>
<li>Bump <code>@​types/node</code> from 20.3.2 to 20.3.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1389">JamesIves/github-pages-deploy-action#1389</a></li>
<li>Bump semver from 5.7.1 to 5.7.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1396">JamesIves/github-pages-deploy-action#1396</a></li>
<li>Bump tough-cookie from 4.0.0 to 4.1.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1394">JamesIves/github-pages-deploy-action#1394</a></li>
<li>Bump <code>@​types/node</code> from 20.3.3 to 20.4.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/JamesIves/github-pages-deploy-action/pull/1395">JamesIves/github-pages-deploy-action#1395</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/JamesIves/github-pages-deploy-action/compare/v4...v4.4.3">https://github.com/JamesIves/github-pages-deploy-action/compare/v4...v4.4.3</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/a1ea191d508feb8485aceba848389d49f80ca2dc"><code>a1ea191</code></a>
Deploy Production Code for Commit
a8bd9aef1855024c235ad911985c97e153ddc9c4 🚀</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/a8bd9aef1855024c235ad911985c97e153ddc9c4"><code>a8bd9ae</code></a>
Merge branch 'dev' into releases/v4</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/7e13873dee76cdcb5d247f8c10ab5871c0b2418a"><code>7e13873</code></a>
Bump <code>@​types/node</code> from 20.3.3 to 20.4.1 (<a
href="https://redirect.github.com/jamesives/github-pages-deploy-action/issues/1395">#1395</a>)</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/da986918281e44cc68ab44229f63d49f2f13b389"><code>da98691</code></a>
Bump tough-cookie from 4.0.0 to 4.1.3 (<a
href="https://redirect.github.com/jamesives/github-pages-deploy-action/issues/1394">#1394</a>)</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/4a6bcf161550cade762c80e51159b5a8d20b7920"><code>4a6bcf1</code></a>
Bump semver from 5.7.1 to 5.7.2 (<a
href="https://redirect.github.com/jamesives/github-pages-deploy-action/issues/1396">#1396</a>)</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/426d422c1c72978c4c926ef8dcf600b3c5ced561"><code>426d422</code></a>
Bump <code>@​types/node</code> from 20.3.2 to 20.3.3 (<a
href="https://redirect.github.com/jamesives/github-pages-deploy-action/issues/1389">#1389</a>)</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/6c78091d858515ea8cd1db9b735f1312197d7773"><code>6c78091</code></a>
Bump <code>@​types/node</code> from 20.3.1 to 20.3.2 (<a
href="https://redirect.github.com/jamesives/github-pages-deploy-action/issues/1387">#1387</a>)</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/dbbf76c054a31d7ac44d8f0bb381fba0a47d1c80"><code>dbbf76c</code></a>
Deploying to dev from @
JamesIves/github-pages-deploy-action@ce9d786e639c4709...</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/ce9d786e639c47093af973a5d65242993b6913bb"><code>ce9d786</code></a>
Bump eslint-plugin-jest from 27.2.1 to 27.2.2 (<a
href="https://redirect.github.com/jamesives/github-pages-deploy-action/issues/1386">#1386</a>)</li>
<li><a
href="https://github.com/JamesIves/github-pages-deploy-action/commit/e33c1e26e1b70d7da5746d4165ba79b49029dfef"><code>e33c1e2</code></a>
Bump <code>@​types/node</code> from 20.2.5 to 20.3.1 (<a
href="https://redirect.github.com/jamesives/github-pages-deploy-action/issues/1385">#1385</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/jamesives/github-pages-deploy-action/compare/v4.4.2...v4.4.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=JamesIves/github-pages-deploy-action&package-manager=github_actions&previous-version=4.4.2&new-version=4.4.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants