Skip to content

Compilation error: No connection established #1671

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

Closed
3 tasks done
aaronw2 opened this issue Nov 13, 2022 · 2 comments
Closed
3 tasks done

Compilation error: No connection established #1671

aaronw2 opened this issue Nov 13, 2022 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project

Comments

@aaronw2
Copy link

aaronw2 commented Nov 13, 2022

Describe the problem

When attempting to build I am suddenly getting the following error without any attempt to compile:

Compilation error: No connection established

It does not matter whether I select to just compile/verify or upload.

The ESP32 S3 dev board is connected to /dev/ttyUSB8 and was working fine, then everything stopped. I see the device when I plug it in. Furthermore, minicom connects just fine and displays the output.
This is not a permission problem. The user is associated with the dialout group and I use serial ports extensively (for non-Arduino purposes). It also was working and suddenly stopped. This has happened to me on several occasions. Usually I am forced to restart the IDE to fix the issue.

Also, when building/verifying there should be no connection dependency.

Selecting a different serial port then selecting the correct one does not fix the problem.
Unplugging and reconnecting the ESP32 dev board (UART interface) does not fix the problem.
Only restarting the IDE fixes the problem.

To reproduce

Work with the IDE for a while and upload multiple images. The problem is intermittent.

Expected behavior

I expect it to not require a connection when building/verifying. Furthermore, I expect it to be able to connect to the serial port specified.

Arduino IDE version

Version: 2.0.2-nighjtly-20221112

Operating system

Linux

Operating system version

OpenSUSE 15.4

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@aaronw2 aaronw2 added the type: imperfection Perceived defect in any part of project label Nov 13, 2022
@per1234
Copy link
Contributor

per1234 commented Nov 14, 2022

Hi @aaronw2. Thanks for taking the time to submit an issue.

I see we have another report about this at arduino/arduino-cli#1970.


A fix for the bug has already been prepared. It would be very helpful if you would give the tester build of Arduino IDE with that fix a try and then let us know whether it solves the problem for you.

I'll provide the instructions for getting the tester build of Arduino IDE that has the proposed fix:

  1. Sign in to your GitHub account.
    (GitHub only allows downloads of the tester builds when you are signed in.)
  2. Open this page in your browser:
    https://github.com/arduino/arduino-ide/actions/runs/3444944271#artifacts
  3. Click the "Linux_X86-64_app_image" link under the "Artifacts" section of the page.
  4. Wait for the download to finish.
  5. Extract the downloaded file as usual.
  6. Set the permissions on the .AppImage file to executable.
  7. Start the tester build of Arduino IDE you downloaded.
  8. Perform whatever operations normally produce the error when using the regular version of Arduino IDE.

After doing that, please comment here to let me know the following:

  • Were you able to reproduce the fault using the regular version of Arduino IDE?
  • Were you able to reproduce the fault using the tester version of Arduino IDE?

Please let me know if you have any questions or problems while following those instructions.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2022
@per1234 per1234 self-assigned this Nov 14, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI labels Nov 14, 2022
@collet1934
Copy link

I have the same problem.
I use IDE 2.1 and W11 famille 21H2
My MKR zero is auto detected, the port is correctly detected and the tools>>board info is correct.
I upload the codes without problem for a while ( # more than 1 h)
Then without notice I get the '' compil error: no connect...''.
The mkr zero and the comPort are correctly detected, but I cannot compile and upload !!!
arduError
may I do something to help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants