npm files absent in the src

Aberta
#5,211 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
csharp, powershell
Domínio
cli

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
C#
Estrelas
4.4k
Forks
341
Métricas de merge de PRs
Nenhum PR com merge em 30d

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de PowerShell/PSReadLine

Todas as issues de PowerShell/PSReadLine

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.