npm files absent in the src

Abierto
#5,211 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
csharp, powershell
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C#
Estrellas
4.4k
Forks
341
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PowerShell/PSReadLine

Todos los issues de PowerShell/PSReadLine

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.