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

syntax error near unexpected token `) #228

Closed
joshuacox opened this issue Jun 9, 2024 · 3 comments
Closed

syntax error near unexpected token `) #228

joshuacox opened this issue Jun 9, 2024 · 3 comments

Comments

@joshuacox
Copy link

during setup-system install I have run into this sort of corrupted setup.bash file.

┌  Setup Node.js  ┐
The [node] utility is marked for upgrade. Upgrading... ⏲
┌  Install Node.js via System  ┐
Installed: v22.2.0
└  Install Node.js via System  ┘
┌  Clean Node.js versions and packages  ┐
Now using system version of node: v22.2.0 (npm v10.8.1)
Uninstalled: v20.14.0
nvm: Cannot uninstall currently-active node version, v22.2.0 (inferred from 22.2.0).
└  Clean Node.js versions and packages  ┘
┌  Clean Node.js Version Manager (NVM) instead  ┐
└  Clean Node.js Version Manager (NVM) instead  ┘
┌  Install Node.js Version Manager (NVM)  ┐
NVM_DIR=/home/thoth/.nvm
└  Install Node.js Version Manager (NVM)  ┘
┌  Install Node.js via NVM  ┐
Installs active and LTS versions.
Installed: v20.14.0
Installed: v22.2.0
└  Install Node.js via NVM  ┘
┌  Upgrade npm  ┐
Before: v10.7.0
After:  v10.8.1
└  Upgrade npm  ┘
The [node] utility was upgraded via [eval]
The [node] utility was upgraded. ✅
┌  Configure npm  ┐
└  Configure npm  ┘
The [gopls] utility is already installed. ✅
The [Delve] utility is already installed. ✅
The [golangci-lint] utility is already installed. ✅
└  Setup Go  ┘
/home/user1/.local/share/dorothy/user/config/setup.bash: line 1: syntax error near unexpected token `)'

looking in this file is some truncated half dead file:

)
GO_LINTING_INSTALL='yes'

removing it, and re-running

setup-system install

nets the same results, and the above strange setup.bash file is recreated in its half dead state.

@balupton
Copy link
Member

balupton commented Jun 9, 2024

Thank you for the report.

Can you attach a copy of your setup.bash file in a gist or email it to b@bevry.me if it is private, as there likely is something in there that https://github.com/bevry/dorothy/blob/master/commands/dorothy-config and https://github.com/bevry/dorothy/blob/master/commands/config-helper are struggling with.

@joshuacox
Copy link
Author

joshuacox commented Jun 10, 2024

@balupton unfortunately the entirety of the file was what I had posted earlier

)
GO_LINTING_INSTALL='yes'

and while repeatable at the time, I just began doing all the individual jobs like setup-utils etc individually. I can now do the install successfully without it failiing (*with the exception that I cannot seem to include ksh without it freezing, but that is perphaps a separate issue). Unfortunately, I am unable to nail down the exact cause. I am going to close for now, I will re-open if I can uncover any more information.

EDIT: in addition to this setup on arch linux I am mirroring all of the rc files into a NixOS install and will try and help with that issue as well if i can get more information on things are failing in nixos.

@balupton
Copy link
Member

balupton commented Oct 1, 2024

So this is the same issue as #241 which has been solved by #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants