The token '&&' is not a valid statement delimiter in this release

Describe the Bug

I am creating files for a new project, but I have run into the following issue. When I let the cursor continue to make an unfinished file or document, the cursor creates a brand new project main folder and all the files contained in the project file. Is there any cursor team member who can pay attention to this? I just subscribed to Cursor Pro today.

PS E:\Magento\Treesline-Toolkit> cd treesline-toolkit && mkdir -p backend/app/{config,core,api/v1,services/{deployment,management,backup,mon
Location Line:1 Character:21

  • cd treesline-toolkit && mkdir -p backend/app/{config,core,api/v1,servi …
  •                 ~~
    

The token ‘&&’ is not a valid statement delimiter in this release.
Location Line:1 Character:52

  • cd treesline-toolkit && mkdir -p backend/app/{config,core,api/v1,servi …
  •                                                ~
    

Argument missing from parameter list.
Location Line:1 Character:85

  • … kdir -p backend/app/{config,core,api/v1,services/{deployment,manageme …
  •                                                             ~
    

Argument missing from parameter list.
Location Line:1 Character:168

  • … toring,ai},models,schemas,tasks,utils} backend/{requirements,alembic, …
  •                                                             ~
    

Argument missing from parameter list.
+ CategoryInfo : ParserError: (:slight_smile: , ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
PS E:\Magento\Treesline-Toolkit> q^D^C
q : The term ‘q’ is not recognized as the name of a cmdlet, function, script file, or operable program. Please check the spelling of the name, and if you included a path, make sure the path is correct and try again.
Location Line: 1 Character: 1

  • q
  •   + CategoryInfo          : ObjectNotFound: (q:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

Steps to Reproduce

Because I accidentally closed the cursor software, I am not sure whether the project in progress in cursor has been completed, because I know it seems to be creating the project file.

When I reopened cursor and asked cursor to help me review whether the last project was complete, cursor detected that the project file was incomplete and created the project file again. And the project file was duplicated.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.0.0 (system setup)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:44:25.253Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22000

1 Like

YEAH - THIS IS A KNOWN ONGOING ISSUE WITH CURSOR FOR SEVERAL REASONS.

First, upgrade powershell, to >7 as it handles && ‘ok’

but the problem is that cursor doesnt listen to its own rules.

there are several things::

disallowed / blacklist cmds is not adhered to

the other thing I do to get around it some times - because when I declare to never use && and run all cmds individually - another work around I found is "never execute cli directly, wrap it in a .ps1 first and then execute the .ps1…

however - this makes the bots consume more tokens - and with the latest updates to both cursor and claude - it appears that they are createing MULTIPLE levels of token consumption.

Basically the entire AI industry is permitting token consumption fraud. I cant prove it yet - but basically they are charging 3x++ for token use because of prompt_routing_dark_patterns

1 Like

Thank you for your tip.

By the way.
I think when the cursor is creating a file or needs the customer to confirm the file, if the cursor window is suddenly closed, it should prompt that the cursor is running and ask if you are sure you need to close the cursor.

there is another benefit to wrapping all in a .ps1 – is tell it to use a /scripts/ dir and keep all the .ps1s there - with a proper header explaining the thing — AND (&&, per pun) – document all in a local sqlite3 db file and give me a single page to explore all the scripts written (I have deep write up on this in the past - but the gist is that I regularly say::

"give me XYZ in a .ps1 and publish all docs to a privat gist using gh cli and give me the link - inclue a readme and BLAH BLAH BLAH –

so I wind up with a gist of my repo and project.

so many of mine_tokens are spent on lit just self_documentation…

At some point in the future, we are going to have lawsuits on token duplication issues / cost…

and another thing to take with your bots is to tell them to execute multi tasks simultaneously (this is a new area I am exploring by having it do mulitiple iterations simultaneously

explore there and tell me what you learned works in your space


also gibsonAI DB schema thing is dope as heck

im still working on weaving all these things together. but I want to find micro_pipes | to throw btwn bots…

I pay like $150/month on all the tools… and I am trying to find the grout.

1 Like

Thank you for your detailed explanation.

Since these are known issues and I believe have been around for a while, why doesn’t cursor fix these issues and still waste subscribers’ requests?

Welcome to @cursor