npm files absent in the src

Open
#5,211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
csharp, powershell
Domain
cli

Research direction

Start by comparing the title with the provided reproduction steps and exception report; the body contains an unrelated Express backend snippet and does not name a source file or test. Reproduce the PSReadLine crash around SetCursorPosition and determine whether the missing npm files or the console rendering error is the intended issue. Done means the intended failure is isolated and covered by a verified fix or a focused regression test.

Written by the indexing model from the issue text.

Description

Needs-Triage :mag:
Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.
Exception report
Where-Object {
>>     $_.FullName -notmatch "\\node_modules\\" -and
>>     $_.FullName -notmatch "\\dist\\"
>>   } |
>>   Select-Object FullName
Screenshot

follow for more

Environment data
import 'dotenv/config';
import express from 'express';
import cors from 'cors';
import { authRouter } from './routes/auth.js';
import { profileRouter } from './routes/profile.js';
import { requireAuth } from './middleware/require-auth.js';
import { errorHandler, notFound } from './lib/http.js';

const app = express();
const port = Number(process.env.PORT ?? 4000);
const origin = process.env.FRONTEND_ORIGIN ?? 'http://localhost:3000';

app.disable('x-powered-by');
app.use(cors({ origin, methods: ['GET', 'POST', 'PATCH'], allowedHeaders: ['Content-Type', 'Authorization'] }));
app.use(express.json({ limit: '32kb' }));

app.get('/health', (_req, res) => res.json({ ok: true }));
app.use('/auth', authRouter);
app.use('/profile', requireAuth, profileRouter);
app.use(notFound);
app.use(errorHandler);

app.listen(port, () => console.log(`AfyaPlate auth backend listening on port ${port}`));
Steps to reproduce

Where-Object {

$_.FullName -notmatch "\\node_modules\\" -and
$_.FullName -notmatch "\\dist\\"

} |
Select-Object FullName

Expected behavior

Actual value was -1.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Paste(Nullable1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

Actual behavior

PS C:\Users\SA> Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Dominant language
C#
Stars
4.4k
Forks
341
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/PSReadLine

All issues in PowerShell/PSReadLine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.